Click here to Skip to main content
15,914,905 members
Home / Discussions / C#
   

C#

 
QuestionEnglish please:) Pin
Muammar©16-Mar-07 8:53
Muammar©16-Mar-07 8:53 
QuestionSave a ListView(NewBie) Pin
NGSjamesc16-Mar-07 2:16
NGSjamesc16-Mar-07 2:16 
AnswerRe: Save a ListView(NewBie) Pin
coolestCoder16-Mar-07 2:27
coolestCoder16-Mar-07 2:27 
GeneralRe: Save a ListView(NewBie) Pin
NGSjamesc16-Mar-07 2:56
NGSjamesc16-Mar-07 2:56 
Questionhow can create an ActiveX in C#? Pin
B.A16-Mar-07 1:55
B.A16-Mar-07 1:55 
AnswerRe: how can create an ActiveX in C#? Pin
Muammar©16-Mar-07 2:26
Muammar©16-Mar-07 2:26 
GeneralRe: how can create an ActiveX in C#? Pin
B.A16-Mar-07 2:33
B.A16-Mar-07 2:33 
AnswerRe: how can create an ActiveX in C#? Pin
subrata.jana16-Mar-07 2:28
subrata.jana16-Mar-07 2:28 
hi, there is no concept of ActiveX in C#. the workaround for this -- Try this it will work (Register and Unregister)

namespace test{
[GuidAttribute("register with some guid ")]
[ProgId("Any string")]
[ClassInterface(ClassInterfaceType.AutoDual)]
public class ActiveXControl : System.Windows.Forms.UserControl
{

// ur code + constructor + all other stuff

[ComRegisterFunction()]
public static void RegisterClass ( string key )
{
StringBuilder sb = new StringBuilder ( key ) ;
sb.Replace(@"HKEY_CLASSES_ROOT\","") ;
RegistryKey k = Registry.ClassesRoot.OpenSubKey(sb.ToString(),true);
RegistryKey ctrl = k.CreateSubKey ( "Control" ) ;
ctrl.Close ( ) ;
RegistryKey inprocServer32 = k.OpenSubKey ( "InprocServer32" , true ) ;
inprocServer32.SetValue ( "CodeBase" , Assembly.GetExecutingAssembly().CodeBase ) ;
inprocServer32.Close ( ) ;
k.Close ( ) ;
}

[ComUnregisterFunction()]
public static void UnregisterClass ( string key )
{
StringBuilder sb = new StringBuilder ( key ) ;
sb.Replace(@"HKEY_CLASSES_ROOT\","") ;
RegistryKey k = Registry.ClassesRoot.OpenSubKey(sb.ToString(),true);
k.DeleteSubKey ( "Control" , false ) ;
RegistryKey inprocServer32 = k.OpenSubKey ( "InprocServer32" , true ) ;
k.DeleteSubKey ( "CodeBase" , false ) ;
k.Close ( ) ;
}
}
}
GeneralRe: how can create an ActiveX in C#? Pin
B.A16-Mar-07 2:32
B.A16-Mar-07 2:32 
QuestionExtending the Textbox Control in ASP.Net using C# Pin
Neeraj Kr16-Mar-07 0:38
Neeraj Kr16-Mar-07 0:38 
AnswerRe: Extending the Textbox Control in ASP.Net using C# Pin
Pete O'Hanlon16-Mar-07 2:17
mvePete O'Hanlon16-Mar-07 2:17 
AnswerRe: Extending the Textbox Control in ASP.Net using C# Pin
N a v a n e e t h16-Mar-07 2:18
N a v a n e e t h16-Mar-07 2:18 
QuestionCREATING AUTONUMBER COLUMN IN EXCEL Pin
shopi3016-Mar-07 0:36
shopi3016-Mar-07 0:36 
AnswerRe: CREATING AUTONUMBER COLUMN IN EXCEL Pin
Muammar©16-Mar-07 2:32
Muammar©16-Mar-07 2:32 
AnswerRe: CREATING AUTONUMBER COLUMN IN EXCEL Pin
Dave Kreskowiak16-Mar-07 2:46
mveDave Kreskowiak16-Mar-07 2:46 
AnswerRe: CREATING AUTONUMBER COLUMN IN EXCEL Pin
mike montagne16-Mar-07 7:26
mike montagne16-Mar-07 7:26 
QuestionComparing 2 xml Pin
Iker Llanos16-Mar-07 0:28
Iker Llanos16-Mar-07 0:28 
AnswerRe: Comparing 2 xml Pin
Muammar©16-Mar-07 2:43
Muammar©16-Mar-07 2:43 
QuestionHow to get data type of columns in a table??? Pin
shum2315-Mar-07 23:49
shum2315-Mar-07 23:49 
AnswerRe: How to get data type of columns in a table??? Pin
coolestCoder16-Mar-07 0:02
coolestCoder16-Mar-07 0:02 
GeneralRe: How to get data type of columns in a table??? Pin
shum2316-Mar-07 0:35
shum2316-Mar-07 0:35 
Questionuse stream ......??? Pin
darkcalin15-Mar-07 23:43
darkcalin15-Mar-07 23:43 
AnswerRe: use stream ......??? Pin
m@u15-Mar-07 23:55
m@u15-Mar-07 23:55 
GeneralRe: use stream ......??? Pin
darkcalin16-Mar-07 0:07
darkcalin16-Mar-07 0:07 
AnswerRe: use stream ......??? Pin
coolestCoder15-Mar-07 23:56
coolestCoder15-Mar-07 23:56 

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.