Click here to Skip to main content
16,007,760 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralV. Scrollbar for Form Pin
parth.p14-Jan-08 11:23
parth.p14-Jan-08 11:23 
GeneralRe: V. Scrollbar for Form Pin
Luc Pattyn14-Jan-08 12:10
sitebuilderLuc Pattyn14-Jan-08 12:10 
GeneralAssembly Error - Can't See Form in Design Mode Pin
ExcelMonkey14-Jan-08 9:59
ExcelMonkey14-Jan-08 9:59 
GeneralRe: Assembly Error - Can't See Form in Design Mode Pin
Dave Kreskowiak15-Jan-08 1:45
mveDave Kreskowiak15-Jan-08 1:45 
GeneralRe: Assembly Error - Can't See Form in Design Mode Pin
ExcelMonkey15-Jan-08 4:27
ExcelMonkey15-Jan-08 4:27 
GeneralRe: Assembly Error - Can't See Form in Design Mode Pin
Dave Kreskowiak15-Jan-08 4:38
mveDave Kreskowiak15-Jan-08 4:38 
GeneralRe: Assembly Error - Can't See Form in Design Mode Pin
ExcelMonkey15-Jan-08 5:18
ExcelMonkey15-Jan-08 5:18 
GeneralRe: Assembly Error - Can't See Form in Design Mode Pin
Dave Kreskowiak15-Jan-08 6:09
mveDave Kreskowiak15-Jan-08 6:09 
ExcelMonkey wrote:
What do you mean by this? I can get into the form generated code but I am not sure what I am looking for or what to do. Do you mean delete all the code in the form generated code?


Not all of it. That would be pretty distasterous.

Look through the code an it'll be pretty clear what's going on. At the bottom, there's a bunch of lines that start with Friend WithEvents. These declare the variables that will hold the instances of your controls. You'll also notice that they have the names that you give the controls in the Name property you see in the Properties box.

Just find and remove the lines that correspond to your control instances, something like
Friend WithEvents CollapsibleControl1 As something.CollapsibleControl

Then scroll up the code and you should see a section divided by comments for each control on the form. Find the sections that correspond to each on your control instances. They'll all start with a small comment section showing the name instance of the control. Just delete the comments and the code directly below it, until you reach the next set of comments.
'
'CollapsibleControl1
'
Me.CollapsibleControl1.someProperty = someValue
Me.CollapsibleControl1.someProperty = someValue
Me.CollapsibleControl1.someProperty = someValue
'
'Form1
'
....

You'll see squiggly red lines under all of these lines of code (except the comments of course). That should make those lines stand out to you.

Lastly, scroll up some more and you'll see the code that creates the instances of the controls. Each line will look something like:
Me.CollapsibleControl1 = New something.CollapsibleControl
Me.CollapsibleControl2 = New ...

These should also have squiggley red lines under them. Delete these lines too and save the project. You should then be able to go back to the form designer, close, then reopen the form giving you the problems.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralRe: Assembly Error - Can't See Form in Design Mode Pin
ExcelMonkey15-Jan-08 8:56
ExcelMonkey15-Jan-08 8:56 
GeneralRe: Assembly Error - Can't See Form in Design Mode Pin
Dave Kreskowiak15-Jan-08 9:12
mveDave Kreskowiak15-Jan-08 9:12 
GeneralForm Opacity Pin
mykingdomforanewusername14-Jan-08 6:50
mykingdomforanewusername14-Jan-08 6:50 
GeneralRe: Form Opacity Pin
Dave Kreskowiak14-Jan-08 7:19
mveDave Kreskowiak14-Jan-08 7:19 
GeneralQuery is Too complex Pin
Rupesh Kumar Swami14-Jan-08 2:28
Rupesh Kumar Swami14-Jan-08 2:28 
GeneralRe: Query is Too complex Pin
Dave Kreskowiak14-Jan-08 5:30
mveDave Kreskowiak14-Jan-08 5:30 
GeneralProblem While Running Crystal Report 10.0 on .Net 2.0 Pin
Member 399053014-Jan-08 2:23
Member 399053014-Jan-08 2:23 
GeneralRe: Problem While Running Crystal Report 10.0 on .Net 2.0 Pin
Dave Kreskowiak14-Jan-08 5:29
mveDave Kreskowiak14-Jan-08 5:29 
QuestionHow to change the excel sheet dynamically using vb .net or java Pin
ANKUR2214-Jan-08 1:26
ANKUR2214-Jan-08 1:26 
GeneralRe: How to change the excel sheet dynamically using vb .net or java Pin
Dave Kreskowiak14-Jan-08 5:23
mveDave Kreskowiak14-Jan-08 5:23 
QuestionHow do I format values in a grid Pin
Central_IT14-Jan-08 0:57
Central_IT14-Jan-08 0:57 
GeneralRe: How do I format values in a grid Pin
Dave Kreskowiak14-Jan-08 5:20
mveDave Kreskowiak14-Jan-08 5:20 
GeneralTreeview Icons distorted Pin
Mbire13-Jan-08 23:13
Mbire13-Jan-08 23:13 
GeneralRe: Treeview Icons distorted Pin
Dave Kreskowiak16-Jan-08 2:20
mveDave Kreskowiak16-Jan-08 2:20 
GeneralRe: Treeview Icons distorted Pin
Mbire16-Jan-08 2:51
Mbire16-Jan-08 2:51 
GeneralRe: Treeview Icons distorted Pin
Dave Kreskowiak16-Jan-08 3:43
mveDave Kreskowiak16-Jan-08 3:43 
GeneralRe: Treeview Icons distorted Pin
Mbire16-Jan-08 4:08
Mbire16-Jan-08 4:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.