Change "Type" From 6 To Program 9?
Apr 30, 2009I have this code which i used to use in vb6 to flash a window i need to convert it for vb9.[code]...
View 7 RepliesI have this code which i used to use in vb6 to flash a window i need to convert it for vb9.[code]...
View 7 RepliesEach time I create a program, if I don't change the CPU type to x86 in the Project Properties, Compile, Advanced Compile options, it doesn't work. For example, if I hit the drop down button on a combo box, there will be no data, but after switching to x86, there is data. How does changing the CPU type affect how others (such as when its being graded) view the program? If the program is not run on an x86 system, would it appear to not work then?
View 1 RepliesAnyway, I'm a teacher and am writing a program that simply shows kids a word on a flashcard. There are 2 buttons, 1 to read the word and 1 to go to a new work. There are going to be 300 words. Really I'm just testing it right here. What I want to know is should I be inputting all the words right into the code like I did with "hi" and "not 1" (Don't ask. those are just the 2 random words I picked to test this out with). OR is there a better way (maybe somehow to type all the words on a text file and have the program randomly pull one of them (I don't know how to do this).
Here is the code so far:
Public Class Form1
Dim word
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[CODE]...
opening a program and type something in their textbox or click on button of program if you can tell me refrence or .net platform class that can i access to another filed program
View 12 Repliespiece of code :-
Dim objCompany As New Company()
Dim objCompanyName As New Company()
Dim dtCompany As DataTable = objCompany.Find()
Dim drCompany As DataRow
[Code]...
Now I want to change type from datatable to string because I used object from datatable datatype and I want to use value from the object using session but when I do it show to me this error "Unable to cast object of type 'System.Data.DataTable' to type 'Company" Company is class
I made vb.net program for 1440x900 resolution, if i run my program on 800x600 or 1024x768, my program's resolution is bigger then windows, so i have problem with resolution. Now i want to change my program's size and i am interested in, wich resolution is correct to make program, 800x600 such as minimum?
View 9 RepliesHow do you change a data type, for example an integer to a currency type, I'm an old vb6 user and I cannot figure it out because there is no such animal.I want to do a program for my album collection and I cannot format values ...
View 1 RepliesThis may be pretty simple to some of you folks I have to create a data reader depending on which database I am connected to: SQL or SQLCE.
I want to only declare one datareader then change its type to either data.sqlclient.sqldatareader or data.sqlserverce.sqlcedatareader
my code will look like this:
[Code]...
In some part of my code i need to redefine the type of variable that was defined with a different type at the beginning
dim T as new MyClass
...
redefine T as ( MyClass2)
i do not want to do something like
dim T
t= new MyClass
.....
t= new MyClass 2
Instead of changing the Application Type through the dropdown list of a project's Application properties, is there a way to change a project's Application type through VB code?
View 5 RepliesHave a Console Application and wonder if it is possible to change the type to Class Library and comment out statements that reflects "Console.WriteLine" ??? or do I need to start out with a fresh Class Library?
View 1 Replieshow i can change the text type field of datagridview to datetime pikcer or calender. if i click on edit columns in datagridview i can only see textbox column, combox, and button i want to change the date field in datagridview from text to calender or datetime picker.
View 1 RepliesI want to be able to get & change the startup type for a service through a Windows Application (Automatic, Manual, Disabled).Is there a simple way to do this? I didn't see anything using the ServiceController.I found another thread to use a vbscript but rather do it directly through my application.
View 3 RepliesThis is something that I'm curious about. Is it possible using OpenFileDialog to have user select, instead of Access Database File,a file with different name and type but keeping Access Database connection string intact ? I have no idea how you would go about attempting this-----I thought it might be better if the user opened a generic file instead of realizing that they were opening a Database File.Can you create Custom file Type to handle situation like this or do declare some type of Variable
View 2 RepliesI'm trying to change a range of cells on the SS to be checkbox type.
View 3 RepliesI am trying to set to autonumber, the column called "enregistrement" , that exists into different dataTables that I have.
vb.net
For TabIndex = 0 To oData.Tables.Count - 1
oData.Tables(TabIndex).Columns("enregistrement").Au
[code].....
if i got a function with a try cath block inside and the function should return an integer.how would i do it that the function can return me a the error message?public function test() as Integer
[Code]...
I know that I can launch activate/Use functions in assemblies that I have created, but can I start subs? and If so could I start Sub Main from an Assemble? What I mean is I want to run the created program in memory from a sub main and I dont know how .
My other question is how can I change the type of output project? So from a console app to a Windows Form app? ( I am no longer talking about using the assembly dynamicly this is more about creating the physical exe as what I want it as.
I know that they are the Compiler options command line but is it the same as the ones that Visual studio use when compiling? (The ones you see in the out put window)
This one:
CODE:
How do you change the column type in a datagridview programmatically? I have several tables that I want to allow the user to update using the same form. Depending on the table, I need to change the column type to a checkbox instead of text. Following is the code that I run (just exchanging the table name and column #). Everything works well as long as I don't try to change the column type.
Dim qry = From lst In dbCodes.Codes_InjuryBodyParts _
Select lst Order By lst.CodeDisplay
Me.bsCodes.DataSource = qry
[Code].....
I am using vb.net framework 3.5. I am developing an windows application in that i am displaying the Richtextbox data on Web browser. But in my rtf data contains the Math type functions which are not properly displayed in the web browser. For changing the font i used the method like put the data in the richtextbox change the size and font and again update it . But it's not working for math type.
View 2 Repliesi am currently doing a project for my course. My project is creating a system for a mechanical workshop, this includes customer information, car information, expenditure ect. I am not allowed to use access to store the information as this will decrease my overall mark on difficulty hence i am going to use files to store the information. I am using VB 2005. I have tried with binary files, this was good at first as it stored data in a record but then when i tried to create a algorithm to search the data it failed.
1) Should i change my file from binary to text or another type?
2) Anyone have any ideas to search within a binary file? If you do can i get some code please.
I am using sqlserver2005.Table1 has a column named bill_no and its type is textNow I want to change its type "Numeric"When I do this the it displays this error message
View 3 RepliesThere is a DataGridView, I find I can only edit controllers of cells by column.I have set one column as Combox, but I want to change one of cells in this column as Button, and add then add left-click and right click event on this button.
View 1 RepliesIs it possible to change the type of a controls' height from integer to long? I tried:
Panel2.Height = New Long
How i can change data grid view column type runtime. like i want to make a coloumn checkbox but runtime.
View 8 RepliesI am storing an array of a custom serializable class in session on my site. When a page on the site changes, suddenly it renders them invalid, and tells me that it can't cast the type to it's own type. I assume the class version numbers are changing or something?!
I'm not trying to redesign this whole process.
Unable to cast object of type 'ShipmentPackages[]' to type 'ShipmentPackages[]'.
Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Unable to cast object of type 'ShipmentPackages[]' to type 'ShipmentPackages[]'.
[Code].....
Alright I am just starting out with Visual Basic and I am trying to figure out how I would go about doing this. I have the general idea of how I want it to be done but I am not sure of what code I need to use. What I want to do is be able to type in Text box 1 and copy whatever I type into Text box 2. But I also want to be able to send it to anyone else with the program that are listening for a connection. I also want to be able to show the IP address in Text box 3 that the computer is using at the time.
Public Class Form1
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
[code].....
im supposed to create a program in the form type. its supposed to ask the user for a number so i created a textbox for the entry for the number in the form and a button to execute the program. then the program prints a number of "$$$$$" dollar signs as the entered number. furthermore, only upto 5 "$$$$$" sings should be in a row. oh and i have to use the for-loop for this. i used to be do this when i did qbasic but i have completely forgotten the codes and syntax, etc.
View 11 RepliesI know shell command but i want to know another solution.
View 2 RepliesI get a compile error Type "ctltype" is not defined with this code.
This is .NET 1.1 legacy code so not good I know.[code]...