|
I am folder happy within my projects separating code and functionality. So I have a folder called 'forms'. I not only put all my forms in that folder but I also add a namespace to each form so that each form belongs to the namespace 'Forms'. ex: Dim oFrm as new Forms.Form1 In 2005, they separated the designer from the rest of the code with the introduction of "partial class"es. So if you put a form in a namespace you need to put the namespace above the class of your code as well as the partial class for your form so that each piece belongs the 'forms' namespace.
if you weren't using namespaces, then this obviously wasn't your problem. Have you tried to create a new form and copy the code in from the hidden on to see if that "corrects" the problem.
|
|
|
|
|
nlarson11 wrote: I am folder happy within my projects
Same here, much easier to find your way around.
nlarson11 wrote: I also add a namespace to each form so that each form belongs to the namespace 'Forms'.
Interesting concept, not one that's occured to me before. Do you notice any performance benefits? Or is it just "a thing" you do?
I'd be interested in finding out more - would you write an article on the subject?
|
|
|
|
|
Peformance benefits...I would say no. But it's a good way to organize/categorizing every object/functionality within your project.
Article...well not sure. Some of these guys are bruttle of those that write articles. It would need to be well written and I'm not a gifted documenter... I'll consider it.
Nathan
|
|
|
|
|
nlarson11 wrote: Some of these guys are bruttle
Yep, I've seen. Not shaking in my boots just yet tho, I've got two that I'd like to finish off and submit & to hell with them if they're brutal - it'll only teach (force?) me to write better code.
nlarson11 wrote: I'm not a gifted documenter
Can't be worse than some I've read here already. Give it a try, you've got nothing to lose and plenty to gain.
|
|
|
|
|
I'm having a strange problem with my forms in vb.net 2005
I created a new project by copying around forms from old projects.
Now, this new project runs OK (using the startup form of course), but it does not show the startup form as part of the project!
I can only seem to find the form by searching for a text string that I know is in it.
The code for the form is then visible, but the DESIGN of the form is not.
How can I open both the code and the corresponding design?
tia
|
|
|
|
|
i am trying to connect to excel (visual studio 2003 and excel 2002), but everytime i open a new workbook ,i get an error, saying "old version".
does anybody know help?
|
|
|
|
|
High all,
I have a small problem on a inherited combobox (VS 2005).
The code behind is to have the functionality of a "Readonly" box,
basically like the Text Box, and my readonly textboxes all have another
backcolor (out of our corporate identity stuff...). The combo itself works
just as expected, but with one little thing: it has a sort of ugly white
border around the editing area, seems it just colored the background of
that one...
If anybody had the same kind of problem, please let me know
Thanks
vonb
|
|
|
|
|
Hi
I am fiddling with Composite UI Application Block (CAB) from MS. I have created the application as directed, the modules are also loaded, however, I cannot see the user control loaded on my form.
The code in the InitModule does not get executed - why would be that?
Anybody played with this?
Shreekar
http://shreekarishere.blogspot.com
|
|
|
|
|
I have an treeview control with checkboxes to all its parent and child nodes.
Can anyone give me the code to find the treeview nodes text which are all get checked in their checkboxes in an string array after a button is clicked in that form.
plz help me to find out.
rajamarichamy
|
|
|
|
|
If I am not working by using "TreeView1.Nodes(i).ToString" u can find the text which will be in a loop. Try with this
|
|
|
|
|
Hi All,
How can I Change Local Machine IP Address without rebooting the machine using VB.Net.
As I want to shift from one IP address to another IP address with application the effect should take place without rebooting the system.
Thanks in advance.
Raju
|
|
|
|
|
You'll have to use WMI and the Win32_NetworkAdapterConfiguration[^]to change the IP Address. Also, there is no guarantee that you won't have to reboot the machine.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
can anyone pls help me? how can draw polygons in picturebox with a backgroun image. with also zoom, scroll and pan? the vector should also synchronize together w/ the image when panning, scrolling and zooming..good day ...thanks in advance..anyhelp wolud be highly appreciated...
|
|
|
|
|
You don't want a picturebox, I am often astounded at the things people expect those to do. You want to write your own control to do this. That is, no control will do what you want.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
good day...thanks for your reply...maybe you can guide me create that kind of control??? i will be grateful...
|
|
|
|
|
Hi All,
How to I update LED kind of displays in a main form when something
gets updated in the background form? How do I add such status LEDs in
VB 6.0? Not a seven segment LED. but the color LEDs that glows depending on a particular state.
I m working in VB 6.0. I just to have one button that changes color when a flag is updated.
-Please help
i am a newbie
thanks
bala
|
|
|
|
|
Drop a timer control on your form and change the color of your button in the timer event, based on whether the flag is set / updated.
Hope this helps
Chandra
|
|
|
|
|
hi there,
i'm currently working on a thesis and i desparatly need some help from you on comboboxes. Here's the question:
i have
cbRestname : combobox
txtResttel : textbox
txtRestLoc : textbox
i have a database named Restaurants on MS Access and i have a table named Restaurants_avail where i have rest_name, Rest_loc, rest_tel and rest_type
I have already connected the db to my application and have been able to populate the combobox with the rest_name field. My question is this....when i scroll during runtime through the combobox, i want the textboxes to be filled with the location field and the telephone field....how am i going to do that??? I need some code pls
thank you very much for your time
lukis
|
|
|
|
|
Have you tried writing code in the Click or Change event of the combo box? You could query the database based on the combo box value and set the text boxes.
Hope this helps
Chandra
|
|
|
|
|
yes but my prob is this. i don't know the code to put in the selectedindexchanged i'm new to comboboxes so if you could supply me with some code it would be very helpful.
thank you for your prompt response
luke
|
|
|
|
|
What version of VB are you using?
Chandra
|
|
|
|
|
|
any news
luke
|
|
|
|
|
Hi
I am sorry, but I dont know the exact syntax in VB 2003. I think you will need to open a cursor (a record set?) from the database that corresponds to the selection in the combo box and fill in the text boxes from values in that cursor.
Hope this helps
Chandra
|
|
|
|
|
i guess vb 2005 is almost the same. if you have any code regarding vb2005 i think i can manage to try something out
luke
|
|
|
|