|
Dave I have renamed both destination obj and arraylist i still get the following error
Unable to cast object of type StockObj to NewStockObj. Excepy for the name they are indentical.
Cheers
|
|
|
|
|
They aren't identical because they are completly different objects Having the same properties and methods doesn't make two objects the same. What you need to do is define StockObj once publicly so that both forms know about it.
|
|
|
|
|
Ok Thanks, Makes sense wil give it a whirl.
|
|
|
|
|
got 1 form with dateandtimepicker on it but trying to send that info to another dtp on another form but the message reads that you cannot convert string to dateandtimepicker.
thank you before hand.
|
|
|
|
|
What's the code you're using to get the value of your first DTP and send it to the next form?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
this code is for the add button on my performance form that will send the details to the reservation form but it says that value of string cannot be converted to 'system windows form.TextBox
frmNewBooking.txtDateOfPerformance = dtpPerformDate.Text
|
|
|
|
|
the code you want is
frmNewBooking.txtDateOfPerformance.TEXT = dtpPerformDate.Text
you're reading the text out of the DateTimePicker and then you need to assign it to the Text Property of the Textbox. Textboxes are more than just text - they have other properties available
Jason
|
|
|
|
|
yes i dont know what i was thinking had text on the others but missed on the date and time picker cheers.
|
|
|
|
|
Hello folks,
I am working in VB.NET for the last six months and thinking about getting certified, As the structure for certification has changed a bit, would you please point me in the right direction to start with and WHAT WOULD BE THE BEST BOOK FOR PREPARATION.
Cheers!
|
|
|
|
|
you can use these materials for your certification preparetion.
1.MCAD/MCSD Self-Paced Training Kit: Developing Windows-Based Applications with Microsoft Visual Basic .NET and Microsoft Visual C# .NET, Second Edition
2.MCAD/MCSD Self-Paced Training Kit: Microsoft .NET Core Requirements, Exams 70-305/70-315, 70-306/70-316, 70-310/70-320, and 70-300
The link for the 70-306 is given below.
http://www.microsoft.com/learning/exams/70-306.mspx#ETC[^]
Sathesh Pandian
|
|
|
|
|
As the structure for the certifications have changed to MCTS (70-526, 70-536), I was wandering if there are any other resources than Microsofts own, provided on their website and would it be suitable for me to have a go on the certification with 6 months of expereience.
cheers!
|
|
|
|
|
Sir/Madam,
i made the compression program using Huffman Encoding algorithm
in C++ . There i was using the link list concept to store the address of in another variable and it's information part.
I think VB.net does not support these things .
Will intptr an alternative for that .
If Yes please explain with example how to store the address of a variable having an information part.
I am doing a compression program in vb.net
Currently I am using arrays to implement this .
But that is a very lengthy process
Please help.
Thanks and regards
Pankaj
|
|
|
|
|
VB.NET doesn't support pointers, but a linked list is very easy to implement in .NET. Just Google for "VB.NET Linked List" and you'll find a bunch of examples.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Sir/Madam,
I was writing the following code on the button click .I am presently on form1
application.run(new form2)
bcos i wanted to navigate to form2
Is the above code correct.
I don't want to use the variable.
Thanks and regards
|
|
|
|
|
If you do this you are essentially trying to run another application but starting on Form2. You should create an instance of the form such as Dim frmForm2 as new Form2 then any number of variations of hiding the main form, setting it as the owner etc... but then frmForm2.Show() .
I hope that helps!
Cleako
|
|
|
|
|
Sir/Madam,
I am currently on form1
What is the basic meaning of using the following code then
application.run(new form2)
Please help.
Thanks and regards
Pankaj
|
|
|
|
|
You would use Application.Run if you ran the whole setup from something like a Module with a Sub Main() in it. But from form to form you would do the .Show/etc...
Cleako
|
|
|
|
|
Cleoko gave you the right answer. A form resides inside an application. Actually it is a class. If your aim is to call another form while the first forms is displayed, you can create an instance for the second form. It is very simple as shown below. application.run statement is used to run another application what resides under the same or a different directory.
Dim 2ndForm as new Form2
2ndForm.show
'If you want to hide first form, use the followin statement.
1stForm.Hide
Journey
|
|
|
|
|
I have 2 tables in database 1 called performance and 1 shows require to connect the 2 through primary key performanceNo and showNo in vb.net.
thanks before hand.
|
|
|
|
|
|
Ive never seen these used until today. What is the reason someone would use these instead of just opening an exact file by name?
Cleako
|
|
|
|
|
That's old VB6-style stuff that really shouldn't be used in VB.NET.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Well a current app does this and it just assigns random numbers, I guess Im trying to figure out what that is all about.
CleAkO
|
|
|
|
|
Because someone couldn't get out of their VB6 mind set when they wrote it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
What is the equivalent now though? If they were doing FileOpen(86, whatever) what is the equivalent in 2.0? Actually I dont understand how they were actually doing anything with that file by just opening it.
CleAkO
|
|
|
|