Thank you guys for your input :) I greatly appreciate it
motojojo
Posts
-
Locking windows desktop -
Locking windows desktopI'm working on a project in school to lock public computers and to regain access with a PIN code.. Yes, I've thought of that myself but this can be ignored by switching to another app with CONTROL - TAB, no? Regards :)
-
Locking windows desktopHi, I wonder how to lock up the windows desktop in C#, meaning that the user can't do anything, just sees a form... I've been thinking about using a form with maximized window state and topmost = true, but then I still need to disable the ALT + TAB shortcut somehow... Does anyone have any suggestions? Your help is greatly appreciated :) - a young C# programmer
-
form return problem!I don't see the solution here on first sight.. I'm really trying to return an instance of an object (not a value) when the user chooses to commit the changes...
-
form return problem!Hi folks, Here's my problem: (and the source of my frustrations) I'm writing an app to control a service.. Now, the settings of this service are kept in a serialized file, which is the serialized form of my configuration - object... The user should be able to specify certain settings by pressing a button, so what I do is passing an instance of the configuration class to the SettingsForm. e.g. frmSettings formsettings = new frmSettings(myConfiguration); now for the big question: How can that frmSettings RETURN the modified myConfiguration to the parentform without having to go to the trouble of serializing the stuff, writing it to the disk and deserializing it again in the parent form... Thank you very much for your response! A young c# programmer:)
-
passing mainform instanceI've said too much. Appearantly it does work (I made an error) :) thank you guys
-
passing mainform instanceMartin# wrote:
private SomeClass mySomeClass;public MainClass(){ InitializeComponets(); mySomeClass = new SomeClass(this);}
I've added another constructor to my Toolbox which takes no parameter so now I have Toolbox(Mainform mainform){ ... } and Toolbox(){} however, this results in an infinite loop...
-
passing mainform instanceYou are right, I didn't initialize that object in the constructor Now that I did, indeed it takes 'this' as a reference, however all of my other methods are souped up since now toolbox doesn't exist enymore as a class parameter. --> The name 'toolbox' does not exist in the current context. Stuck again. I'm just stupid I guess.. Sigh :)
-
passing mainform instanceThanks for replying however this isn't the problem, I've thought that myself. The problem is:
Stefan Troschtz wrote:
frmToolbox = new frmToolbox(this);
This does NOT work as I experienced yesterday. I can't pass the MainForm around in the MainForm code using 'this' :( Problem not solved :sigh:
-
passing mainform instanceI'm wondering how I can pass the instance of the MainForm in my application. The situation is this in my MainForm: ... frmToolbox = new frmToolbox(**MainForm**); ... However, I don't seem to find a way to pass the form around (this doesn't work) Can anyone help? Thank you very much
-
Calling a method from a form in another form [modified]thank you for your feedback guys :) I've worked around it
-
Calling a method from a form in another form [modified]Hi, I was wondering how to access a method in a form from another form. I know that this implies using the 'static' modifier, however, this seems to be very troublesome. I was thinking there should be a way to access the instance of a form at realtime to use one of it's public methods.. (The form of which the method I want to call happens to be the main form of the application) Does anyone know how to do this? I'm stuck :) Actually I was considering using the Observer Pattern for solving this problem, however I expect there should be a much more straight-forward solution..? With kind regards, Johan Vandewalle -- modified at 6:06 Wednesday 21st February, 2007
-
Need guidance: workspace & reflectionHi, I'm a Java programmer and I know a bit of C# (let's say all the fundamentals and perhaps a bit more), however, I still lack a lot of experience on the field of programming form-applications. I have a concept for something of a Microsoft PowerPoint-like application. My problem is: I don't know how/where to start on building the framework for the GUI. When the program is running, the user should be able to drag and drop controls (text, buttons, ..) on the workspace, and my idea was to render them using reflection (does anyone know a 101 on this?). Is there a good starter kit for building 'workspace' applications? Your help is very much appreciated. - A young C# programmer
-
C# programming: Workspace app & reflectionHi, I'm a Java programmer and I know a bit of C# (let's say all the fundamentals and perhaps a bit more), however, I still lack a lot of experience on the field of programming form-applications. I have a concept for something of a Microsoft PowerPoint-like application. My problem is: I don't know how/where to start on building the framework for the GUI. When the program is running, the user should be able to drag and drop controls (text, buttons, ..) on the workspace, and my idea was to render them using reflection (does anyone know a 101 on this?). Is there a good starter kit for building 'workspace' applications? Your help is very much appreciated. - A young C# programmer :) ------------------------------------- Kerfeunteun!