|
Hello
can someone tell me are there any APIs or something like that available so that I set my own custom theme in place of windows xp default theme.I need to write an application which loads some themes from a folder and when one of the theme is selected from the list it is able to set that theme.
Regards
|
|
|
|
|
You can skin your own apps through controlling the repainting of the form. How to do this is out of the scope of a forum post, though.
"I really like comments where I don't have to answer stupid questions" - stfx
|
|
|
|
|
I have a BindingNavigator that handles a child relation. I would like to programmatically move through all items bound to the navigator, without simulating button clicks on it. How can I do this?
|
|
|
|
|
How can I alter/cancel the default behavior of UP and DOWN keys in the auto-complete feature of the combo-box (in Append mode)?
Yours truly,
MSI
|
|
|
|
|
Not sure but you may have to try and trap those two keys and work with them accordingly.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I have two (so far) user controls and a TreeView navigator. The tree view is 'bound' to a TransferDefintion object, and displays key nodes of that object. On selecting top a level node, I display the query editor user control, and if a child node is selected, I display a record editor user control.
What I would like to know, is what is a tidy way of updating the edited object when the user controls are swapped. E.g. the record editor has a reference to a Record object, but that object is not updated real time every time the user adds or deletes a field. At the moment I would prefer to tell the user control when to object its reference record.
If I clear the parent panel's control collection before adding a new user control, is there an event that will fire in the current user control before it is removed?
|
|
|
|
|
I want to build a Windows Form Application to represent the tasks done by a printer. the system should have the following features
1. Add a printing job to the printing queue.
2. Cancel a printing job
3. Pause printing
4. Set the priority of a printing job
5. Print the jobs with high priority
6. View the printing queue, jobs completed and jobs paused
7. Clear the printing queue.
A printing Job should have the following basic information
• Job ID
• Name of the file to be printed
• Status ( Completed / Paused / Cancelled )
• Priority Information
can store any more information as necessary.
required to use an appropriate data structure(s) and methods to implement the above scenario.
can design the interfaces with all the necessary features for each of the tasks mentioned above.
can include any number of interfaces to the system and also welcome to add any more features and functions to the system.
please give an ideea to do this system.
|
|
|
|
|
Have you checked this[^] out?
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Hello there,
I have a common child form which builds a filter string for SQL query before executing the command.
Problem is this form (Filter Constructer) gets called from several parent forms.
Is there anyway I can find the name of the parent form that called the child form, while I'm in the child form? As this will help me handle different procedures in the child form, according to which parent is calling.
Many thanks in advance for your great support.
Hani
|
|
|
|
|
Mehawitchi wrote: Is there anyway I can find the name of the parent form that called the child form,
The child form shouldn't care what form is calling it. Any information the child form needs should be set in a property of the child form, but the code that created and showed the child form. It's not up to the child for to go looking for it's parent.
|
|
|
|
|
As has been said, this is a poor design, but you can use the Parent property to work out what form created the child form, if you need to.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
I'm busy building a Windows Explorer style GUI, and I have three basic controls, before any other controls, and always present. I have a MenuStrip as a main menu, docked to the top of the form, and below it, anchored all round, a SplitContainer. Now it seems inelegant to have to manually position the top of the SplitContainer to nicely meet the bottom of the MenuStrip. I realise I can do this in code, but it's a designer type poblem, not a coding type problem.
I would have liked if docked controls only took up the remaining space, so that I can dock the menu to the top, and set the docking on the SplitContainer to Fill, and have it fill all empty space around it nicely. Am I missing something here?
|
|
|
|
|
What happened when you set the SplitContainer to Dock.Fill? Docking is also controlled by the z-order of the controls, so you may need to send things to the back a few times to get it layered correctly.
|
|
|
|
|
I see now, it's working properly. Thanks.
|
|
|
|
|
|
Iam using two forms in a windows appln. How can I access the control of the second form from the first form.
Thank you
|
|
|
|
|
Take a look HERE
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
Hi,
I am having an issue with labels where on a long label, with a small font size, words towards the end of the label are getting a more compact spacing between letters as compared to words at the start of the label.
Issue can be avoided with larger font sizes, but this isn't an appropriate work around.
I've chucked up a screenshot:
http://i24.tinypic.com/2a77y1l.jpg
Thanks in advance
Bryan
|
|
|
|
|
Use the AutoEllipsis property of the lable.. set it to true.
------------------------------------------------------------------
Life would have been much easier if I had the source-code!!
|
|
|
|
|
|
Hello
I am trying to use escape characters to display messages back to a scrollable TextBox in a windows forms application. Here is a code snippet:
Message.Text = "This Project containts a total of " + TotalDocs.ToString() + " documents.\r" +
TempPrintDocsCount.ToString() + " Documents have been copied to: c:\\Temp\\TempPrintDocs\\Projects.\r" +
UpdatedDocsCount.ToString() + " Documents have been updated.";
I have set "AcceptsTab" & "AcceptsReturn" to True for the TextBox. The only escape character that seems to work is the tab \t but none of the line feed or carriage return work?? Is this some bug with the TextBox in Windows Forms? Does anyone have a solution to this? Any help would be much appreciated!
Thanks!
Sidhusir
|
|
|
|
|
AFAIK:
1. a TextBox reacts to Environment.NewLine which on Windows typically equals "\r\n".
2. AcceptsTab and AcceptsReturn (and many others) influence the reaction to keyboard
input, not text assignment.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Thank you very much!
|
|
|
|
|
Figured it out, being a newbie, made the mistake of doing \n\r when it should have been \r\n!
|
|
|
|
|
The font object is used to set a font programmatically, but how do I change the font type or size in response to a button click event?
How does one populate a list box with the fonts a user has on his cpu?
Thanks,
Boyd
G. B. Swartz
|
|
|
|