Post: C# database tables and columns (URGENT)
12-28-2014, 10:47 AM #1
Jelly
Maggbot timeout!
(adsbygoogle = window.adsbygoogle || []).push({}); delete was a noob then
(adsbygoogle = window.adsbygoogle || []).push({});
12-31-2014, 11:04 AM #11
Jelly
Maggbot timeout!
Originally posted by Astek View Post
yes, i was just wondering where you were getting the text from but from the collum right?
using a save file dialog would be the easiest way, this saves the textboxs text to your selected location, im guessing your trying to do something like this?
    
using System.IO;

string data = Database.Colomun;
if(data == textbox.text)
{
SaveText(); // calls method
}

public void SaveText() // method
{
DialogResult DR = saveFileDialog1.ShowDialog();
// shows dialog
if(DR = DialogResult.OK) // if result equals yes
{
string FileName = saveFileDialog1.FileName;
//stores file name into a variable
File.WriteAllText(FileName, textBox1.Text);
//writes text from your textbox to your file
}
}


Thanks for the help I'll try it when I get home
12-31-2014, 12:58 PM #12
Jelly
Maggbot timeout!
edit211
12-31-2014, 12:59 PM #13
Jelly
Maggbot timeout!
Originally posted by Astek View Post
yes, i was just wondering where you were getting the text from but from the collum right?
using a save file dialog would be the easiest way, this saves the textboxs text to your selected location, im guessing your trying to do something like this?
    
using System.IO;

string data = Database.Colomun;
if(data == textbox.text)
{
SaveText(); // calls method
}

public void SaveText() // method
{
DialogResult DR = saveFileDialog1.ShowDialog();
// shows dialog
if(DR = DialogResult.OK) // if result equals yes
{
string FileName = saveFileDialog1.FileName;
//stores file name into a variable
File.WriteAllText(FileName, textBox1.Text);
//writes text from your textbox to your file
}
}


the .column part gives me an error "does not contain definition for column" i have even tried putting the column name there also how do you read from the file and set the certain text for a certain text box
12-31-2014, 01:16 PM #14
One
At least I can fight
Originally posted by kingqasimno1 View Post
the .column part gives me an error "does not contain definition for column" i have even tried putting the column name there also how do you read from the file and set the certain text for a certain text box

it was an example, set it to whatever text your trying to put in the textbox

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo