|
Thanks for that.
It's nice to get some confirmation.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I have VS2005 Standard, what is the best way to deploy a simple Winforms app?
Thanks.
Elaine
The student version won't produce the .config file so you can only execute the app within the IDE.
modified on Saturday, May 2, 2009 7:10 PM
|
|
|
|
|
XCopy.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
OK OK, I have a virtual XP machine and if I copy the executable file to this and try to run it I get the following error message:
"This application has failed to start because the application configuration is incorrect.".
I have installed the .NET 2.0 redistributable.
|
|
|
|
|
Make sure you copy the app config file over
So if your program is named:
NextBigApp.exe
make sure you also copy the
NextBigApp.exe.config
|
|
|
|
|
Ah, this explains it.
At work I have a full version but at home a student version. Ah well, I was too rich anyway
|
|
|
|
|
Trollslayer wrote: but at home a student version.
Doesn't let you deploy an exe outside the IDE uh? I purchased the Student version of C++, WAY back in "the day", and it had that limitation.
Ya know, you can get the .NET SDK and #Develop IDE[^] can build .NET applications that are deployable ...
Just a thought.
|
|
|
|
|
Trollslayer wrote: Ah well, I was too rich anyway
You should investigate the conditions for the Academic Editions (I believe they are == Professional Edition) cost circa £95 for VS2008.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
It will be deployed at work, I was wanting to check this out at home before the next phase.
Thanks.
|
|
|
|
|
Elaine,
As mentioned above, "xcopy" deployment for small WinForm applications works just fine, but here's a list-o-deployment methods I've used for WinForm stuffs:
- ZIP file
- Wise 9 installer
- Visual Studio Setup project
Just make sure you get all your dependencies, config files, etc...
|
|
|
|
|
I've mapped the debug directory to the target machine so everything in the debug directory is there, message is as in the reply above.
|
|
|
|
|
When you say you've "Mapped the debug directory to the target machine", are you trying to run the program (exe) from your VM, hoping it will pick what it needs out of the debug folder, or are you trying to run the application directly out of the mapped debug folder?
|
|
|
|
|
Shouldn't you be deploying the contents of your Release folder?
|
|
|
|
|
As others have already stated XCopy is the quickest and simplest for an experienced dev like yourself. However, if you haven't already done so, you might want to read up on click-once deployment[^]. There's a lot of it, but is fairly easy to understand.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I use a VS setup project to create an *.msi file to install. I'm using VS2008 now, but it worked OK with VS2005.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
I'll second the VS Setup Project. I've used it for several apps at work, and i can also package a setup.exe with any prerequisite packages (.NET Framework, DirectX version, MySQL, whatever you want). You can have it download these separate installers from the web, or include them with your installer. While the setup project doesn't lend itself to much customization, it's sufficient for basic deployment.
Dybs
|
|
|
|
|
Hello,
Iam a novice in Windows programming. I have a Windows.Form.Treeview that populates from the database. I also have a reject changes button in the form which basically executes this code
row = (DataRow)tvAccountHierarchy.Nodes[0].Tag;
row.Table.DataSet.RejectChanges();
LoadTree(tvAccountHierarchy, row.Table.DataSet);
I have noticed that when I click on the reject changes button the tree view basically repopulates from the already created Dataset (after rejecting the changes) , but it dosent seem to be re-populating it properly.
The parent - child relationships which show up when loaded the first time , dosent maintain after i hit the reject changes button.
The code has been moslty borrowed from this link
http://www.eggheadcafe.com/articles/treeview_databinding.asp
I am desperately hoping for some help.
Thanks,
Ashwin
P.S: I even tried re-loading the data from the database when i hit the reject button. But still the parent -child relationship seems to get screwed up.
|
|
|
|
|
There is an article about this Data Binding TreeView in C#[^], here on CP.
Try adapting that model to your situation. Doing that, might allow you to understand the process a little better, and resolve your issues.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
what is the easiest way to transfer values from child form to parent form?
modified on Thursday, April 30, 2009 7:10 AM
|
|
|
|
|
rajulama wrote: form2.datagridview.datasource=.......
Could you maybe elaborate on the code hidden behind those 7 dots.
Alan.
|
|
|
|
|
rajulama wrote: what is the easiest way to transfer values from child form to parent form?
Forms are classes yes? These means at runtime they are objects yes? Therefore we can rewrite your question thus:
what is the easiest way to transfer values from child class to parent class.
what is the easiest way to transfer values from child object to parent object.
That said, if you do not know the answer to this then you need to obtain and study some beginner programming materials.
|
|
|
|
|
Well I can say if you make a class which is global then can tranfer parent form to child form . The easiest way is
example if your form1 have
textbox1.text = "....."
and if you want to show that string in another form name form2
it would be
label1.text=form1.textbox1.text
then it would show the string have in your textbox1.text
Hope it will help you
|
|
|
|
|
I have created image file of windows CE OS using visual studio 2005.
when I boot the Windows CE, PC gets hanged. Any body knows what would be the reason.
thanks
|
|
|
|
|
How to generate SOAP request from WSDL / Is there any way we can generate SOAP request at client end using .Net code (not by any tool).
I would like to invoke a web method by passing the soap request. We are trying to create soap request for any web method dynamically.
Ved
|
|
|
|
|
I have gone thru one of the articles in this forum,that does this job,but i want to little bit different.
The code that is given here,saves the desktop screen as a image file n sends it to email address provided depending upon the time interval given in the program.
I want that the program shud send the screen shot taken only when it gets some kind of notification that the user has signed in,into the mail address n now the screen shot shud be send.
how to do it?
pls help..thanks in advance..
for reference i m giving below the subject of posted message that i have gone thru..
"Desktop spy utility that emails subject's screenshots to you"
|
|
|
|