Click here to Skip to main content
15,900,714 members
Home / Discussions / C#
   

C#

 
GeneralCustom TextBox Control Pin
dragos_inf15-May-04 4:10
dragos_inf15-May-04 4:10 
GeneralRe: Custom TextBox Control Pin
Aaron Eldreth15-May-04 9:50
Aaron Eldreth15-May-04 9:50 
Generalregd datagrid Pin
karteek15-May-04 1:01
karteek15-May-04 1:01 
GeneralRe: regd datagrid Pin
..Hubert..15-May-04 4:06
..Hubert..15-May-04 4:06 
GeneralRe: regd datagrid Pin
karteek15-May-04 4:24
karteek15-May-04 4:24 
GeneralRe: regd datagrid Pin
Heath Stewart16-May-04 12:10
protectorHeath Stewart16-May-04 12:10 
GeneralCan't create socket under windows service project Pin
kookai15-May-04 0:44
kookai15-May-04 0:44 
GeneralDesigner - Dataset - Not adding to form Pin
Member 78672014-May-04 23:46
Member 78672014-May-04 23:46 
I am created a simple compoent with designer(including on verb called GenerateDataSet).

namespace Main
{

[DesignerAttribute(typeof(CDSGeneratorDesginer), typeof(IDesigner))]
public class CDSGenerator : System.ComponentModel.Component
{
public CDSGenerator()
{
}
}

public class CDSGeneratorDesginer : System.ComponentModel.Design.ComponentDesigner
{
public override System.ComponentModel.Design.DesignerVerbCollection Verbs
{
get
{
DesignerVerbCollection objVerb = new DesignerVerbCollection();
objVerb.Add(new DesignerVerb("Generate Dataset",new EventHandler(GenerateDataSet)));
return objVerb;
}
}

public virtual void GenerateDataSet(object sender, System.EventArgs e)
{
CDSGenerator objCDS = ( CDSGenerator ) this.Component;

DataSet dsSample = new DataSet();
DataTable dtEmployee = new DataTable("dtEmployeee");
dtEmployee.Columns.Add(new DataColumn("dcEmpID")) ;
dtEmployee.Columns.Add(new DataColumn("dcEmpName")) ;
dsSample.Tables.Add(dtEmployee);

objCDS.Container.Add(dsSample,"dsSample");
}
}
}


The dataset adding to the form. The datatable and columns are not entered in .cs file but going to properties of dataset via property grid, the tables and columns are availabe.

GeneralPlease help me POP3 with attachment Pin
Anonymous14-May-04 17:17
Anonymous14-May-04 17:17 
GeneralRe: Please help me POP3 with attachment Pin
Heath Stewart16-May-04 12:24
protectorHeath Stewart16-May-04 12:24 
GeneralCheck if Windows Form is already loaded Pin
Alan Zhao14-May-04 16:21
Alan Zhao14-May-04 16:21 
GeneralRe: Check if Windows Form is already loaded Pin
..Hubert..15-May-04 0:49
..Hubert..15-May-04 0:49 
GeneralRe: Check if Windows Form is already loaded Pin
Dave Kreskowiak15-May-04 3:01
mveDave Kreskowiak15-May-04 3:01 
GeneralRe: Check if Windows Form is already loaded Pin
Alan Zhao15-May-04 6:07
Alan Zhao15-May-04 6:07 
GeneralRe: Check if Windows Form is already loaded Pin
Dave Kreskowiak15-May-04 9:15
mveDave Kreskowiak15-May-04 9:15 
GeneralRe: Check if Windows Form is already loaded Pin
Alan Zhao15-May-04 14:44
Alan Zhao15-May-04 14:44 
GeneralRe: Check if Windows Form is already loaded Pin
Dave Kreskowiak16-May-04 4:15
mveDave Kreskowiak16-May-04 4:15 
GeneralWSE Client recieveing attachment from service. Pin
Michael A. Barnhart14-May-04 16:09
Michael A. Barnhart14-May-04 16:09 
GeneralRe: WSE Client recieveing attachment from service. Pin
Michael A. Barnhart15-May-04 2:12
Michael A. Barnhart15-May-04 2:12 
Generaltapi communication over the LAN Pin
Member 69108914-May-04 15:43
Member 69108914-May-04 15:43 
GeneralRe: tapi communication over the LAN Pin
Dave Kreskowiak15-May-04 3:04
mveDave Kreskowiak15-May-04 3:04 
GeneralRe: tapi communication over the LAN Pin
Member 69108915-May-04 6:55
Member 69108915-May-04 6:55 
GeneralRe: tapi communication over the LAN Pin
Dave Kreskowiak15-May-04 9:21
mveDave Kreskowiak15-May-04 9:21 
GeneralRe: tapi communication over the LAN Pin
Member 69108916-May-04 2:53
Member 69108916-May-04 2:53 
GeneralRe: tapi communication over the LAN Pin
Dave Kreskowiak16-May-04 4:22
mveDave Kreskowiak16-May-04 4:22 

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.