Click here to Skip to main content
15,888,162 members
Home / Discussions / C#
   

C#

 
GeneralMessage Removed Pin
23-Feb-15 3:55
professionalN_tro_P23-Feb-15 3:55 
GeneralRe: Serializable objects into Entity Framework Pin
Gerry Schmitz23-Feb-15 5:31
mveGerry Schmitz23-Feb-15 5:31 
QuestionHow to run a javascript function from a website on C# Program Pin
jairomarcel19-Feb-15 0:47
jairomarcel19-Feb-15 0:47 
Questionmanage network printers Pin
Blue_Boy18-Feb-15 23:19
Blue_Boy18-Feb-15 23:19 
AnswerRe: manage network printers Pin
Mycroft Holmes19-Feb-15 0:33
professionalMycroft Holmes19-Feb-15 0:33 
AnswerRe: manage network printers Pin
Gerry Schmitz20-Feb-15 13:05
mveGerry Schmitz20-Feb-15 13:05 
AnswerRe: manage network printers Pin
Mohammad Reza Valadkhani21-Feb-15 1:53
professionalMohammad Reza Valadkhani21-Feb-15 1:53 
Questiontextbox63 stays empty Pin
masterofc18-Feb-15 23:08
masterofc18-Feb-15 23:08 
hii i was wundering. why my textbox keeps staying empty? i hope someone could tel me how ti fix it, my code stays below:

C#
private void Form1_Load(object sender, EventArgs e)
{
    // TODO: This line of code loads data into the 'klantenbestandDataSet4.Logo' table. You can move, or remove it, as needed.
    this.logoTableAdapter.Fill(this.klantenbestandDataSet4.Logo);
    // TODO: This line of code loads data into the 'klantenbestandDataSet3.Producten' table. You can move, or remove it, as needed.
    this.productenTableAdapter.Fill(this.klantenbestandDataSet3.Producten);
    // TODO: This line of code loads data into the 'klantenbestandDataSet1.OrderWerkzaamheden' table. You can move, or remove it, as needed.
    //this.orderWerkzaamhedenTableAdapter.Fill(this.klantenbestandDataSet1.OrderWerkzaamheden);
    // TODO: This line of code loads data into the 'klantenbestandDataSet2.Werkzaamheden' table. You can move, or remove it, as needed.
    this.werkzaamhedenTableAdapter1.Fill(this.klantenbestandDataSet2.Werkzaamheden);
    // TODO: This line of code loads data into the 'klantenbestandDataSet1.Werkzaamheden' table. You can move, or remove it, as needed.
    //this.werkzaamhedenTableAdapter.Fill(this.klantenbestandDataSet1.Werkzaamheden);
    // TODO: This line of code loads data into the 'klantenbestandDataSet1.Klanten' table. You can move, or remove it, as needed.
    this.klantenTableAdapter.Fill(this.klantenbestandDataSet1.Klanten);
    //cn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\klantenbestand.mdb"; //goed
    cn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Master of Disaster\Documents\klantenbestand.mdb"; //goed
    cmd.Connection = cn;

    // hier worden de methodes aangeroepen  de gegevens laden onder instellingen.
    werkzaamhedenwijzigenonderinstellingen();
    productenwijzigenonderinstellingen();

    //hier worden de methode aangeroepen voor het laden van het pad van het gebruikte logo
    PlaatsenLogo();

    //Hier zet hij het plaatje neer als logo
    //textBox63.Text=@"C:\Users\Master of Disaster\Pictures\wendy\beeldschoon.png";
    pictureBox1.ImageLocation = textBox63.Text;
    //pictureBox1.ImageLocation = @"C:\Users\Master of Disaster\Pictures\wendy\beeldschoon.png"; //---> werkt

    // Hide the tab page
    tabControl1.TabPages.Remove(tabPage6);
}


