Click here to Skip to main content
16,005,473 members
Home / Discussions / C#
   

C#

 
AnswerRe: connectivity with remote server Pin
Mubeen.asim19-Feb-09 2:56
Mubeen.asim19-Feb-09 2:56 
QuestionC# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
samskiter19-Feb-09 2:39
samskiter19-Feb-09 2:39 
AnswerRe: C# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
Rob Philpott19-Feb-09 3:14
Rob Philpott19-Feb-09 3:14 
GeneralRe: C# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
samskiter19-Feb-09 3:33
samskiter19-Feb-09 3:33 
GeneralRe: C# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
Rob Philpott19-Feb-09 3:46
Rob Philpott19-Feb-09 3:46 
GeneralRe: C# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
samskiter19-Feb-09 5:44
samskiter19-Feb-09 5:44 
GeneralRe: C# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
Rob Philpott19-Feb-09 6:34
Rob Philpott19-Feb-09 6:34 
GeneralRe: C# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
samskiter19-Feb-09 6:57
samskiter19-Feb-09 6:57 
right, i have tried everything under the sun at the top:
public Settings setting;
private Settings setting;
private Form setting;
public new Settings setting;


but the only way i can make setting.ShowDialog(); work is by using Settings setting = new Settings(); just above it in the click event method.

otherwise i get this error once the program is running (is this a runtime error lol?):
Object reference not set to an instance of an object.


Rob Philpott wrote:
Don't really know about the driver bit I'm afraid. Visual Studio does do setup projects but I doubt it supports installing drivers. You'll have to Google around a bit I think.

Cool, will do, its not vital :P the easier the install, the better tho :P

Rob Philpott wrote:
VB6 is hideous. C# is a dream!

haha i've been told that but i like it in a way, probs cos im used to it! hmm, this project is my first experience of .NET :P its not so bad


Rob Philpott wrote:
Not sure what you mean. Events get fired and have handlers which respond when fired. There's no looping normally.

hmmm, well this is the heart of my event, and this is that that new thread is required for, at the minute it fires the event when calc.exe is started or exited:
public void MediaCenterRunning()
        {
            for (; ; )
            {
                Thread.Sleep(1000);
                bool onoff = (System.Diagnostics.Process.GetProcessesByName("calc").Length != 0);
                Debug.WriteLine(onoff);
                if (onoff != on)
                {
                    MediaCenterEventArg StateInfo = new MediaCenterEventArg(onoff);
                    if (MediaStateChange != null)
                    {
                        MediaStateChange(this, StateInfo);
                    }
                }
                on = onoff;
            }
        }

i just fumbled the event together out of code chunks and that guide and a bit of fudging Shucks | :-\
Questionhow to drag and drop image in c#.net & how to resize it after drop the image? Pin
poonam jagdale19-Feb-09 2:32
poonam jagdale19-Feb-09 2:32 
AnswerRe: how to drag and drop image in c#.net & how to resize it after drop the image? Pin
Calin Tatar19-Feb-09 2:37
Calin Tatar19-Feb-09 2:37 
QuestionMin (110) must be less than or equal to max (-1) in a Range object. Pin
Priya Prk19-Feb-09 2:01
Priya Prk19-Feb-09 2:01 
GeneralRe: Min (110) must be less than or equal to max (-1) in a Range object. Pin
Luc Pattyn19-Feb-09 2:13
sitebuilderLuc Pattyn19-Feb-09 2:13 
AnswerRe: Min (110) must be less than or equal to max (-1) in a Range object. Pin
michal.drozdowicz23-Mar-09 5:03
michal.drozdowicz23-Mar-09 5:03 
QuestionCompare two .DAT file using C# Pin
Member 322226419-Feb-09 1:52
Member 322226419-Feb-09 1:52 
AnswerRe: Compare two .DAT file using C# Pin
Luc Pattyn19-Feb-09 2:20
sitebuilderLuc Pattyn19-Feb-09 2:20 
Questioncreating a setup file Pin
aratireddy19-Feb-09 1:26
aratireddy19-Feb-09 1:26 
AnswerRe: creating a setup file Pin
Ramkithepower19-Feb-09 1:38
Ramkithepower19-Feb-09 1:38 
GeneralRe: creating a setup file Pin
Calin Tatar19-Feb-09 1:52
Calin Tatar19-Feb-09 1:52 
AnswerRe: creating a setup file Pin
Nuri Ismail19-Feb-09 2:20
Nuri Ismail19-Feb-09 2:20 
QuestionReading specific no if bytes from an UDP datagram [modified] Pin
M. J. Jaya Chitra19-Feb-09 0:51
M. J. Jaya Chitra19-Feb-09 0:51 
QuestionRead lines in PDF file Pin
abbd19-Feb-09 0:24
abbd19-Feb-09 0:24 
AnswerRe: Read lines in PDF file Pin
Deresen19-Feb-09 1:01
Deresen19-Feb-09 1:01 
GeneralRe: Read lines in PDF file Pin
abbd19-Feb-09 1:22
abbd19-Feb-09 1:22 
GeneralRe: Read lines in PDF file Pin
Pete O'Hanlon19-Feb-09 1:47
mvePete O'Hanlon19-Feb-09 1:47 
QuestionWeather Forecast webservice Pin
ranandbe19-Feb-09 0:11
ranandbe19-Feb-09 0:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.