Click here to Skip to main content
15,921,959 members
Home / Discussions / C#
   

C#

 
AnswerRe: Get value from listbox items Pin
Ravi Bhavnani17-May-09 18:46
professionalRavi Bhavnani17-May-09 18:46 
AnswerRe: Get value from listbox items Pin
dug_r17-May-09 19:07
dug_r17-May-09 19:07 
AnswerRe: Get value from listbox items Pin
Jabbar_espania18-May-09 23:38
Jabbar_espania18-May-09 23:38 
QuestionAccess controls from different class Pin
soulidentities17-May-09 18:27
soulidentities17-May-09 18:27 
AnswerRe: Access controls from different class Pin
Ravi Bhavnani17-May-09 18:47
professionalRavi Bhavnani17-May-09 18:47 
GeneralRe: Access controls from different class Pin
soulidentities17-May-09 20:16
soulidentities17-May-09 20:16 
GeneralRe: Access controls from different class Pin
Ravi Bhavnani17-May-09 20:35
professionalRavi Bhavnani17-May-09 20:35 
GeneralRe: Access controls from different class Pin
soulidentities17-May-09 21:13
soulidentities17-May-09 21:13 
okay thanks. I will try read.
But I have tried to create instance to the class file. But it does not recognize the form object.
I dont know whether you can get me or not letme clear again.
//This is the Form1 Code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using ourLibrary;

namespace MonitoringCheckList2009
{
    public partial class BaseForm : Form
    {
    //Here I want to use the method written in class1.cs file

    }
}

// This is Diferent class file code.
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace ourLibrary
{
    public class LibraryClass
    {
        
        public void ShowLC(string dbTable, Control LstBox)
        {
         // Here I want to write a method and want to access the controls
          in form1.
        }
    }
}


If you dont understand pls let me know
Thanks
GeneralRe: Access controls from different class Pin
Ravi Bhavnani17-May-09 21:18
professionalRavi Bhavnani17-May-09 21:18 
GeneralRe: Access controls from different class Pin
soulidentities17-May-09 21:30
soulidentities17-May-09 21:30 
AnswerRe: Access controls from different class Pin
DaveyM6917-May-09 22:52
professionalDaveyM6917-May-09 22:52 
GeneralRe: Access controls from different class Pin
soulidentities18-May-09 0:01
soulidentities18-May-09 0:01 
GeneralRe: Access controls from different class Pin
DaveyM6918-May-09 1:19
professionalDaveyM6918-May-09 1:19 
GeneralRe: Access controls from different class Pin
soulidentities18-May-09 5:43
soulidentities18-May-09 5:43 
GeneralRe: Access controls from different class Pin
DaveyM6918-May-09 6:30
professionalDaveyM6918-May-09 6:30 
Question.NET Framework Version Pin
Blue36517-May-09 15:06
Blue36517-May-09 15:06 
AnswerRe: .NET Framework Version Pin
PIEBALDconsult17-May-09 16:14
mvePIEBALDconsult17-May-09 16:14 
GeneralRe: .NET Framework Version Pin
adatapost17-May-09 17:20
adatapost17-May-09 17:20 
GeneralRe: .NET Framework Version Pin
PIEBALDconsult17-May-09 18:00
mvePIEBALDconsult17-May-09 18:00 
AnswerRe: .NET Framework Version Pin
adatapost17-May-09 20:59
adatapost17-May-09 20:59 
AnswerRe: .NET Framework Version Pin
DaveyM6917-May-09 22:58
professionalDaveyM6917-May-09 22:58 
GeneralRe: .NET Framework Version Pin
Blue36517-May-09 23:25
Blue36517-May-09 23:25 
GeneralRe: .NET Framework Version Pin
PIEBALDconsult18-May-09 4:09
mvePIEBALDconsult18-May-09 4:09 
Generalget complex type from nusoap Pin
jahc17-May-09 14:36
jahc17-May-09 14:36 
Questioneasy wait(delay) like an "watabletimer & waitforsingleobjectex" Pin
Bernard3817-May-09 13:27
Bernard3817-May-09 13:27 

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.