User Profile

Collapse

Profile Sidebar

Collapse
csharp learner
csharp learner
Last Activity: Feb 19 '09, 02:42 AM
Joined: Feb 12 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • This is where my form loads.
    Code:
    public void displayexcel_Load(object sender, EventArgs e)
            {
                try
                {
                    string connString = "provider=Microsoft.Jet.OLEDB.4.0;data source=" + gotdirectory + @";Extended Properties=""Excel 8.0;HDR=YES;""";
                    OleDbConnection oledbConn = new OleDbConnection(connString);
    ...
    See more | Go to post

    Leave a comment:


  • Exception error when importing datagridview to Oracle

    Hi, I'm trying to update a datagrid view table to the Oracle DB.
    This is my code so far....


    Code:
    // Connection to Oracle DB   
     int connectionCounter = 0;   
                    bool boolUpdateData = true;   
                    while (boolUpdateData && connectionCounter < 3)   
                    {   
                        try   
                        {
    ...
    See more | Go to post

  • csharp learner
    started a topic Update DB from datagridview

    Update DB from datagridview

    I've populated the datagridview with an excel sheet and now i want to update the datagridview to a similiar table at Oracle DB.

    Code:
            private void updateOracleBtn_Click(object sender, EventArgs e)
            {
                    int connectionCounter = 0;
                    bool boolUpdateData = true;
                    while (boolUpdateData && connectionCounter < 3)
                    {
    ...
    See more | Go to post

  • I've accomplish my goal in this code but I'm sure there is a shorter and easier way to the solution.

    Code:
            public Boolean validatetext;
            public Boolean validacombobox;
    
    
    private void locacodeBox_TextChanged(object sender, EventArgs e) 
    {
        if (textBox1.Text.Length == 0)
            validatetext = false;
        else
            validatetext = true;
        ValidateButton();
    ...
    See more | Go to post

    Leave a comment:


  • Thanks IanWright for your suggestions.

    But currently the button enable is still not based on when the comboBox and twxtBox is not empty.
    See more | Go to post

    Leave a comment:


  • csharp learner
    started a topic Enable/Diasble button w/ 2 conditions.

    Enable/Diasble button w/ 2 conditions.

    Hi currently with 1 combobox,textbo x and a OK button which the button will enabled once my textbox is not empty.
    Code:
    private void locacodeBox_TextChanged(object sender, EventArgs e)
            {
                TextBox textBox = sender as TextBox;
                if (locacodeBox.Text.Length == 0)
                    locacodeBox.Tag = false;
                else
                    locacodeBox.Tag = true;
    ...
    See more | Go to post

  • Turely sorry the code is correct, it's just I did'n code my Oracle connection initially...
    See more | Go to post

    Leave a comment:


  • csharp learner
    started a topic Displaying Tables of Oracle DB in comboBox

    Displaying Tables of Oracle DB in comboBox

    Hi, I'm currently trying to display All the Tables in the Oracle database.But this exception error keep blocking me...

    "System.Invalid OperationExcept ion: Operation is not valid due to the current state of the object."
    Code:
     try 
    { 
    localSQL = "SELECT table_name FROM user_tables"; 
    OracleCommand cmdOracle = new OracleCommand(localSQL, localConnection); 
    cmdOracle.CommandType = CommandType.Text;
    ...
    See more | Go to post
No activity results to display
Show More
Working...