Click here to Skip to main content
15,798,825 members
Home / Discussions / C#
   

C#

 
QuestionIf existing String Form name, get that by database then open Pin
Jayantha Bandara15-Mar-13 1:37
Jayantha Bandara15-Mar-13 1:37 
AnswerRe: If existing String Form name, get that by database then open Pin
Richard MacCutchan15-Mar-13 2:02
mveRichard MacCutchan15-Mar-13 2:02 
AnswerRe: If existing String Form name, get that by database then open Pin
Pete O'Hanlon15-Mar-13 2:12
subeditorPete O'Hanlon15-Mar-13 2:12 
GeneralRe: If existing String Form name, get that by database then open Pin
V.15-Mar-13 4:44
professionalV.15-Mar-13 4:44 
GeneralRe: If existing String Form name, get that by database then open Pin
Mycroft Holmes15-Mar-13 14:39
professionalMycroft Holmes15-Mar-13 14:39 
QuestionResolving dependent projects Pin
Bernhard Hiller15-Mar-13 1:15
Bernhard Hiller15-Mar-13 1:15 
AnswerRe: Resolving dependent projects Pin
Pete O'Hanlon15-Mar-13 2:38
subeditorPete O'Hanlon15-Mar-13 2:38 
Questionsubstring from form1 to form2.... Pin
Goaty6510914-Mar-13 18:15
Goaty6510914-Mar-13 18:15 
Hey CP,

Getting text from one form to another is no problem. But I am having issues showing data from a ComboBox from form1 to display as text in form 2. Alright let's jump right into my example.

C#
string instText = comboInst.GetItemText(comboInst.SelectedItem);
string folder = instText.Substring(0, 4);


comboInst is a combo box that has a list of items that is pulled from a directory. All items have a leading 4 digits that I use a lot in form1. But I can't get those 4 values for the life of me to show even in a messagebox on form 2. It just shows blank when using methods that pull information from a textBox.Text.

I need to be able to use both instText and folder strings in other forms.

Anyone got any ideas? The example I used is located on stackOverflow:
[^]

Thanks!
AnswerRe: substring from form1 to form2.... Pin
Jibesh14-Mar-13 18:35
professionalJibesh14-Mar-13 18:35 
GeneralRe: substring from form1 to form2.... Pin
Goaty6510914-Mar-13 19:57
Goaty6510914-Mar-13 19:57 
QuestionBlueTooth Bytes Disappearing Pin
C-P-User-314-Mar-13 14:03
C-P-User-314-Mar-13 14:03 
QuestionView in Nhibernate Pin
hadi_ganji14-Mar-13 7:06
hadi_ganji14-Mar-13 7:06 
AnswerRe: View in Nhibernate - Repost Pin
Richard MacCutchan14-Mar-13 7:24
mveRichard MacCutchan14-Mar-13 7:24 
QuestionUnable to set registry value Pin
sjs4u13-Mar-13 22:27
sjs4u13-Mar-13 22:27 
AnswerRe: Unable to set registry value Pin
dusty_dex14-Mar-13 6:07
dusty_dex14-Mar-13 6:07 
QuestionHow to use CreateTextServices in C# Pin
cpw999cn13-Mar-13 21:32
cpw999cn13-Mar-13 21:32 
AnswerRe: How to use CreateTextServices in C# Pin
Bernhard Hiller13-Mar-13 23:01
Bernhard Hiller13-Mar-13 23:01 
GeneralRe: How to use CreateTextServices in C# Pin
cpw999cn13-Mar-13 23:40
cpw999cn13-Mar-13 23:40 
QuestionC# Receive from TCP send to COM2 Pin
dockwomblejr13-Mar-13 12:55
dockwomblejr13-Mar-13 12:55 
AnswerRe: C# Receive from TCP send to COM2 Pin
jschell14-Mar-13 8:57
jschell14-Mar-13 8:57 
GeneralRe: C# Receive from TCP send to COM2 Pin
dockwomblejr14-Mar-13 14:05
dockwomblejr14-Mar-13 14:05 
GeneralRe: C# Receive from TCP send to COM2 Pin
micke.andersson15-Mar-13 7:03
micke.andersson15-Mar-13 7:03 
Questionhow can i index files in c# Pin
Member 888804413-Mar-13 11:26
Member 888804413-Mar-13 11:26 
AnswerRe: how can i index files in c# Pin
R. Giskard Reventlov13-Mar-13 11:40
R. Giskard Reventlov13-Mar-13 11:40 
QuestionSplit with Regex Pin
Revolty13-Mar-13 9:21
Revolty13-Mar-13 9:21 

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.