|
Martin# wrote: Have you tried to connect to your design process over a second instance?
how do you do that?
life is study!!!
|
|
|
|
|
For example the VisualStudio starts a process called "devenv.exe".
In my studio under "Debug"-"Process" you can connect this process.
All the best,
Martin
|
|
|
|
|
cool.. thx man!!
life is study!!!
|
|
|
|
|
Yeah, tried that, it didn't catch anything.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hmmm,
What I also have sometimes:
Our Project is under subversion control.
If I update my projects - then open the solution - then open a form with controls thet have been changed, without compiling; Then the designer is "confused" and shows me a blank form.
What I have to do then is to close all forms and classes, then close the "Project map" ("Projektmappe schließen" in german) and close the Studio.
After starting the solution and compiling it works again.
All the best,
Martin
|
|
|
|
|
Yah.. this is happened frequently for, me..
Whenever i do some designer changes.. any change in designer.cs file, the form will scream in Red color or it will say Intializer error or sometime it will be blank screen
The only solution is to close the project/studio and reopen and rebuild again.
Srini
|
|
|
|
|
happened to me a lot of times.. my solution is to close designer, open source and from the source click 'view designer'.. if this doesn't help i build solution (designer closed) and then reopen designer from source..
life is study!!!
|
|
|
|
|
Hi Christian,
two ideas:
1)
recent wsod article[^]
2)
include a statement "if (DesignMode) return;"
in your constructor; initially right after InitializeComponent(), then start moving it
down until it fails again.
Luc Pattyn
|
|
|
|
|
Thanks - I've tried (2) in the past, only thing is, in this case, it fails just creating the window. And, no code has changed. I'll look at the article.
I also have at least one crash that seems to execute code inside the DesignMode block, and so I can't get rid of it.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
You wrote earlier "some of the forms in my app", do they have something in common,
maybe a common ancestor (other than Form) ? If so, I would try the DesignMode test in there.
Luc Pattyn
|
|
|
|
|
That's a good thought, but no.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
You should even try the DesignMode test before InitializeComponent:
if your form includes a problematic control (most likely a UserControl), its creation inside
InitializeComponent could fail or throw.
Luc Pattyn
|
|
|
|
|
Hello,
If this is the case he would have seen some exception occuring as he tested to connect with a second instance.
I also wrote the article and the idea of DesignMode.
I have to say that I'm not a friend of this "workarounds".
I'm working alot with usercontrols and inherited controls, which are than been placed in an other Usercontrol, ....
And I think, this is the problem of the DesignMode property, in thoose cases (UserContol1 on UserControl2 on Form) you will get a "false" back from the property.
Not so long ago I searched and removed every "DesignMode" usage in my project and tried to find the real proplems.
Most time it's been done by a "if!=null" statement.
To sumup, I have no solution, but I think workarounds are not working forever.
All the best,
Martin
|
|
|
|
|
Hi,
I did not intend to suggest to permanently put an if(DesignerMode)return; in the code;
my intention was just to help pinpoint where exactly things start to go wrong,
expecting that info would point to the real problem, and hopefully the real solution.
So there is no workaround involved, just a plan of attack.
In general, I would try not to add if statements at all: the more of them, the harder it
gets to test all cases, and to understand what goes wrong when things starts to fail...
Luc Pattyn
|
|
|
|
|
Luc Pattyn wrote: I did not intend to suggest to permanently put an if(DesignerMode)return; in the code;
my intention was just to help pinpoint where exactly things start to go wrong,
expecting that info would point to the real problem, and hopefully the real solution.
I really didn't wanted to pick out your statement.
It was just a general statement which followed what has been discused so far.
Luc Pattyn wrote: In general, I would try not to add if statements at all: the more of them, the harder it
gets to test all cases, and to understand what goes wrong when things starts to fail...
Again a nice summary!
All the best,
Martin
|
|
|
|
|
I need to generate some reports in XLS format and I want to code something in C# that will allow me to manipulate the files. I have seen some basic read/write solutions on this site. I am interested on how i can change the color of a specified cell int the spreadsheet or merge a few cells . Any help or link is greatly appreciated.
|
|
|
|
|
Hello,
I have a question. I want to make a small designer for my application. For that I use the DesignSurface class. this all works very fine, but now I have one small problem too. The standard view (surface.View) has as background another control and the real control which I design is not on (0,0) . For some reason I need the position of (0,0) for the control to design. Knows anyone a solution for this?
Regards
Hansjörg
|
|
|
|
|
Hi guyes
Does anyone know how to convert the data in a dataset into an array.
All the best
Al
|
|
|
|
|
array of what? datarows, strings, objects?!
anyway you have to iterate through Rows in Tables in the dataset adding data to desired array
life is study!!!
|
|
|
|
|
how to create Create Windows User Account or Windows Administrator Account through C# programming.
Sanjit.rajbanshi@wlinktech.com
|
|
|
|
|
first of all read : http://www.codeproject.com/script/comments/forums.asp?forumid=1649&mpp=50&select=1278604&df=100&noise=1#xx1278604xx
then i guess the easiest way is to use Process.Run("net","...");
Process is in System.Disgnostics.. the "..." is the syntax of 'net' command, if you don't know it Start->Run-> "cmd" -> type: "net /?"
life is study!!!
|
|
|
|
|
|
yes. make the object public and add a refernece.
|
|
|
|
|
Nonsense! You cannot make an "object" public, you can make a "class" public.
What she is looking for is called "IPC" - Inter Process Communication. Take a Google search for it [^].
|
|
|
|
|
You need to provide more info. Do you want to pass an instance of an object between apps, or do you want to create a class, and use instances of that class in different apps ? Or something else ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|