|
Hi All,
I am struggling with some issues. In order to give the users the possiblity to edit layouts of their documents within their own comfortzone i decided to make use of Microsoft word. It works like a charm but My problem:
The users wants a quick-preview of the document when or before merging/editing the document. So i thought i make a form with a printpreview component on it, kick of the word document and go. But this does not work, the preview component cannot handle word documents and i would rather not start up an instance of word (to costy and heavy in loading time
Any suggestions, ideas how to give the users a fast preview?
Thanks!!
Kind regards,
Marcel Vreuls
http://www.marcelvreuls.com
< >
|
|
|
|
|
Hi,
I draw some graphics in a form,such as rectangles,lines.Now when i double click the form,how can i know which graphics i selected or i selected nothing. and then i want to do something with the graphics.
In other say ,how can i get the graphics when i click it??
|
|
|
|
|
Create an abstract base class, which contains overrides for the mouse down and mouse up messages. For each type of item you want to use, create a class that derives from your base class containing the drawing code. Sprinkle instances liberally on your form, and bingo - you've got code that can determine which item has been clicked on.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
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.
|
|
|
|