|
Thanks for that, i'll have a read
|
|
|
|
|
The Load event of a Form lets you write code before/after the form is loaded (don't know for sure). The doc says "Occurs before a form is displayed for the first time.".
Question: Is there a way to do something after a form is displayed for the first time?
I want to do some lengthy processing and it would be cool to have the form visible before displaying a wait-window or a wait cursor. I already tried to handle the WM_SHOWWINDOW message, but unsuccessfully.
Maybe I could post myself a message with PostMessage (if it is available)?
--
Affordable Windows-based CMS: www.zeta-producer.com
|
|
|
|
|
|
Thanks for your feedback! Unfortunately it has the same effect es handling the Load event in my current scenario. (I.e. the result that the dialog is not shown before finishing my lengthy processing).
I'll keep searching...
--
Affordable Windows-based CMS: www.zeta-producer.com
|
|
|
|
|
|
Use activate and set a variable to true. It:
.... ACTIVATE ....
if (!_tastDone) { DoSomething(); _taskDone = true; }
|
|
|
|
|
How about having a timer on your form that fires a fraction of a second after the form is opened?
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
|
i am want to make a CodeEditor, so i want use the outlining code, but i do not know how to do, can anyone help me? thank you very much!
|
|
|
|
|
i am very curious about the Outlining Code , and i want to carry it out in my progrm with c#, can you help me? thanks!
|
|
|
|
|
I am trying to automate MSExcel and have so far been unsuccessfull converting text to columns. Does anyone have an example using the excel texttocolumns method?
Thanks
|
|
|
|
|
One of the best pieces of advice... use the macro recorder ! Open the editor and its crystal clear how you can work with the object model to do C# code!
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
This is how I have gotten through most if the issues I have encountered, but I have been unable to convert the VBS to C# when it comes to converting text to columns
Thanks
|
|
|
|
|
I'm interfacing with the iTunes SDK and need to grab the "artwork". Writing these files to disk is quite easy as the SDK provides a method SaveArtworkToFile(string path) to write the file out to disk. I currently then turn around and read the image back in for use.
I'd really like to get around having to write out the file. Is there some way to "trick" the SDK into thinking it's writing the file to disk but instead write it to some kind of memory stream? Keep it mind that this is the only call made available to get the artwork and that it only accepts the path for writing out the file.
That's why I called it a "virtual file".
|
|
|
|
|
Matt Philmon wrote:
Keep it mind that this is the only call made available to get the artwork and that it only accepts the path for writing out the file.
Then it that case, no there isn't. If there is no function to return a pointer to the image, you're pretty much limited to writing it to a temp file and reloading it in a more accessible form.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yeah, I really guess I knew that. I was just hoping there was some arcane use of MemoryStream or some other mechanism that could give me what I need. That would be pretty cool if you could do that... somehow make that function think it's writing to disk when it's actually writing to memory.
|
|
|
|
|
Matt Philmon wrote:
somehow make that function think it's writing to disk when it's actually writing to memory.
You could use a memory-mapped file (read the MapViewOfFile API call documentation for this).
But it is really overkill.
Yes, even I am blogging now!
|
|
|
|
|
Hi,
I need to display a treeview control node with: a check box, icon, title and a bitmap under the title.
Anyone have any ideas on how to do this?
thanks,
Chuck
|
|
|
|
|
Hi, I have problems with reading xml files tha contains values with ñ char, li this:
<br />
<BaseDatos>Piña</BaseDatos><br />
this throw me an exception:
<br />
XmlDataDocument DocumentoXML =new XmlDataDocument();<br />
DataSet DS = new DataSet();<br />
DS = DocumentoXML.DataSet;<br />
DS.ReadXml("file.xml");<br />
What I need to do to deal with in this case?
Than you
La realidad no es más que impulsos eléctricos del cerebro - Morpheus
|
|
|
|
|
One way of changing encoding is to have this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
I am seeing an unusual problem, I have a main windows form that opens a form using showdialog. If there is an exception in that "subform" during a debug run the IDE shows it as being in the main form and if I break it breaks at the ShowDialog in the main form and not at the actual code that caused the exception in the sub form.
I don't see this in any other projects, any ideas? Could it be a project setting somewhere gone awry or...?
|
|
|
|
|
I take it you see a green triangle, too. This happens when the exception occured in an native API call or in another unmanaged thread. The debugger can't figure out where it happened, so it positions the indicator to the caller that spawned the message pump. This also happens for a top-level form, when the green triangle is position just after the Application.Run call (it's after because of the return address being after the function call itself, in terms of the JIT'd native code).
BTW: Congrats on receiving my 8,000th response! Just had to tell someone.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Any gift for the guy receiving your 8,000th response, Heath? Perhaps it's already in Santa's Christmas list
|
|
|
|
|
What, and leave the guy that responded to roughly 8,000 questions with nothing?
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Heath Stewart wrote:
This happens when the exception occured in an native API call or in another unmanaged thread.
I wish it were something like that, in this case it's neither. For example, I can, in one of those sub forms simply do something like attempt to access a null string and the IDE will break and will show the exception being in the code that called showdialog for that sub form.
If I attempt the exact same thing in a test project it breaks into the null access (for example) as expected.
There is no green rectangle, I know exactly what you mean about an exception in unmanaged or native code, this isn't the same thing at all, it's a simple exception in a form that was created through showdialog from another form in this one project.
The only thing unique about this project is that the solution overall is huge and has both the business tier and UI tier in it.
It's really bizarre and annoying, oh well, maybe it will clear up in vs2005.
Thanks for replying.
|
|
|
|