|
Every time i make a program and send it to a freind or relative, they tell me it doesn't work.
I upload it to my other computer and it doesn't work on there either, how do i fix this problem?
|
|
|
|
|
Just as a guess, I would suspect that they don't have the .NET framework installed. There is a redistributable available for each different version of the framework that allows you to install it for them.
|
|
|
|
|
You would think after 3.5 versions, the power that be will change the general exception message box to something like ".NET Framework can not be found............"
|
|
|
|
|
C# Beginner Nick wrote: it doesn't work
meaning...
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Typically a user says this to helpdesk.
Since you categorize yourself as a developer, please notify "helpdesk" (meaning us) what the error is, what you have done etc... instead of telling us "it doesn't work".
the more info we get, the better chance for you that anyone will know a solution...
good luck.
V.
If I don't see you in this world, I'll see you in the next one... And don't be late. (Jimi Hendrix)
|
|
|
|
|
If no one has mentioned this to you before, please give your message titles some meaning.
|
|
|
|
|
Instead of just building the executable; go to the Propject > Properties > Publish page.
Make sure that you have .net framework selected as a prerequisite and that you are deploying to the filesystem rather than a webserver, turn off updates and then click "Publish Now".
You should now have a bunch of files in your chosen directory that can install your app and its prereqs for you. If you zip this lot up and send it to people then the thing will probably work.
Of course given the explanation of the problem i may be way off the mark here but that's worth a try.
Russell
|
|
|
|
|
Then stop sending them programs.
|
|
|
|
|
I had selected a single row from a table using where condition.
when i populated the dataset's values to string variable it shows error.
I checked for rowcount, it shows as 1.
My code::.....
code
strGroupName = locDts.Tables[0].Rows[1].ItemArray[0].ToString();
strGroupId = locDts.Tables[0].Rows[1].ItemArray[1].ToString();
code
it prompts an error as"There is no row at position 1"
pls suggest me.
senthil
senthil
|
|
|
|
|
Remember that this is zero based, so a row count of 1 means that the row is actually 0. Hence, locDts.Tables[0].Rows[0].ItemArray[0].ToString();
|
|
|
|
|
I had selected a single row from a table using where condition.
when i populated the dataset's values to string variable it shows error.
I checked for rowcount, it shows as 1.
My code::.....
strGroupName = locDts.Tables[0].Rows[1].ItemArray[0].ToString();
strGroupId = locDts.Tables[0].Rows[1].ItemArray[1].ToString();
it prompts an error as"There is no row at position 1"
pls suggest me.
senthil
senthil
|
|
|
|
|
How to people go about obscuring the stuff in a client side configuration file?
I thought about crypto but then I'd have to have the key lying around somewhere.
It's for an app that will be set up by an administrator and then use by people who shouldn't be able to change these settings or view passwords contained in the config file. I'm not expecting a very high level of attack against the application.
Would it make sense to use manifest data such as ExeName and culture to create a key? Is there a unique identifier for a workstation that i could use to tie the encrypt to the machine it was configured on?
If anyone has had a similar issue in the past i'd love to hear their experiences.
Thanks
Russell
|
|
|
|
|
There is a built-in method for doing machine based encryption. Search the msdn.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
thank you,
Isn't it incredible that the msdn search only works if you type in exactly the right expression. I look forward to the the day when i see "Search powered by Google" at the top of those pages
Russell
|
|
|
|
|
Hey guys,
I m trying to emport some data from excel using Oledb.
wen i use this connectionstring everything works fine:
string sConnectionString = @" Provider=Microsoft.Jet.OLEDB.4.0; Data Source=Book1.xls;Extended Properties=""Excel 8.0;HDR=YES;"" ";
Bud wen i try to pass the data source as parameter like this:
string sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;"+"Data Source="+ datasource+";"+"Extended Properties= Excel 8.0;"+"HDR=YES;";
then i get the error:
Could not find installable ISAM.
any idea how to pass the data source parameter in this case?
|
|
|
|
|
Hi all,
I have a contextmenu strip with a combobox in it. After the user selects an item the context menu still remains. How can I 'hide' the context menu strip after a selection was made from the combobox within the context menu?
Thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: How can I 'hide' the context menu strip after a selection was made from the combobox within the context menu?
Just a guess - Does the combo box have a selection changed event? If so use that to close down the menu.
|
|
|
|
|
Colin Angus Mackay wrote: Does the combo box have a selection changed event?
Yes.
Colin Angus Mackay wrote: If so use that to close down the menu
Ok ... this is were I get lost. How do I do this?
Thanks for your reply
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
|
Hi all,
I've got some experience working with .NET ActiveX components, so this is not a particularly new area for me. I'm currently developing a small component which will allow one of our products to interface with Microsoft Office SharePoint Server 2007. Obviously this means that I have to develop on the sharepoint server as Microsoft don't support client-side application development for sharepoint. However, when I attempt to register my ActiveX control on the server, the registration appears to complete successfully, but the ActiveX control is definitely not registered (I've checked tstcon32.exe and also in the registry to be sure). The exact same command definitely works on my XP boxen (the command I'm using is regasm foo.dll /tlb /codebase).
Does anyone have any insights? Google searches aren't really turning up, and I think either I've got a problem my end or codeproject searches are borked at the moment, I just get timeouts when I try and search, so apologies in advance if this question has been answered elsewhere.
Thanks very much in advance,
Mike Lewis
|
|
|
|
|
Hello,
I need to check the status of an "Intel Matrix Storage" RAID 10 via C#.
The specific RAID Data:
Onboard RAID Controller
Mainboard: P5WDG2 WS Pro
Chipsatz: Intel 975X
RAID Controller: Integrated in Southbridge: ICH7R Southbridge
Is there a way to get the status of this RAID System programmatically ? Can anyone point me in the right direction ? I don't know where to start looking.
|
|
|
|
|
tghzujkiolp wrote: Can anyone point me in the right direction ?
Intel.com[^]
But seriously, you should find the answers you are looking for there. Most of Intel's stuff is well documented.
xacc.ideIronScheme a R5RS-compliant Scheme on the DLR
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."
|
|
|
|
|
Hi all,
Continuing the development of my 2D game for school, I encountered a new problem that is killing me.
When I draw 1 sprite on top of the other, the one on top starts flickering. I googled for a while and found that doublebuffering would solve the problem. However, setting the styles:
SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint, true);
does not work, neither does DoubleBuffered = true, and at one point I wrote a simpel double buffering mechanism myself, which also did not solve the problem. My program works as follows:
In the constructor, a Graphics object is created using CreateGraphics(). Then, as soon as a Timer fires the Tick event, sprite positions are updated, and the Draw() method is called of the sprite, passing in the Graphics object created in the constructor. I did not override OnPaint.
Any idea's on how to fix this?
Thanks!
|
|
|
|
|
Hi,
what is the timer's interval?
if anything less than 15, you'd better read my timers article first.
Normally painting occurs in a paint handler, that's either the OnPaint method or some
delegate you add to the Paint event. If you want a timer to cause a repaint, have it
invoke the Invalidate() method of the Control/Form.
If you have many Controls of a Form, double buffering will improve but not solve things.
For gaming (and many other apps) I prefer to have the activitly going on in a Panel,
make that one double buffered, and not have any controls associated with that Panel.
The timer then only has to invalidate that Panel, so no time gets wasted in repainting
the other Controls.
FYI: you can invalidate part of a Control by using some of its overloads.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
when i built a juggling simulator I ran into similar problems. In the end i decided that rather than having separate images for each object I would create a bitmap image in my application and stick that on screen. Given that most of my image was a black background this seemed the most efficient method for me.
YMMV
Russ
|
|
|
|