Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: Analogclock and timer Pin
Aljaz11112-May-09 12:44
Aljaz11112-May-09 12:44 
QuestionImages in Gridview Pin
stewy0912-May-09 6:11
stewy0912-May-09 6:11 
AnswerRe: Images in Gridview Pin
Henry Minute12-May-09 7:18
Henry Minute12-May-09 7:18 
Questionrunning out of memory, issues with GC Pin
Jon Hulatt12-May-09 5:46
Jon Hulatt12-May-09 5:46 
AnswerRe: running out of memory, issues with GC Pin
Luc Pattyn12-May-09 6:51
sitebuilderLuc Pattyn12-May-09 6:51 
GeneralRe: running out of memory, issues with GC Pin
Jon Hulatt12-May-09 8:06
Jon Hulatt12-May-09 8:06 
GeneralRe: running out of memory, issues with GC Pin
Luc Pattyn12-May-09 9:19
sitebuilderLuc Pattyn12-May-09 9:19 
QuestionWorking with multiple forms Pin
bwood202012-May-09 5:34
bwood202012-May-09 5:34 
Hello,

I have two forms; one is the main form and the other the Delimiter form. The first form gets the file extension and location from the user. The second form is used when the user selects .txt files. The second form captures the delimiter of the .txt file then is closed when the "OK" button is clicked. Here is where I am having the problem. I need the delimiter info the user inputs, which is a text box on the second form, to be called in the connection string. I have tried a couple of things but the only delimiter I can get to work is when I hard code this into the connection. Can someone please help me? Here is what I have:

First form:

String comString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Path.GetDirectoryName(FilePath) + @";Extended Properties=""text;HDR=YES;FMT=Delimited(TAB)""";

Second form:

string GD;
GD = textBox1.Text;

What I would like to do is something like:
String comString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Path.GetDirectoryName(FilePath) + @";Extended Properties=""text;HDR=YES;FMT=Delimited["+ GD +")"; --This doesn't work

Thank you!
AnswerRe: Working with multiple forms Pin
OriginalGriff12-May-09 5:37
mveOriginalGriff12-May-09 5:37 
GeneralRe: Working with multiple forms Pin
bwood202012-May-09 5:56
bwood202012-May-09 5:56 
AnswerRe: Working with multiple forms Pin
DaveyM6912-May-09 5:49
professionalDaveyM6912-May-09 5:49 
GeneralRe: Working with multiple forms Pin
bwood202012-May-09 6:03
bwood202012-May-09 6:03 
GeneralRe: Working with multiple forms Pin
DaveyM6912-May-09 6:20
professionalDaveyM6912-May-09 6:20 
GeneralRe: Working with multiple forms Pin
bwood202012-May-09 7:17
bwood202012-May-09 7:17 
GeneralRe: Working with multiple forms Pin
Henry Minute12-May-09 7:28
Henry Minute12-May-09 7:28 
GeneralRe: Working with multiple forms Pin
bwood202012-May-09 9:13
bwood202012-May-09 9:13 
GeneralRe: Working with multiple forms Pin
Henry Minute12-May-09 9:22
Henry Minute12-May-09 9:22 
GeneralRe: Working with multiple forms Pin
bwood202012-May-09 9:48
bwood202012-May-09 9:48 
GeneralRe: Working with multiple forms Pin
Henry Minute12-May-09 10:00
Henry Minute12-May-09 10:00 
GeneralRe: Working with multiple forms Pin
bwood202012-May-09 11:10
bwood202012-May-09 11:10 
GeneralRe: Working with multiple forms Pin
Henry Minute12-May-09 11:54
Henry Minute12-May-09 11:54 
GeneralRe: Working with multiple forms Pin
bwood202013-May-09 4:02
bwood202013-May-09 4:02 
GeneralRe: Working with multiple forms Pin
bwood202013-May-09 6:20
bwood202013-May-09 6:20 
GeneralRe: Working with multiple forms Pin
Henry Minute13-May-09 6:38
Henry Minute13-May-09 6:38 
GeneralRe: Working with multiple forms Pin
bwood202014-May-09 9:49
bwood202014-May-09 9:49 

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.