|
I'll continue to help when you eliminate txtspk from your posts. Go click the modify link on the above and type in English, and i'll check back very soon.
|
|
|
|
|
who can tell me how to active FormB from FormA, A(MainForm) and B(has been minimized) are in one application,but are not parent and child.
If FormA and FormB are belong to diffent applicaions what should i do to achieve the same goal?
thanks! ^_^
|
|
|
|
|
First
to activate Maximize or Minimize form from another one
windows forms has property called WindowState
so code somthing like this
anotherForm.WindowsState=FormWindowState.Normal<br />
MCAD
|
|
|
|
|
if form B has existed, how could i know, and how to find it.
thanks!
|
|
|
|
|
what do you mean by form is existed?
MCAD
|
|
|
|
|
as you dont answer my question if you want to search for
a window in windows use FindWindow API which will give
you the handel of the form
MCAD
|
|
|
|
|
Windows API is what i need .
Thank u for your patience.
^_^
|
|
|
|
|
this will give you only handle to maxmize or minimize
you nedd to change windows style set like WS_MAXIMIZE
Note: there are another version of FindWindow named
FindWindowEx
MCAD
|
|
|
|
|
Hi, Putting in documentation into code c# and I keep getting a million warnings because I have xsd schemas that have been generated automatically for me.
Is there someway to exclude the xsd schemas from the documentation NDoc build process.
I am currently using VS2003.
Thanks
David
|
|
|
|
|
Hi,
I am creating new Word documents using C# (automation) and would like to save the documents to SQL Server directly (bypassing the filesystem). Has anyone tried to do this? If so, how?
I already now how to upload documents to SQL Server. I just don't know how to go from a Document object created using C# to SQL Server directly.
Thanks for any pointers,
roccom
|
|
|
|
|
you can save word document as you save image
|
|
|
|
|
I've done something similar but not exactly something what you want to do. I've storred pictures in a database bypassing the file system. I was using PHP and MySQL to do this. In the MySQL database you have to have a table that is of type BLOB. Then you need to encode your word document and store the encoded object in the database. When you retrieve it you just need to do the opposite. Sorry I'm so vague about it but it's been a while since I did this project. If you do a websearch on "storring binary objects in a database" I'm sure you will find something more specific.
|
|
|
|
|
I am using C# to develop a database application which will connect to a local MySQL (Installed on the local PC). Is there any way to add the MySQL setup within my setup project or InstalledShield X.
Many Thanks..
|
|
|
|
|
Does anybody know of a way of accessing the Administrator password for the machine that an application is running on (Win 2k and above)
I want a user to enter the admin password before being able to access certain functions of the application, so I dont need it in plain text just some method of validating it against the system.
post.mode = postmodes.signature;
SELECT everything FROM everywhere WHERE something = something_else;
> 1 Row Returned
> 42
|
|
|
|
|
|
I have created a custom control, which I am trying to programatically add to my windows form. The problem is that the control's OnPaint method is never invoked, even though the control invalidates itself on regular intervals (it uses a timer). If the control is added to my form in Visual Studio's designer, all works perfectly. However, I can't add the control in the designer because I don't know how many instances of my control I will need until my application reaches a certain point.
Any help is much appreciated!
Thanks
|
|
|
|
|
You are almost certainly overlooking some of the code the designer would create for you. Did you remember to add your new control to the form's controls collection?
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke
|
|
|
|
|
Thank you for your reply Rob!!
Yes, I have added the control to the collection. I have tried to mimic what the designer does, but maybe I have missed some small detail anyway. Does the paint event have to be tied to something before it can be invoked after invalidation of the control? I guess the windows form's message pump is involved somehow...perhaps it is not setup properly. I don't know much about the inner workings of windows forms and their controls, so I'm quite confused.
|
|
|
|
|
A thought: does your code call the Invalidate() method of the parent control? This method has multiple overloads, three of which take a boolean parameter "invalidateChildren".
|
|
|
|
|
I managed to get my control to show up finally, but it doesn't happen the way I want to. I had not actually added the control to the form's controls collection, but instead in the DataGridTextBoxColumn.TextBox.Controls. If I add the control to the form's collection, it shows up like it should. However, this is not the way I want to do it, since my form should only be aware of the columnstyles I use, and not of the controls they may use. I've written a new thread about this with a complete sample code that illustrates the problem. I hope you can help me! Thanks!!
|
|
|
|
|
Perhaps a snippet or two of your code would help.
The implementation of the OnPaint handler, and the code used to add the control dynamically, for instance...
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke
|
|
|
|
|
Hi!
I am looking for something like image recognition in .NET.
Short story what will I do:
Imagine I have a jpeg picture with a man on it. The background is
much brighter as the man on it. Imagine it so:
You have a white paper and a black figure on it.
I will automatically add 10 textboxes on the picture. But the 10 textboxes
can not be positioned on any part of the figure.
I need a framework or a sample code to recognize the image and set automatically
the 10 textboxes of any position on the picture where the background is
white.
do you know any sample code or a open source framework that provide
me this possibility?
Regards,
gicio
|
|
|
|
|
|
Hello
You can also look here. It's very simple to find all white regions with the library.
Andrew
|
|
|
|
|