|
Hi all,
I have a MDI names as MainForm and in that MainForm MDI i have a menu item names as File
to the File Menu item i have a form named as 'Employees',
Here in my 'Employees' form i have a button names 'AddEmployes'
Whenever user clicks on 'AddEmployes' Button a form named as 'Employee Details' will opens,
NOW MY PROBLEM IS --When the user selects one employee department of 'Employee Details' Form and selects Save Button of 'Employee Details' Form
data of THE 'Employee Details' Form is saving and the 'Employee Details' Form is CLOSING..
ALL I need is i need to make the Employee details form to be in to the same state allowing the user to select another option..
I've tried in several ways,(taken Dialog box at last) and left with no answer,
I don't want to use DialogBox option,,,
Please help me
Thanks in advance
Prashanth
|
|
|
|
|
Did you get the answer to your question?? Your question is not 100% clear. What I understand is when you click on the save button, after saving, your form closes down. Well, the only way it will close is when u ask that for to close. Just remove that code.
If my comments does not make any sense, send me the code snippet so that I can see whats going on.
Cheers.
|
|
|
|
|
can u send me Snipset of ur code..so get ur problem?
|
|
|
|
|
Hi,
I don't want my user to be able to type in a new item into my combobox, but I can't seem to find a property to set this. Seems logical that there should be one though, is there?
edit: I realize that a listbox would be an option, but I want to have a combo box styled control for this application.
edit 2: Problem solved, for future reference: set DropDownStyle to DropDownList (rather than just DropDown)
Thanks (anyway)
-- modified at 5:53 Thursday 5th July, 2007
|
|
|
|
|
|
Hi,
I run the windows application and then on the desktop right click and bring up the properties. Goto Appearance tab, under the windows and buttons dropdown select windows classic, under color scheme select pumpkin.
Now the Appearence of the application is totally changed. Is there any way to restrict this?
Karthik
|
|
|
|
|
You could draw all the controls yourself. Alot of controls you can set the colours on and so fix thier look but even with those there are often colours you don't have control over.
It also depends on the language you are writing the app in.
You could buy a commercial skinning library.
|
|
|
|
|
What a nasty example. Who even came up with that scheme?
|
|
|
|
|
Nasty schemes like that are useful for putting on servers ... that way no one can say "I didn't realise I was on the server!" lol
|
|
|
|
|
When you set colours for your forms and controls use web colours, not system colours. Web colours are absolute RGB values, system colours use whatever the windows colours are set to.
|
|
|
|
|
i have text boxes in my form.
after running the application i enter the values in these text boxes.
now i want to print these values.
how can i?
please suggest appropiate solution for this.
Post the code for the same
hhhhhhhhhh
|
|
|
|
|
http://www.google.co.uk/search?hl=en&q=c%23+printing&meta=[^]
Google is your friend.
And don't cross post, the C# forum was the right place to ask. If you follow the articles and tutorials from google then come back and ask more questions when your stuck on a specific problem and people will have no problem in helping you work through it.
|
|
|
|
|
Look at the PrintDocument class for starters
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Hi,
I am using a treeview control to show image on each node depending on a particular variable's value (green if it is set and red if not. Bydefault red)
When I am setting the variable for a particular node then the node's image is changed to green(required behavior). But when I click on a node which has green image, the node's image is automatically changing to red and again changing back to green after changing the node selection.
Please help me in solving this problem.
Thanks:
Rakesh
Rakesh
|
|
|
|
|
Check out the SelectedImageKey and ImageKey properties ... these control what image is set by default and when a node is selected. they should both be clear if you want to control it.
|
|
|
|
|
I have set these values to null in the tvQuestionsList_NodeMouseClick eventhandler but the problem still persists .
Rakesh
|
|
|
|
|
Set them both to the same value.
|
|
|
|
|
That worked but one more problem has raised, when I select other node the previous node is again changing to red color from green. What could be the solution...
Also can you suggest me any refference for this SelectedImage property like how it works and so.
Thanks:
Rakesh
|
|
|
|
|
|
I fixed it. Thanks...
Rakesh
|
|
|
|
|
Hi Ed,
Can you help me solving one more problem?
I want to retain the back color of the selected node when I change the selection of the node through my form's next/previous buttons. To be clear when I am clicking on any node with mouse the backcolor is turning to blue(system generated). But when I am changing the selection the backcolor of the newly selected node is turning to white.
I tried to modify the backcolor explicitly but I am not getting the same color as if system is giving by default.
thanks in advance,
Rakesh.
Rakesh
Rakesh
|
|
|
|
|
rockyl wrote: but I am not getting the same color as if system is giving by default.
Are you using SystemColors.HighlightColor ?
|
|
|
|
|
No I am not using this color. Will this solve my purpose?
Rakesh
|
|
|
|
|
This colour changes automatically to reflect the highlight colour (used when the TreeView item is selected) defined by the user in the Display Properties of Windows. So it is the same colour as the TreeViews selected node colour.
|
|
|
|
|