Click here to Skip to main content
15,922,166 members
Home / Discussions / C#
   

C#

 
GeneralHow to get the printers in C# Pin
kalyanPaladugu30-Jan-07 9:17
kalyanPaladugu30-Jan-07 9:17 
QuestionTrackBar Pin
ThetaClear30-Jan-07 6:16
ThetaClear30-Jan-07 6:16 
AnswerRe: TrackBar Pin
Christian Graus30-Jan-07 9:17
protectorChristian Graus30-Jan-07 9:17 
GeneralRe: TrackBar Pin
ThetaClear30-Jan-07 9:42
ThetaClear30-Jan-07 9:42 
GeneralRe: TrackBar Pin
Christian Graus30-Jan-07 10:41
protectorChristian Graus30-Jan-07 10:41 
AnswerRe: TrackBar Pin
Luc Pattyn30-Jan-07 12:28
sitebuilderLuc Pattyn30-Jan-07 12:28 
GeneralRe: TrackBar Pin
ThetaClear31-Jan-07 2:52
ThetaClear31-Jan-07 2:52 
QuestionUserControl within a UserControl Pin
goldoche30-Jan-07 5:05
goldoche30-Jan-07 5:05 
Hi, I have a very frustrating problem. I have this UserControl I use on a Form. This UserControls is nothing complicated: buttons, textboxes, etc. When I start my application, everything works fine.

When I add another (simple) UserControl to my first UserControl, everything works fine too... well almost everything. The application starts and works 100%, but when I close it and go back to the Designer of my main application, Visual Studio says that:

"An exception occurred while trying to create an instance of MyProject.MyUserControl. The exception was "Object type cannot be converted to target type."."

I seems that the Designer creates an instance of every control on the Form and this particular UserControls cannot be created properly.

I really need some help, this is going to drive me nuts! I've spent more than two days on this problem!

AnswerRe: UserControl within a UserControl Pin
Martin#30-Jan-07 5:26
Martin#30-Jan-07 5:26 
AnswerRe: UserControl within a UserControl Pin
Luc Pattyn30-Jan-07 5:36
sitebuilderLuc Pattyn30-Jan-07 5:36 
QuestionSave treeview expanded state Pin
studiomaxer30-Jan-07 4:18
studiomaxer30-Jan-07 4:18 
AnswerRe: Save treeview expanded state Pin
Mircea Puiu30-Jan-07 4:50
Mircea Puiu30-Jan-07 4:50 
GeneralRe: Save treeview expanded state Pin
bobsugar22230-Jan-07 10:17
bobsugar22230-Jan-07 10:17 
QuestionCancel Search Operation Pin
Monika Dotnet Newbie30-Jan-07 4:01
Monika Dotnet Newbie30-Jan-07 4:01 
AnswerRe: Cancel Search Operation Pin
Mircea Puiu30-Jan-07 4:19
Mircea Puiu30-Jan-07 4:19 
QuestionSet Webservice wsdl Programmticaly Pin
Tyler4530-Jan-07 3:44
Tyler4530-Jan-07 3:44 
AnswerRe: Set Webservice wsdl Programmticaly Pin
jchigg200030-Jan-07 4:10
jchigg200030-Jan-07 4:10 
AnswerRe: Set Webservice wsdl Programmticaly Pin
Tyler4530-Jan-07 4:44
Tyler4530-Jan-07 4:44 
QuestionIt's urgent Pin
sjs4u30-Jan-07 3:24
sjs4u30-Jan-07 3:24 
GeneralRe: It's urgent Pin
Martin#30-Jan-07 3:32
Martin#30-Jan-07 3:32 
AnswerRe: It's urgent Pin
Colin Angus Mackay30-Jan-07 3:47
Colin Angus Mackay30-Jan-07 3:47 
GeneralRe: It's urgent Pin
Pete O'Hanlon30-Jan-07 3:50
mvePete O'Hanlon30-Jan-07 3:50 
AnswerRe: It's urgent Pin
ednrgc30-Jan-07 5:21
ednrgc30-Jan-07 5:21 
GeneralRe: It's urgent Pin
Guffa30-Jan-07 8:52
Guffa30-Jan-07 8:52 
GeneralRe: It's urgent Pin
ednrgc30-Jan-07 9:09
ednrgc30-Jan-07 9:09 

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.