|
Does anyone know how to do it?
|
|
|
|
|
You can use the code in the article to create a List<bool> for each one and save the user's selection there.
When showing it, read the respective List and iterate over it, setting the respective column's visible state based on the result.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Hi
I want Information about Printer which is active among all the printers that has installed on my System.
Steps:
1.open any link on Internet Explorer
2. select File -> Print and click.
A message box displayed
which shows to select a printer among various printers installed.
3. then clicks Print button.
I want to know the details of the Printer which had been selected for printing the page using c# ?
How can I?
If I want to cancel the printing action after giving to print, how can I cancel
|
|
|
|
|
I need to keep a logged in user's details and permissions kept in a globally accessible object.I know that c# doesn't allow you to store an object that is globally accessible but is it then better to just retrieve a users permissions and details again from the db instead of just passing a reference to every new form that I create? This object will be used to determine if a user can enter a sub-system of the application or just to change his password. Should I use MDI Forms perhaps? Any help would be greatly appreciated.
thanx in advance
modified on Tuesday, May 19, 2009 3:34 AM
|
|
|
|
|
Possibly use a static class?
E.g.
public static class UserDetails
{
public static string name;
public static string dob;
}
On start up the app could then do something like UserDetails.name = nameFromSomewhere
Elsewhere you could use e.g. if (UserDetails.name == "Fred")...
You would probably want to use properties rather than public fields.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
Simple, yet effective. Thanx. I kept on thinking that I'd have to instantiate an object for this purpose. I even considered running a new thread and just keep the details in an object referenced by that thread. But a static class seems simpler.
Regards
|
|
|
|
|
Hii,
i just want to know that How to redirect printer port to c# application.
modified on Tuesday, May 19, 2009 3:08 AM
|
|
|
|
|
Hi,
when we give print a web page opened on browser, how can we know the details of printer like its name etc., using c#?
|
|
|
|
|
Do you want to get the list of installed printers? If yes, work with PrinterSettings.InstalledPrinters property.
|
|
|
|
|
Hi I want the same thing almost, If there are 3types of printers installed,
I want to know the name of Printer which has been selected before giving the printer
|
|
|
|
|
Hi All,
In my windows application I am using 'Zedgraph' dll for displaying graph. In my code I am not using multithreading anywhere. On some of the systems (Windows XP) it shows unhandled exception 'System.InvalidOperationException' (object is currently in use elsewhere). And the instead of graph it just shows RED CROSS.
I have googled about this issue but it says that it may be due to Multithreading and I am not using it anywhere. And the application is running fine but creates problem on some of the systems on my Client side.
Any suggestion would be helpful...
Regards,
-SIFAR.
|
|
|
|
|
What version of .NET FF are you using?
|
|
|
|
|
It is .Net Framework 2.0
Regards,
-SIFAR.
|
|
|
|
|
How to convert a float decimal number into a single precision (4 byte) ?
Thanks
|
|
|
|
|
Convert.ToSingle
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hey all! I was just wondering if I should dispose of the dirty little RichTextBox control contained within the Selected TabPage that I will be removing? Or does that somehow just "magically" happen automatically? I searched on msdn and google (i did see code that disposes rtb's) but i couldn't find anything that says that it's neccessary?
thank you
jay
p.s. <--- what does P.S stand for? and... does anybody know of a better way to remove a selected tab page other than:
if( Tc.TabPages.Count >= 1 )
{
Tc.TabPages.Remove(Tc.SelectedTab);
}
|
|
|
|
|
I'll let Yogi Berra help you with this one ... hehe
"ps: stands for post script ... which is what you say after you are through saying what you said before you said what you said"
|
|
|
|
|
haha thanks mate, i knew why people said p.s i was just unaware of what the letters actually stood for lol
|
|
|
|
|
oh .. hehehe .. guess you didn't need Yogi's help ... lol
My favorite yogiism (though he says he never said it) is: "Nobody goes to that restaurant anymore because it is always so crowded" ... lol
Good luck with your Disposal problem ... neither Yogi nor i can help you with that.
|
|
|
|
|
hehe thanks yogii's fun i like him lol
|
|
|
|
|
In my background application, I want to "borrow" the cursor for a few microseconds and do some clicking and dragging (in an external application's textbox) in preparation for copying to the clipboard (that part works great), but it is uncool to steal the cursor from the user while he (for example) is in the process of moving or resizing a window as the result IS A MESS and generates some nasty language .
So i need to know if the User is currently using the mouse for ANYTHING in ANY other application just before i begin the fun stuff.
I'd like some code that functionally looks like:
... while (MouseDown) Thread.Sleep(100);
regardless of what application is active.
Thanks very much for your time and help!
|
|
|
|
|
hmmm... that does sound fun!
|
|
|
|
|
I don't see why you'd need the mouse to do that; find a better way.
|
|
|
|
|
I'm open to suggestions ... however, the SendInput that worked fine on a 32-bit XP machine no longer worked when recompiled on a 64-bit Vista machine.
Dunnno why, but i suspect SendInput might be fubar on x64 machines. SendMessage and mouseEvents weren't great solutions either ... hence the fun stuff.
btw ... your answer seems arrogant and condescending. I didn't realize that it was important to get your approval of my method before asking for help on how to do it ... shame shame.
|
|
|
|
|
I bet you are using a wrong struct, where a pointer is held in an int or so.
CORRECTION: I know you do, and I told you before.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|