|
hello all,
i have created an application using visual C#.
can any1 tell me as to how i can convert this application into a *.exe format so that it can be used by any1 who doesnt hac C# installed on his system.
thanks in advance.
|
|
|
|
|
Just press F6, and if you dont have any compilation errors, you should find it in your solution's debug/bin folder.
unfortunatly, for people to run your app, the need to have the .Net redistributable run-time environment
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
thanks for the suggestion...
so how do i give my program to some1 who dose not have C# installed in his system??is .net redistributable run-time environment the only option??if yes, then can u plz tell me how it works??
|
|
|
|
|
I'm not sure about Vista although I would think they already have at least the .Net Framework ver 2.0 already packed. For XP. SP2 is usually equipped with .Net Framework 1.1, but to run later versions of .Net apps, you need to have the equivalant run-time environment.
I usually ask my clients to download this, and I suppose you do the same. It should run fine then.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
well, one of the first things you learn about programing is that you COMPILE things.. things like code.. or resources.. yes.. you COMPILE them..
so tell me.. how did you learn c# without COMPILING any code?!..
life is study!!!
|
|
|
|
|
|
You should go out and buy a book on C#. This is the first of many basic things you'll find yourself getting lost on if you try to rely solely on online forums to learn a language.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi
enter to the project properties by clicking right click on the project at the "Solution Explorer" in visual studio 2005 and then enter to publish and click the "Publish Now" or "Publish Wizard..." command!
|
|
|
|
|
Hi guys
actualyy i am very much new to dot net
i am using fram work 1.1 . i want to read from web.config gile in my application
but i am not getting that can any body tell me the exzact syntax,,
my web.config is as follows
<configuration>
<appsettings>my text here<\appsettings>
<connectionstring> my connection string here<\connectionstring>
thanks in advance
hello Hi g
|
|
|
|
|
In web. config:
<connectionStrings><br />
<add name="ConnectionName" connectionString="blah blah blah"/><br />
</connectionStrings>
In the app:
<br />
ConfigurationManager.ConnectionStrings["ConnectionName"].ConnectionString;<br />
I'm using MySQL for adb at the moment so i removed the connection string stuff
HTH
Russ
|
|
|
|
|
ConfigurationManager.ConnectionStrings will only help in reading the text in ConnectionStrings section.
To read in appsettings use ConfigurationSettings.AppSettings.Get("Name")
Hope this helps
|
|
|
|
|
Wouldn't this work for you?
string cs = Form1.Properties.Settings.Default["connectionstring"];
Where you replace Form1 with the namespace of your application.
|
|
|
|
|
I am doing a windows application.. I was working well with it and suddenly a form shows error...
i am using stored procedures to insert and retrieve data ...and it seems that the stored procedure is correct..
in C#.net code
command.ExecuteNonQuery();
the error handler points to this and puts error
"Failed to convert parameter value from a String to a Int32."
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
sajan ss wrote: "Failed to convert parameter value from a String to a Int32."
sajan ss, This error says that you mistakenly provide String instead of int to stored procedure.
Could you give us more code for analyze.
I want to get the listing where you are filling the stored procedure parameters and signature of calling stored procedure.
|
|
|
|
|
There's not much you're showing from your code, but if you're sure the error is fired exactly from that line, then double check your stored procedure parameter values and make sure the types are matching.
Cheers,
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
thanks for that information....
type mismatched ...
i made it correct.....
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
Hello Friends,
I hope your are help to me
I have using VS2005 and XP prof
I developing Ticker module
When i open the Ticker it's display top of the screen
Now I open any window(mycomputer,any folder like that)opened but that window close button inside the Ticker,So I couldn't close that window.
I want when i open Ticker at the time, if any window open all are open bellow the Ticker
What i do and how to solve this problem?
plz help to me
parthasarathy
|
|
|
|
|
if u r thinking of something like a splash screen which shuld be available always on top of all the application, set the splashscreen form property- TopMost to true
|
|
|
|
|
Hello
I want to make an Uninstaller in Visual Studio. I have already made the Installer in Visual Studio.
Reply me asap.
Thanks
Devesh Mishra
|
|
|
|
|
The installer IS the uninstaller. Your program will get added to the add/remove programs list when you install it
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks for ur reply..
Yah i know that my program will get added to the add/remove programs list when i install it. But i dont want to uninstall it from control panel. I want to uninstall it from start menu.
Thanks
Devesh Mishra
|
|
|
|
|
Just add a shortcut of the uninstaller to the right folder
Drive:\Documents and Settings\YourUser\Start Menu\Programs\YourAppFolder\Uninstall.exe //for a specific user "usually current by matching the current user System.Environment.UserName with the special folder"
or:
Drive:\Documents and Settings\All Users\Start Menu\Programs\YourAppFolder\Uninstall.exe //for all users
ps. Of course you'll have to check your folders locations using System.Environment.SpecialFolder.ProgramFiles
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
I think u r not getting me what i need...
I want to make Uninstall.exe using Visual studio.You are saying to add me the shortcut of Uninstaller. But i dont have Uninstaller.exe. Got it ???
Reply me asap.
Thanks
Devesh Mishra
|
|
|
|
|
All you have to do is add ashortcut with the command line to invoke msiexec</code. with the <code>/x option and the correct .MSI file name OR Product Code.
msiexec /x filename.msi
or
msiexec /x productcode
|
|
|
|
|
Thanks for ur reply...
I am doing the same whatever you are saying to do...But its not happening....
I got a message box and it shows "This installation package could not be opened"
Now what should i do...
Thanks
Devesh Mishra
|
|
|
|