Answer Questions
gabrielAtIris GDI+ Multi Thread
I am using GDI+ to draw to the graphics object when an OnPaint event occurs. However, if you draw lots of things, the form becomes unresponsive until all of the drawing is done. Is there anyway to put the OnPaint event in another thread, so the form can remain responsive while the painting occurs You can't put it on another thread so far as I'm aware. The other thing to do is use the plural methods wherever possible - ie Draw ...Show All
DevEx Support How this code work(C# 2.0)? It shouldn't!
What makes you think that, there is no ambiguity possible, the compiler can directly deduce the best function member to call, 3 is an int parameter and there is a non-generic method F1 taking an int as argument, non-generics takes precedence over generic parameters, overload resolution solved, point. make your call g1a.F1(3L); and you will get a compiler error, as now there aint no method taking a long. change it to G1 g1a = new G1 (); g1a.F1(3L ...Show All
Devz ListBox
Is there anyway to disable the vertical scrollbar from a listView listbox or listview Vertical Scroll Bar Depends upon the amount of Data in it. How can you show record (for e.g 100 rows) if Vertical Scroll Bar is not enabled. You can set the ListView.Scrollable property to false. If you're disabling the ListView's scrollbar to create your own VScrollBar (for example) for more control, you can set the ListView.TopView to ...Show All
pfear Execution speed difference when debugging C# app
I'm posting this on behalf of a colleague. He wrote a Genetic Algorithm with a graphical display using VS 2005 RTM. He recently upgraded from VS 2005 Beta 2. The execution speed when running a release build from the IDE using F5 is significantly slower versus running it with Ctrl-F5. (I have reproduced this on my machine). He claims that the speed differential didn't exist under Beta 2 of Visual Studio 2005. Here's a s ...Show All
joostvaningen ODBC Datasource - Debugger just quits!!! mscorwks.dll error outside debugger
Hi, I am curently developing a client application that connects through a ODBC data source to COBOL ISAM files, generally this works well, however, when i try and fill a dataset and then proceed to fill a datagrid view (quite simple stuff), the client just quits back to the debugger, no error message/debug info at all!!! If i run this outside the debugger, i get the following debug information: AppName: client.exe &nbs ...Show All
jvsystem class inherit and event question
Hi, I have two classes (ClassA and ClassB), public ClassA { public ClassA() { this.MyButton.Clicked += new System.EventHandler(this.MyButton_Click); } private void MyButton_Click(object sender, System.EventArgs e) { MyFunc(); } protected void MyFunc() { } } public ClassB : ClassA { //.... some functions } What I need is, once the event is fired in ClassA, how can I make inherited classes (e.g ClassB) to know base class ...Show All
Abulafia how do i move the focus to a specified area in a textbox?
please help. thanks in advance. textBox1.SelectionStart = 5; edited: oops. already mentioned. How about the SelectionStart and SelectionLength properties, or the Select method -- Peter ______ http://www.peterRitchie.com/Blog/DotNetConfig.xsd thanks guys. ...Show All
Kwebs Problem in overriding or adding methods in Collections .Can you help?
First of all ,please be patient with me as I am trying to learn c#(moving from vb) + use of generics Collections and I am problems in trying to improve my collections I have created a set of collection all inheriting from the original ones. I would like to extend the collections that MS gives us by either overriding or adding my own methods etc.However I seem to have all sorts of problems 1)Trying to override Contains to give my own im ...Show All
Ulrik Interest in type parameter casting?
Has any consideration been given to adding the abliity to use type parameters in casting public class Customer { } List<object> list = new List<object>(); list.Add(new Customer ()); list.Add(new Customer ()); list.Add(new Customer ()); List<Customer > list2 = list as List<Customer>; Note that you can use List.ConvertAll to do this slightly more easi ...Show All
George Li how to communicating an object from one comp. to an other one?
I've an OleDbDataReader Object in my app. and I wana communicate this object to an other computer. Is it possible if yes how to Well, basically, yes. You can transmit the entire object to the client computer. Unfortunately, when you do so, the object won't be usable. For instance, if you perform a binary serialization of the object, transmit the object to the client computer somehow and then reassemble the obj ...Show All
Pankaj ssg Why can't I see all the components from GAC in the "Choose Toolbox Items dialog / .NET Framework components tab" of Visual c# 20
I've downloaded a class library's source from the internet and built it in the Visual c# 2005 Express Ed succesfully. Afterthat I've Installed the dll to the Gac succesfully. I can see it in the directory "C:\WINDOWS\assembly". But I can't see either my component or some other components being in the GAC in the "Choose Toolbox Items dialog / .NET Framework components tab" of Visual c# Express 2005 What conditions the GAC assemblies hav ...Show All
Doctor Steve MySQL
Hi, Can someone be so kind and give me a complete idiots guide to connecting to a MySQL server using C#.Net 2005 Thanks I managed to sort it out. You need to download the ODBC Connector from www.mysql.com Then configure the ODBC for your server.......and that's it. Then you only need to connect to the MySQL DB in .NET Cheers ...Show All
Balaji_2307 Can I define Array with a defined structure type?
I want to define an array of structure tryped data. Can I do it and is it same as conventional way of Array define Thank you very much for your help. James I don't see why not - have you tried Thank you very much. It works now. J. Thank you for your info. I didn't see a sample in C# document so I have not tried it out. Would you have any example of this in C ...Show All
sacredspirita How to send c++ unsigned char in C#
I trying to send some data to an application wrote in C++ (through a socket) and this data must be delimited with a delimiter packet (STX and ETX) and the application log that receives my data tells me that "No stx found in packet". I contacted the support personel of this application and the guy told to me that this application was build with C++ and "the STX and ETX are defined as datatype unsigned char in C++". My que ...Show All
ZmZ Calculator
I want to create a simple calculator... I need one text box, and some buttons; the user enter a number to textbox, and then when user press the + , user can write the second number, and when the user click the = the result will appear in same textbox... How can I do that What is the wrong with this code ||=> string no1 = textBox1.Text; textBox1.Text = " " ; string no2 = textBox1.Text; double a = Convert .ToDoub ...Show All
