Click here to Skip to main content
15,892,537 members
Home / Discussions / C#
   

C#

 
GeneralRe: Form closing or disposing Pin
EEmaan19-Apr-07 0:06
EEmaan19-Apr-07 0:06 
QuestionError in Webservice while using datatable Pin
sujithkumarsl18-Apr-07 18:56
sujithkumarsl18-Apr-07 18:56 
AnswerRe: Error in Webservice while using datatable Pin
Jaiprakash M Bankolli18-Apr-07 19:55
Jaiprakash M Bankolli18-Apr-07 19:55 
GeneralRe: Error in Webservice while using datatable Pin
sujithkumarsl18-Apr-07 20:47
sujithkumarsl18-Apr-07 20:47 
GeneralRe: Error in Webservice while using datatable Pin
Jaiprakash M Bankolli18-Apr-07 21:13
Jaiprakash M Bankolli18-Apr-07 21:13 
Question.Net Framework Installation Pin
aruna_koride18-Apr-07 17:48
aruna_koride18-Apr-07 17:48 
AnswerRe: .Net Framework Installation Pin
Christian Graus18-Apr-07 18:01
protectorChristian Graus18-Apr-07 18:01 
AnswerRe: .Net Framework Installation Pin
Patrick Etc.18-Apr-07 18:18
Patrick Etc.18-Apr-07 18:18 
In Visual Studio, right-click your solution and select Add New Project. For the project type, find the Setup Project (it should be under Other Project Types-> Setup and Deployment)

One of the things you can do in such a project is specify prerequisites. One such prerequisite will be the .NET framework. You can tell it to download the prerequisite from the vendor's website - in this case, it will automatically know where to download the .NET framework from.

If this isn't enough detail, there are several very good articles on this website describing how to do this in extreme detail.


*****
For the hosts file, you may want to consider not making that edit. While (on XP) nothing stops you from doing so, it is considered by some antivirus and anti-malware programs to be virus or malware-like behavior and it will be immediately stripped out.

Unless you can guarantee that the end user's system won't do that, you shouldn't rely on it.

Unless there's some convincing reason you actually MUST use a hostname, it might just work better for you to use the IP address.

But yes, this can be done programatically. The hosts file is just a file on the computer like any other and edits to it take effect immediately. It is located at %SYSTEM%\drivers\etc\hosts, and the best thing to do is probably just append a line at the end so as not to alter any existing custom hosts (for example, I put some in there sometimes when websites I'm working on haven't resolved through DNS yet).
GeneralRe: .Net Framework Installation Pin
aruna_koride19-Apr-07 0:03
aruna_koride19-Apr-07 0:03 
QuestionFree Office 2007 style controls Pin
WombatDelight18-Apr-07 16:47
WombatDelight18-Apr-07 16:47 
AnswerRe: Free Office 2007 style controls Pin
Christian Graus18-Apr-07 18:00
protectorChristian Graus18-Apr-07 18:00 
GeneralRe: Free Office 2007 style controls Pin
WombatDelight18-Apr-07 18:07
WombatDelight18-Apr-07 18:07 
GeneralRe: Free Office 2007 style controls Pin
Christian Graus19-Apr-07 0:37
protectorChristian Graus19-Apr-07 0:37 
QuestionC# Newbie Please Help! Pin
ashley4838518-Apr-07 14:30
ashley4838518-Apr-07 14:30 
AnswerRe: C# Newbie Please Help! Pin
pbraun18-Apr-07 14:44
pbraun18-Apr-07 14:44 
GeneralRe: C# Newbie Please Help! Pin
ashley4838518-Apr-07 14:51
ashley4838518-Apr-07 14:51 
GeneralRe: C# Newbie Please Help! Pin
pbraun18-Apr-07 15:02
pbraun18-Apr-07 15:02 
GeneralRe: C# Newbie Please Help! Pin
ashley4838518-Apr-07 15:09
ashley4838518-Apr-07 15:09 
GeneralRe: C# Newbie Please Help! Pin
pbraun18-Apr-07 15:24
pbraun18-Apr-07 15:24 
Questionpassing "this" by reference Pin
cbin18-Apr-07 14:25
cbin18-Apr-07 14:25 
AnswerRe: passing "this" by reference Pin
Luc Pattyn18-Apr-07 14:48
sitebuilderLuc Pattyn18-Apr-07 14:48 
AnswerRe: passing "this" by reference Pin
Tim Paaschen18-Apr-07 19:43
Tim Paaschen18-Apr-07 19:43 
QuestionReading data from one application to another Pin
yirmyah18-Apr-07 12:45
yirmyah18-Apr-07 12:45 
AnswerRe: Reading data from one application to another Pin
Christian Graus18-Apr-07 14:45
protectorChristian Graus18-Apr-07 14:45 
GeneralRe: Reading data from one application to another Pin
yirmyah18-Apr-07 15:19
yirmyah18-Apr-07 15:19 

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.