Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I created a base form (baseForm) which sets the color etc. for all the other forms. Then I created an other form, derived from baseForm, lets call it childForm. Now I want to derive an other form from this childForm, and thus inherit all the settings, buttons, etc from the childForm and baseForm. But after adding this new inherited form, derived from childForm, the only thing I see in design view is one large line of HTML code...
 
Does someone know an answer to this?
Posted 14-Sep-12 0:25am
Comments
Frans Jan at 14-Sep-12 7:39am
   
Even more frustrating: When debugging and I call this form to open, it shows the form as it's supposed to look. Now I want this in my design view too :(
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

The solution to my problem is a very silly one... In the childForm, which I tried to inherit, I used the LineShape from the Visual Basic Powerpacks.[^]. Once I deleted these lines, the inheritenace was no problem...
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Could you ellaborate the doubt a bit?
  Permalink  
Comments
Frans Jan at 14-Sep-12 6:51am
   
Well, to make it short and simple:
I create a windows form in VisualBasic (baseForm).
Then I created an other form (childForm), which is an inherited form from baseForm. No problem until now, I can design my form just as always in the design view.
Now I created an other form (newForm), which is also an inherited form, but this newForm is inherited from childForm. When I want to design this form in the design view, I see this: <html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><title></title><style>.ErrorStyle { font-family: tahoma; font-size:.... and the rest of this HTML-code, instead of my form. But I want to see my form, so that I can design it.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

are you getting error, that is not allowing to generate new exe? then solve errors & then clean solution, rebuilt now reopen form
 
I think it's a warning, it happens when we use usercontrols or inherited forms due to mistakes in code
just close the design-view of form & clean solution, rebuilt it sucessfully then open that form again.
 
Happy coding!
Smile | :)
  Permalink  
v2
Comments
Frans Jan at 14-Sep-12 7:35am
   
I did the clean and rebuild solution, but unfortunately without result. Still seeing the HTML code...
aarti meswania at 14-Sep-12 7:49am
   
can you run this form?
means runtime this form opens or not?
Frans Jan at 14-Sep-12 8:06am
   
Yes it does. But it still doesn't in design view
aarti meswania at 14-Sep-12 8:10am
   
ok then check each event in you have performed some-thing there is conflicting
like in a event you have do sql connection and design time it can not call it...
ok?
and use try..catch for all events or properties
at time of get-set property there should not be sql-connection
correct that kind of mistakes
and
if there option available 'Ignore & continue' then press it may be it can generate design-view
Frans Jan at 14-Sep-12 8:17am
   
Well that's the fun part of it. There are no events/methods at all untill now, I'm just designing the forms. I noticed the warning I recieve:
 
Warning 1 There is already a command handler for the menu command '5efc7975-14bc-11cf-9b2b-00aa00573819 : 17'. 0 0
Frans Jan at 14-Sep-12 8:18am
   
Well, I find the solution
aarti meswania at 14-Sep-12 8:21am
   
where?
ok then post using 'I have solved it my self' so if some body face this problem it can be helpful to them
:)
Frans Jan at 14-Sep-12 8:22am
   
already did ;)
aarti meswania at 14-Sep-12 8:24am
   
that's good, when i was posting that comment it was not see 40 sec ago and comment is 1 min ago
:)
Frans Jan at 14-Sep-12 8:27am
   
Thanks for all the options though :)
aarti meswania at 14-Sep-12 8:28am
   
welcome :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 310
1 Sergey Alexandrovich Kryukov 166
2 PhilLenoir 164
3 Richard MacCutchan 160
4 Sharmanuj 146
0 Sergey Alexandrovich Kryukov 6,081
1 OriginalGriff 5,115
2 CPallini 2,473
3 Richard MacCutchan 1,597
4 Abhinav S 1,505


Advertise | Privacy | Mobile
Web01 | 2.8.140814.1 | Last Updated 14 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100