|
Thank you for your answer!
Base on your answer the abstract base class must be derived from UserControl who has the muouse events??
But i my solution the mouse event happened in the form. Your meaning is that when the mouse down add up,i return the graphics class itself,and in the form catch it??
Thank you..
|
|
|
|
|
IMO your base class could derive from Control or from any Control you choose (such as Panel).
User Controls are useful if you want to package things in such a way that you can
reuse them in another project (DLL), and/or manipulate them in Visual Designer.
If you derive Shape from Control, then MyRectangle from Shape, you can add these to
your form's Controls property (or even to each other for hierarchical drawings).
|
|
|
|
|
I have added a TreeView Control in my Form. I have also added One RootNode and Two Child Nodes using the Tree Node Editor by selecting Nodes Property. I have to change the Text and Name Properties for these individual Nodes. I can't change these properties because the properties window is displayed for individual nodes. It's is displayed only for the TreeView Control and other Controls in the form. I am using Visual Studio 2003.
How to do this?
|
|
|
|
|
Hi don't know if this is what you are looking for?!?
Put this code in the required method :-
TreeNode parent = new TreeNode("ParentText");
TreeNode child1 = new TreeNode("ChildText1");
TreeNode child2 = new TreeNode("ChildText2");
parent.Nodes.Add(child1);
parent.Nodes.Add(child2);
treeView1.Nodes.Add(parent);
What this does is makes a parent node and two child nodes below it and adds it to the
treeview control "treeView1", let me know if this information was of any use
|
|
|
|
|
How can I create a wireless bitmap file, having the following information using C#
Width = 8
Height = 8
Data = 0x00,
0xbd, 0xdb, 0xe7,
0xe7, 0xdb, 0xbd,
0x00
Thanks
|
|
|
|
|
Fara76 wrote: wireless bitmap file
only two letters away from being an asset
|
|
|
|
|
What on earth is a "wireless bitmap file"???
|
|
|
|
|
Wireless bitmap (WBMP) is the de facto WAP image
format.
WBMP images are monochrome (black & white) so that
the image size is kept to a minimum.
|
|
|
|
|
maybe this article could be of some help
http://www.codeproject.com/useritems/bmp_to_wbmp_converter.asp
|
|
|
|
|
Hello Every body,
I m new with windows application.
I had two forms From1 and Form2.
Their is a button on form1 and on the click event of that button I had made object of form2 and open with
objForm2.showDialog();
But when this form2 is loaded I want to close the form1.
I had tried this.close.
But no use.
Regards,
rahul saini
|
|
|
|
|
You can't close the first form here - you've called ShowDialog so control transfers to the second form until you close that.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Switch your showDialog() to a Show() then you should be able to close the first form.
Ben
|
|
|
|
|
Hi,
while form2 is shown with ShowDialog() form1 normally remains visible, but inaccessible;
i.e. form2 behaves like a modal dialog, one that gets all the attention the process gets,
until form2 is closed.
If you dont want to see form1 behind form2, I would try this:
this.Hide();
objForm2.ShowDialog();
this.Show();
BTW: you normally capture the return value of ShowDialog to find out the reason it
got closed(use different DialogResult values for different buttons on the dialog).
|
|
|
|
|
I want source of an application that nobody can kill or terminate it .
please help me as soon as possible ...
DMASTER
|
|
|
|
|
You and every other script kiddie on the planet.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Sorry , bit I don't know you clear
please illubrate in more details ...
DMASTER
|
|
|
|
|
Let me put it another way then. In Windows, you can't - an application can always be terminated. Obviously, embedded systems don't work like this, but they are outside the scope of this discussion.
The application runs inside a process, and somebody with sufficient privileges must be able to kill a process. This is a by design behaviour, to prevent bad or runaway processes from trampling all over a system.
More importantly, this behaviour prevents viruses and worms from taking total control of a system and being unstoppable.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Developer611 wrote: please illubrate in more details ...
Illubration: An application that cannot be terminated by the user is what every virus-writing, lowlife, script-kiddie excuse-for-a-programmer wishes was possible.
|
|
|
|
|
do you know any way?
DMASTER
|
|
|
|
|
Why would you want to do this? Why do you want your application never to be killed or terminated?
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
why you ask?
i like it...
DMASTER
|
|
|
|
|
What part of "ITS NOT POSSIBLE" don't you understand???
Developer611 wrote: why you ask?
i like it...
This is the typical response we expect from a script-kiddie to a questio nsuch as yours. There is NO LEGITIMATE reason to want to do this, and as such, your attitude justifies my response stated in the first line of this post.
For you - It's not possible.
For someone with a LEGITIMATE reason, it's possible, but will not be discussed out in the open because of the extremely sensitive nature of the process and it's possibility for abusive use.
|
|
|
|
|
while(1)
{
if (you dont know)
{
tell me dont know
}
else
{
tell me any thing you know
}
}
DMASTER
|
|
|
|
|
In the abstract (as in know what parts of win32 to start googling on) there are a number of people here who probably could do it. *BUT* hell will freeze over before any of us help you write malware!
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
Wow. This is just plain rude. Some of the experienced programmers probably could do it, but they are not going to because:
1) The whole idea of it seems malicious
2) You are being rude
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|