I would like to know the differences between deriving from Control or UserControl when you are building a custom control. I know that is easier to create if you use UserControl because you can drag&drop (like into a form) but, is there any other difference? I am particularly worried about run & design time. Thanks in advance. Ivan. Iván Fernández
Ivan Fernandez
Posts
-
Differences Control vs UserControl -
Control vs UserControlI would like to know the differences between deriving from Control or UserControl when you are building a custom control. I know that is easier to create if you use UserControl because you can drag&drop (like into a form) but, is there any other difference? I am particularly worried about run & design time. Thanks in advance. Ivan. Iván Fernández
-
RebasingHello! Has anybody used any kind of rebains with .NET and C#? I've got hundreds of dll's and all have the same base address. I tried with rebase, but I think I'm not using it in the proper way. Any help? Thanks, Ivan. Iván Fernández
-
Channels in RemotingHello, I want to establish the comunication between my application and the server in two diferent ways: In one scenario, by compressing and encrypting the information. In the other one, only by executing a standard remoting call. I thought to define two diferent tcp channels, but I don't know how to address the request through the right channel. Any idea? Thanks. Ivan Fernandez
-
Problems calling a COM+ componentI can't use the COM+ application like Server because I don't want to have any dll in the GAC. I want to use probing to indicate where my application has to search for the asssemblies. I could use another file to read the configuration information, like you said, but the probing information, as far as I know, has to be in the application config file. Any other suggestion?? Thanks!! Iván Fernández
-
Problems calling a COM+ componentHi, I've got a problem, calling via remoting, a COM+ which activation is type library. I configure the client application and the web.config file, then I make the call, and that's ok. The problem appears because my COM+ application has to read information from a configuration file. My first attempt to solve this, was to introduce this information in the web.config file, but it doesn't work. The fact is that the configuration file which it's been read is aspnet_wp.exe.config, instead web.config. I am creating the COM+ through a wrapper. When I call the wrapper, it is executed in one AppDomain, but when the wrapper creates the instance of the component, the AppDomain is changed to the Default AppDomain, changing also the configuration file used. I hope to give enough information (and understable!!!;P) If you need further information, please, don't hesitate asking me. Thanks, Ivan. Iván Fernández
-
Reading configuration information from a COM+ applicationHi, I've got a problem, calling via remoting, a COM+ which activation is type library. I configure the client application and the web.config file, then I make the call, and that's ok. The problem appears because my COM+ application has to read information from a configuration file. My first attempt to solve this, was to introduce this information in the web.config file, but it doesn't work. The fact is that the configuration file which it's been read is aspnet_wp.exe.config, instead web.config. I am creating the COM+ through a wrapper. When I call the wrapper, it is executed in one AppDomain, but when the wrapper creates the instance of the component, the AppDomain is changed to the Default AppDomain, changing also the configuration file used. I hope to give enough information (and understable!!!;P) If you need further information, please, don't hesitate asking me. Thanks, Ivan. Iván Fernández
-
RemotingHi!! I've got a problem with remoting that I don't understand... Could you explain me what happend with this code?? When I unregister the channel and try to get the object again, the code throws an exception...:( tCreador = (Creador)Activator.GetObject(tType,"tcp://localhost:8082/Creador"); System.Runtime.Remoting.Channels.IChannel[] chns1 = ChannelServices.RegisteredChannels; ChannelServices.UnregisterChannel(chns1[0]); tCreador = (Creador)Activator.GetObject(tType,"tcp://localhost:8082/Creador"); Regards, Iván. Iván Fernández
-
i,RemtoingH Iván Fernández
-
How to birng to top an application?Yes, I tried but it doesn't work anyway... Iván Fernández
-
How to birng to top an application?Hello, I'm trying to bring to top an application. I followed several examples that I've founded but it doesn't work. I have the instance of my application registered in the computer and I have access to it via Remoting. I've got a method (ShowMyWindow) that I want to call to show the main window of my application: public void ShowMyWindow() { if (IsIconic(hWnd)) { ShowWindowAsync(hWnd, 3); } SetForegroundWindow(hWnd); } Now, for example, I've got a instance of my application running in my computer and I try to execute another one from the console. I obtain the already running instance and execute the ShowMyWindow method. The problem is that the result of this is I've got the console window on top and the icon of my application flashing in the task bar (I want to show it a the top of my screen!!!!!:mad:) Instead, if my application is minimized, it works.... Any suggestion??? Thanks, Iván Fernández
-
How to control the number of instances of a applicationI want to control the number of instances of my application and if this number is greater than a fixed number, give the focus to one of the opened instances. Any suggestion?? Iván Fernández