Click here to Skip to main content
15,896,285 members
Home / Discussions / C#
   

C#

 
GeneralRe: WAN IP address Pin
martiwy6-Nov-03 7:05
martiwy6-Nov-03 7:05 
GeneralRe: WAN IP address Pin
marnicola9-Nov-03 16:47
marnicola9-Nov-03 16:47 
Generalproblem Pin
bora3ee3-Nov-03 12:54
bora3ee3-Nov-03 12:54 
GeneralRe: problem Pin
Divyesh Virani3-Nov-03 19:39
Divyesh Virani3-Nov-03 19:39 
GeneralZ Buffer question in D3d 9 Pin
Arturo Mayorga3-Nov-03 12:09
Arturo Mayorga3-Nov-03 12:09 
GeneralRe: Z Buffer question in D3d 9 Pin
Kentamanos3-Nov-03 12:25
Kentamanos3-Nov-03 12:25 
GeneralRe: Z Buffer question in D3d 9 Pin
Heath Stewart4-Nov-03 3:09
protectorHeath Stewart4-Nov-03 3:09 
Generalusing variable declared in another class [NEWBIE] Pin
Paolo Ponzano3-Nov-03 8:57
Paolo Ponzano3-Nov-03 8:57 
hi,
I'm trying to use a string declared in a file called Settings.cs

public class Settings : System.Windows.Forms.Form<br />
	{<br />
		public string folderName//Used to choose save path<br />
		<br />
		protected int iTCPPort;<br />


in another file called registry.cs

<br />
private void MainRegSetKey()<br />
		{<br />
			RegistryKey hRegistryKey = Registry.CurrentUser.CreateSubKey("Vortex");<br />
<br />
			hRegistryKey.SetValue("Download_Destination",Settings.foldername);<br />
<br />
			return true;<br />


In the SetValue function I can't assign foldername, have I to declare a new istance of Settings doing Settings s = new Settings(); ?

thanks in advance

Paolo Ponzano
GeneralRe: using variable declared in another class [NEWBIE] Pin
Alvaro Mendez3-Nov-03 9:04
Alvaro Mendez3-Nov-03 9:04 
GeneralConfused about Resources Pin
Alvaro Mendez3-Nov-03 8:28
Alvaro Mendez3-Nov-03 8:28 
GeneralRe: Confused about Resources Pin
scott373-Nov-03 12:44
scott373-Nov-03 12:44 
GeneralRe: Confused about Resources Pin
Alvaro Mendez3-Nov-03 17:03
Alvaro Mendez3-Nov-03 17:03 
GeneralEmbedding window in window Pin
CBoland3-Nov-03 8:21
CBoland3-Nov-03 8:21 
GeneralRe: Embedding window in window Pin
Douglas Troy4-Nov-03 6:37
Douglas Troy4-Nov-03 6:37 
GeneralObject Array in CompactFramework Pin
marcoscres3-Nov-03 6:40
marcoscres3-Nov-03 6:40 
GeneralHashtable as datasource Pin
Rob STS3-Nov-03 5:38
Rob STS3-Nov-03 5:38 
Generalcustomizing file open dialog... Pin
waleed riaz3-Nov-03 4:48
waleed riaz3-Nov-03 4:48 
GeneralRe: customizing file open dialog... Pin
Judah Gabriel Himango3-Nov-03 8:09
sponsorJudah Gabriel Himango3-Nov-03 8:09 
GeneralRe: customizing file open dialog... Pin
Alvaro Mendez3-Nov-03 9:07
Alvaro Mendez3-Nov-03 9:07 
GeneralRe: customizing file open dialog... Pin
waleed riaz3-Nov-03 18:15
waleed riaz3-Nov-03 18:15 
GeneralRe: customizing file open dialog... Pin
J. Dunlap3-Nov-03 18:50
J. Dunlap3-Nov-03 18:50 
GeneralRe: customizing file open dialog... Pin
waleed riaz3-Nov-03 19:03
waleed riaz3-Nov-03 19:03 
GeneralRe: customizing file open dialog... Pin
J. Dunlap3-Nov-03 19:44
J. Dunlap3-Nov-03 19:44 
GeneralCleaning up Arrays in C# Pin
Paul Evans3-Nov-03 3:29
Paul Evans3-Nov-03 3:29 
GeneralRe: Cleaning up Arrays in C# Pin
Nick Parker3-Nov-03 3:47
protectorNick Parker3-Nov-03 3:47 

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.