|
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
|
|
|
|
|
hi
1. myLabel.Font=new Font("Arial", 12);
2. InstalledFontCollection Class will give the names, which you then add to myListBox.Items
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
|
|
|
|
|
Thanks Luc, but I want the parameters to be variables as other controls are changing the name, size and type.
MyLabel1.Font = (Font)fc.ConvertFrom(mystring);
This will change the name but I can't get the size to work.
I will look up the other class.
boyd
|
|
|
|
|
when I wrote new Font("Arial", 12) as an example, I assumed you understand
one can also provide variables rather than literal font names and font sizes...
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
|
|
|
|
|
Yes,
string mystring = "Tahoma";
string oldstring;
oldstring = label1.Font.Name.ToString();
float mysize =16;
label1.Font = new Font(mystring,mysize);
This works, I had been using int and not float.
I got the installed fonts working also.
Thanks again,
Boyd
|
|
|
|
|
I m using vb.net 2005. I dont want to hard code my connectionstring I want o be able to pass the Database name and teh server name to my connectionstring
any vb.net code will be appreciated.
How do i serach a domain or a network for the servers
t.aransiola
|
|
|
|
|
Normally you would do this in the connection strings section in your config file. That's why its there.
Deja View - the feeling that you've seen this post before.
|
|
|
|