Answer Questions
jianglinchun How to use a .NET WinForm in COM Interop?
Hello, Does anyone know of any examples of how to use a .NET Windows Form via COM Interop I know who to use Subroutines in COM Interop, but not Windows Forms. Thanks for any ideas. ...Show All
markgoldin Throwing exception in multiple threads
I have a component that works by spawning a second thread to deal with specific tasks. When the second thread encounters certain situations, it must throw exception to halt the opreation of the entire application. However, due to the operating hierarchy of App&nbs ...Show All
MarcoDissel Need help consuming web service
We have a vendor who created some web services for us, but I don't know how to consume them. I created a reference to the .asmx WSDL file, and it reads it ok and creates all the appropriate files. What I don't know is how to cal ...Show All
countzero add customized combo box in datagridview
i have my customized combo box found in the other site. i need this to add in dfatagrid view the combox box have multiple columns which i find it suitable for me.for now, the problem is aading it in datagridview heres the my code public class mycombo inherits datagridviewcomboboxcolumn public withevents columncombobox as mtgccombobox ---this mtgccombobox is mycombobox found on the other site ........ end class th ...Show All
john smith Click data grid row head, what event to can I code it?
I want to get a unique value once user click row head of data grid. Can someone tell me what event and what method to use you would have to handle the data grid mouse up event: Here is some sample code ( C# ): //& ...Show All
DTG1 How to debug ClickOnce application ?
I want to know if is possible to debug with VS205 a clickonce application, to attach the process to the debuger. I tried to attach the debug to the process in the process list, but I can not capure events. Giuseppe It should be possible, try adding a line in your app you are trying to debug: System.Diagnostics.Debugger.Launch() This will bring up a dialog that allows you to select your debugger to attach to. Hmm... I'm no ...Show All
David Kyle How to determine if DataGridView rows are accessible?
Is there a 100% accurate way to determine if cells of a DataGridView are accessible before trying to access them I have master/detail DataGridViews bound to a dataset. My code, which tries to access cells of the detail grid during SelectionChanges of the master grid sometimes throws NullReferenceExceptions saying the detail grid columns don't exist. I want to prevent this from happening. I have tried the overly compli ...Show All
josku_x Async WebRequest not firing Callback
Hi, I'm writing an application at the moment which is meant to query the availability of internet domain. It does this using a POST request to a HTTP gateway offered by our Registrar. It works fine for one domain but when I try to qu ...Show All
Neo the 1 How can I have one event for a group of controls
I have a windows form user control that has about 45 textboxes on it. I would like to bind all 45 textboxe's lost focus event to one sub routine. Is there a way to do this without having to use the "handles" keyword f ...Show All
aiopunk Event source in event handler delegate?
Please help me determine the source of the event that triggered it. In a Windows Forms application, webbowser control, HTMLElement's onclick event is handled by a delegate event handler that has been attached to it by the application. The event handler has the usual parms, source As object and e As System.EventArgs but source is Nothing and e is empty. I know I am missing something but I cannot find what that is, although I have searched MSDN ...Show All
Chico transfer unmanaged memory to Bitmap object
I have a program which reads raw image data from audio hardware. I am reading the data in unmanaged C++ code. In a managed C++ routine, I have a pointer to an unmanaged unsigned char array. I would like to load a bitmap object with&n ...Show All
Scott518 Cancel Selected Index change ListView
I have a ListView, for each item from listView I have a collection of data that I display, and the user can change. If one item is selected and the user change any information into the form then on change current selected index I whant to ask the user if he whant's to save with YesNoCancel option, I implemented Yes and No but for Cancel I didn't find a way. The ListView is in Detail View, with fullrowselect, single selection. Thanks ...Show All
heguangm RowHeaderClick Event in DataGrid
Hi All, DataGrid has a Protected Event RowHeaderClick. The following code is not good this.dataGrid1.RowHeaderClick += new EventHandler(DataGrid1_Click); error message is: C:\VS\WindowsApplication1\Form3.cs(244): 'System.Windows.Forms.DataGrid.RowHeaderClick' is inaccessible due to its protection level How&n ...Show All
Tore Bleken Find the primary key of the table bound to datagrid
Hi, I'm new to windows forms and usign c#. I've bound a dataset having one table, to a datagrid. When I double click on the datagrid I need to display that row's data in a new form. How can I do this. I think I firat have to find the primary key value of the row and then retrive the values or can you directly read the row values. Please send me any links to good tutorials that shows how to use the datagrid as well. I've only been working with ...Show All
paulfl Generating thumbnails from video file
After looking around, and not finding any fairly easy solution, we resorted to using the program 'SnatchIt!' - by using its command line functionality The software is unpredictable. Anyone have any ideas, we looked into directx sdk, windows media sdk, no easy ...Show All