C#
private void PlaatsenLogo()
{
    // Hier wordt de connectie gemaakt.
    try
    {
        string q = "SELECT LogoPad from Logo WHERE PadId=1";
        //string q = "SELECT Kolomnaam " + Environment.NewLine + "INTO [ExcelTabbladNaam] IN '' [Excel 8.0;Database=" + Environment.CurrentDirectory  + "\\\\Klanten.xls]" + Environment.NewLine + "FROM Klanten"; //goed
        //string q = "SELECT Kolomnaam " + "\n" + "INTO [ExcelTabbladNaam] IN '' [Excel 8.0;Database="C:\Klanten.xls]"" + ""\n"" + "FROM BronTabelnaam";
        cmd.CommandText = q;
        cn.Open();
        dr = cmd.ExecuteReader();
        if (dr.HasRows)
        {
            DataTable dt = new DataTable();
            dt.Load(dr);
            dataGridView18.DataSource = dt;

        }
    }
    catch (Exception e)
    {
        cn.Close();
        MessageBox.Show(e.Message.ToString());
    }
    cn.Close();
}


C#
private void dataGridView18_SelectionChanged(object sender, EventArgs e)
{
    if (dataGridView18.SelectedRows.Count > 0)
    {
        DataGridViewRow dr = dataGridView18.SelectedRows[0];
        textBox63.Text = dr.Cells[0].Value.ToString(); // pad

    }
}


HOWEVER pictureBox1.Location=textbox63.text gives an empty result because textbox63.Text is emply but when i run my application textbox63.text isn't empy so why is this not working ???
AnswerRe: textbox63 stays empty Pin
OriginalGriff18-Feb-15 23:16
mveOriginalGriff18-Feb-15 23:16 
AnswerRe: textbox63 stays empty Pin
masterofc18-Feb-15 23:28
masterofc18-Feb-15 23:28 
GeneralRe: textbox63 stays empty Pin
OriginalGriff18-Feb-15 23:30
mveOriginalGriff18-Feb-15 23:30 
GeneralRe: textbox63 stays empty Pin
masterofc19-Feb-15 0:28
masterofc19-Feb-15 0:28 
QuestionHep me to create signup windows app Pin
Member 1141361218-Feb-15 22:49
Member 1141361218-Feb-15 22:49 
AnswerRe: Hep me to create signup windows app Pin
OriginalGriff18-Feb-15 23:09
mveOriginalGriff18-Feb-15 23:09 
AnswerRe: Hep me to create signup windows app Pin
Pete O'Hanlon18-Feb-15 23:27
mvePete O'Hanlon18-Feb-15 23:27 
Questionabout dynamic form and controls, database fields created by user throw c sharp .net windows application Pin
Muthuraj.M18-Feb-15 18:35
Muthuraj.M18-Feb-15 18:35 
AnswerRe: about dynamic form and controls, database fields created by user throw c sharp .net windows application Pin
OriginalGriff18-Feb-15 21:44
mveOriginalGriff18-Feb-15 21:44 
AnswerRe: about dynamic form and controls, database fields created by user throw c sharp .net windows application Pin
Richard MacCutchan18-Feb-15 22:04
mveRichard MacCutchan18-Feb-15 22:04 
QuestionWcf Service connection to SQL Database Pin
happyghoos18-Feb-15 12:21
happyghoos18-Feb-15 12:21 
Question[Solved] MySQL dataGridView search function problem Pin
Linus Agren18-Feb-15 9:47
Linus Agren18-Feb-15 9:47 
AnswerRe: MySQL dataGridView search function problem Pin
Ron Nicholson18-Feb-15 10:00
professionalRon Nicholson18-Feb-15 10:00 
GeneralRe: MySQL dataGridView search function problem Pin
Linus Agren19-Feb-15 4:56
Linus Agren19-Feb-15 4:56 
QuestionDataGridView et oracle Pin
youssefcss18-Feb-15 5:32
youssefcss18-Feb-15 5:32 
SuggestionRe: DataGridView et oracle Pin
Richard MacCutchan18-Feb-15 5:41
mveRichard MacCutchan18-Feb-15 5:41 
QuestionFast Image Stitching Pin
JBHowl18-Feb-15 5:03
JBHowl18-Feb-15 5:03 

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.