Help For Creating Library File

jothis

Active Member
Licensed User
Hai Everyone,

I Created A simple library for adding a combobox to basic4ppc my c# code is like this

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace combobx
{
public class combobx
{
private System.Windows.Forms.ComboBox cb= new System.Windows.Forms.ComboBox();

public void AddCustomizedcb(Control FormName)
{
cb.Left = 10;
cb.Top = 20;
cb.Name = "cbone";
cb.Width = 50;
cb.Height = 20;
FormName.Controls.Add(cb);
}

}
}

I Compiled it and i got a dll file i just added it to basic4ppc and created a object and i added a my formname as form1
eg:
Sub App_Start
cb.New1
cb.AddCustomizedcb("Form1")
Form1.Show
End Sub

When i execute b4ppc program on the form i cant see anything

can anyone tell me what happend here?
:sign0085:please Help me?:sign0085:

jothis
 
Top