|
Create a shortcut to the exe inside the "Startmenu"-"Programs"-"Autostart" folder.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Add a new string value to the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run that points to your app.
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
Or, more properly, create it as a Windows Service so that the end user can control the start up mode for the application, e.g. does it start up as Automatically or Manually.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hello
i'm trying to use the values i get from this code
for(int i=0;i<count;i++)<br />
{<br />
indice[i] = TableListBox.CheckedIndices[i];<br />
MessageBox.Show(indice[i].ToString());<br />
}
where TableListBox is actually a CheckedListBox and its checked indices are being stored in another array.
Now the problem is that when i run this code from its respective form it works fine, but as soon as i close the form and try to access this chunk of code from another form, it gives me the Index out of bound exception for CheckedIndices. i expect this is due to the reason that as soon as i close the form with the CheckedListBox, all its values are discarded.
i've tried solving this problem by storing the CheckedIndices into a static array, but it still is giving me the same exception.
So plz can anyone guide me about this problem of mine and tell me how to retain the checked indices after the form has been closed.
Thanks and awaiting ur reply
Saira
-- modified at 8:34 Monday 11th December, 2006
|
|
|
|
|
Posts marked URGENT will usually get ignored
only two letters away from being an asset
|
|
|
|
|
well mark
very kind of u to tell me that ,i'll be more careful in future.;P
so can u help me?????
|
|
|
|
|
you don't need to close it just hide it
|
|
|
|
|
it still gives the same exception
any other suggestins???
|
|
|
|
|
First the info you've provided isn't suffecient to judge the problem, but I'll take few guesses here.
1- The way you use to copy the array -ignoring the MessageBox of course- is quite wrong. You should use Array.Copy() or Array.CopyTo() static methods instead.
2- Failure of the static array ecludes that discarding the values of the CheckedIndices when closing the form is the problem.
3- Make a breakpoint and see the values of:
a. count
b. CheckedIndices.Count
c. indice.Count
Waiting for your reply.
Regards
|
|
|
|
|
well nader
the way i'm copying indices like this is due to the requirement of my problem.
the code i mentioned above is actually a function of form A. when i access this function from Form A, it works fine. But as soon i call the function from Form B it gives the exception. the complete function is:
public int[] GetCheckedIndices()<br />
{<br />
int count=Global.Instance.Count_Indices;<br />
indice = new int[count]; <br />
MessageBox.Show(count.ToString());<br />
for(int i=0;i<count;i++)<br />
{<br />
indice[i] = TableListBox.CheckedIndices[i];<br />
MessageBox.Show(indice[i].ToString());<br />
}<br />
return indice;<br />
}
now TableListBoxis the name of me checkedListBox
and CheckedIndices is its property.
indice has been declared as "public static int[] indice".
CheckedIndices.Count has the index of the items that have been checked in the chckedListBox.
ope this gives u enough information to understand the problem
awaiting you reply.
|
|
|
|
|
Things are starting to clear up a bit, but don't be frustrated when I tell you that you still didn't answer all of my questions. I'll put them straight this time:
1- Do you call GetCheckedIndices() from FormB directly? please post the code in FormB.
2- What is Global.Instance.Count_Indices?
3- When the above method is called by FormA. What are the numerical values of:
count, indice, TableListBox.CheckedIndices
4- Again when you call the same method from FormB; What are the respective values?
Forgive me if I didn't get a clear idea, or if I'm asking too much misleading question, but I'm trying to cover all the possibilities here.
Waiting for your reply. I hope that my next reply would be the answer.
Regards
|
|
|
|
|
Hi,
i want to format DateTime so that Day part of Date should be printed like that '1st','2nd','3rd','4th' etc. Please help me in this regard.
Best Regards
Kaleem
|
|
|
|
|
There is nothing built in to .NET that I'm aware of. The closest you'll get is say: 1 November 2006. You would have to create a custom class to handle this.
only two letters away from being an asset
|
|
|
|
|
hi
iam using atlas in my webapplication i need to upload an image and its not working
regards
chaitanya
chaitanya
|
|
|
|
|
So what is the problem you are encountering?
only two letters away from being an asset
|
|
|
|
|
Standard question #1:
What do you mean by "not working"?
Standard question #2:
What error message do you get?
Standard question #3:
What does your code look like?
---
b { font-weight: normal; }
|
|
|
|
|
i'm novice in C#.net 2005 and i want to know how to call or invoke the directX, how to display an image to the screen (full screen size) and how to play a music(.wav or .mp3).? what are the libraries needed..? Please give sample codes....
Sorry for my awkward english....
plz help!!!
-- modified at 7:41 Monday 11th December, 2006
|
|
|
|
|
Try using the DirectX 9 SDK. Examples are included. But if you're a novice at C# then I suggest you learn the basics first, since directx isn't so simple to begin with...
|
|
|
|
|
hi.....
what i mean of novice is im novice not on the language C# but only about invoking direct X using this language...... sorry for making you confused!!!
you have an idea about my problem..??
plz help!!!
|
|
|
|
|
Well, if you have some expercience already, I assume you already know about gdi. I'd use that to display the image. If you need a way to go fullscreen, just google. There's plenty of examples. Also, there's a p/invoke thingie for playing sound. If you insist on using directX, I don't see why you would, just use the examples that come with the sdk.
|
|
|
|
|
hi every one,
when u have an unbound combo box in the datagridview. how do u get the value selected in that combobox. I'm trying to do that and its giving me a nullref exception. I'm working in c# 2.0 windows forms
I was trying to access that with somethin like this
datagridview1["AttendanceComboBoxColumn",i].Value.ToString();
but its not working.
plz help its urgent
thanks in advance!!
Rocky
|
|
|
|
|
Hi all, Could anyone help me building an 'Un-Installer'. Our team developed a set of client applications. I am supposed to build an Un-Installer which can Un-Install more than one application based on User's choice .. Please help me (or refer me some resource) how I can build an Un-Installer in C# ??? Waiting for your replies ...
Thanks in advance
Kaliem
Two wrongs dont make a right but three lefts do...
|
|
|
|
|
to be specific, I want to develop Un-Installer in .NET ....
|
|
|
|
|
You can have a MSI project to setup right. That would manage your install and deinstall seamlessly. To create a MSI project you can access New -> Project -> Setup and Deployment project in your Visual Studio.
|
|
|
|
|
Hi all,
I have an application that fetches data from a web service, and then displays the data into the datagrid on a form.
I have put some images so that the form looks similar to the Web page developed for the same application.
Now the problem is when i show the form the form displays and then all the controls are slowly painted on it.
What i want is the form should not be displayed until all the controls are fully painted on the form. So that it does not flickers.
Any ideas, pointers in this regard will be appreciated.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|