|
Thanks. I managed to edit the desktop resolution on program startup, but, well, the first form the user sees is a small login screen. If I change the resolution when the login screen appears, the user will see everything behind the login screen change without any prompting, and that, honestly, freaked me out a bit (and I expected it to happen, obviously). If, on the other hand, I have the resolution change when the larger form appears, it's still a bit unnerving because the difference between the resolution on the login screen and the resolution on the main application form is rather obvious. I can see the whole process causing a bit of angst in the users of the application.
What I decided to do, ultimately, is resize the form so that it will fit a 1024 x 768 desktop, which, I believe, is the most common resolution for the average user. If someone uses an 800 x 600, I have the AutoScroll property set to true so they can see the information if needed. When I resized the controls (and the fonts), well, as you said, the form loses some of its visibility, but I think it will work well enough.
Thanks or the advice, and for cueing me in to some of the problems inherent in attempting to solve this problem.
|
|
|
|
|
Hello!
I need to check if some url is in the intranet zone (in ie)and whether it has fulltrust. if not i want to add this url to the ie intranet zone. i couldn't find anywhere how to do it in c# or any other programming language.
|
|
|
|
|
Hi!
Thanks to J.Patel who send me link to setup & deploy the Pocket pc application
the link is here
http://www.devx.com/wireless/Article/31198/1954
but at "File System pane, right-click Application Folder and select Add—>Project Output…. In the Add Project Output Group window, select Primary output";
i did not find primary output there it appears empty so what can i get it.
please send your suggestions.
Thanks in advance.
|
|
|
|
|
Hi how to Disable all the DatagridViewCells on page load ?
And how to enable a cell afterwords?
|
|
|
|
|
I cant find a good example or tutorial how to call a webservice dynamicly from a Windows Application.
The most tutorials use an Assembly code generator to generate the code. But I think this is too complicated.
I want this:
1. Load XML
2. Create Webrequest
3. Send XML
4. Get and read Response
Do you have any suggestion?
|
|
|
|
|
The code that is created is a proxy class that is required to use the webservice in your application, it isn't complicated, its generated automatically.
only two letters away from being an asset
|
|
|
|
|
Hi!
in one of projects i load a View with about 10 textboxes and a bit less comboboxes placed on a tablelayoutpanel databound to a dataset.
the problem is that while loading the View it flickers a lot. like redrawing all of these controls a few times - looks quite disturbing..
i tried SuspendLayout of the main form while loading the control but did't seem to solve the problem..
anybody have any ideas how to get rid of the flickering?? (tried View's doublebuffered = true too..)
life is study!!!
|
|
|
|
|
Hi,
two ideas:
1. I dont think SuspendLayout gets propagated to the form's children; so it stops the form
relayouting its direct Controls, but it does not stop those Children from relayouting
or repainting themselves when they feel like doing that.
2. For some controls there also is BeginUpdate/EndUpdate which stops the redrawing.
Hope this helps.
|
|
|
|
|
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
|
|
|
|