|
OK, I dont remember having seen a single CP article on drivers.
And IIRC the first thing you will need is called a DDK (Drivers Development Kit).
I also suggest you trim down your PC as much as you can: since you are going to reboot
your PC every time you hit the RUN button, better have the fastest boot time possible.
|
|
|
|
|
Isn't there a timer which uses Performance Counters or something like that?
|
|
|
|
|
You could always look at rdtsc ( ReaD TimeStamp Counter ) instruction which gives you a 64bit integer of how many clock cycles have passed since the computer was started up. To use it, you would have to write a .dll in C++ with inline assembly language, and call the .dll from your .NET app. Since it is in terms of clock cycles, it might be too fine of a measurement, but just a thought...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
i have to display reports in my application.how can i do it?my application is device application and not for desktop.
|
|
|
|
|
I'm building a "simple" program to provide support to a much larger software package that runs on some dedicate machines. The "simple" program consists primarily of a single form that I imported from the larger software package. Unfortunately, the form from the larger package is sized at 1280, 1024 to fit with the resolution used on the dedicated machines and to enable to display of all the data I need to display on one page.
The support program, though, will not run on dedicated machines, so there's no way I can guarantee the user of the support program will have his/her screen set to 1280 x 1024 resolution. I could either try to resize the form, i.e., rearrange the data so the form's size can be 800 x 600, or do something else, like add a vertical and horizontal scroll bar to the form. If I do that, how do the scroll bars actually work? Any suggestions on how I might best handle the situation would be appreciated. Thanks.
|
|
|
|
|
You might try breaking up the components from the imported forms and placing them in tabs. They you can get your simple form sized down for your users and still be able to present all the info.
Hogan
|
|
|
|
|
You could look at the AutoScroll property of your host form, and place your large form as a control on the host form.
|
|
|
|
|
Thanks. The AutoScroll property worked fairly well. What I'm thinking of trying also is temporarily adjusting the screen resolution on the customer computer if the 1280 x 1024 setting is available for as long as the support program I'm developing is running and active and then resetting the resolution back to whatever the customer had it set to originally when the application closes. I don't know if this is considered acceptable programming practice or not, but it might be the best thing for the customer, ultimately, so they can easily see the data they need to see on one page.
|
|
|
|
|
Hi,
some MS specialists will flame you if you programmatically change the desktop resolution,
since the desktop belongs to everyone, not just your program.
Furthermore, it is not simple; it needs some P/Invoke to get it done, but when you try
to undo, you will notice that:
1. desktop icons have moved
2. some open windows have been resized
3. some minimized windows, when they get restored, dont restore to their original size.
I am still working on a utility to do all this correctly; I have covered 1 partially,
2 entirely, and I am afraid 3 is impossible to solve. All this for XP; it may be quite
different on every other Windows incarnation.
And concerning your form problem: you might consider reducing the size of (most of) the
controls on your form, which also means reducing font sizes of course.
Whatever you do (adapt resolution, or adapt sizes), the visibility is likely to suffer.
Hope this helps.
|
|
|
|
|
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
|
|
|
|