beN!'s Q&A profile
Windows Forms Adding items to a combobox
hi all, small question: i am adding items to a combobox from a collection. each object in the collection has a String name and int Id. how can i associate the whole object with the combobox item or where can i store the id i want to display the String name to the user, but store the int ID for later use regards Hi, Best approach would be to bind the combo box to the collection. Set the DataSource to your collection, set ...Show All
Visual FoxPro pulling data from one field and making a new column out of it
Hi all!!! I have two fields, work_id and sp_id. All sp_id's are related to the work_id's ie. work_id sp_id 1 000 3 000 3 111 5 111 9 000 9 111 i need the data to be listed by the work_id, then in another colum have it state whether it is one sp_id, the other sp_id or both sp_id work_id sp_id 1 000 3 both 5 111 9 both any insight life is short ...Show All
Visual C# hashtable
Hallo, I have added to hashtable values like ht.add("somebody","name") how can i extract the value of the key using the key name is there any method like ht.getValue("somebody") i dont want to use movenext. thanks n regards swingme Hai konstantin, i was searching for some method like getValue...dint think that it would be so easy. spent some time searching for solution... thanks a lot swingme ...Show All
.NET Development Create virtual com port in C#?
I'm working on a project where I am reading from a com port to receive data from a GPS receiver. I can do this without any problems except for one. There is also another application that wants to read from the com port at the same time. I know there are com port splitters that I could use but I'd rather not have to use any 3rd party software. Is anyone aware of any way of emulating a com port so that I can point the other application to this por ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Use a DX device with form functionality...
Hi! Im creating a DirectX application for a University project. My starting point was the Empty Project that came with the DirextX SDK February 2006. I'm writing the project in Visual C++ 2005 Express Edition. What I want to do is to use an OpenFileDialog when clicked on a DirectX Button. From there I would like to open a file and read a stream which are to be printed in a textbox (IE I want to put a text box control ins ...Show All
Software Development for Windows Vista question
I want to know the price of windows vista. Pricing for Windows Vista has not yet been determined. If history is a guide, Microsoft will announce Vista pricing sometime between mid summer to early fall. Hope this helps, Josh Lindenmuth ...Show All
Visual C# Casting an IntPtr instance to the thing it is pointing to
I am trying to handle the WM_NCLBUTTONDOWN message in an override of my form's WndProc method. The LPARAM member of the message in this case points to a POINTS structure (win32 api). I am, of course, writing in c# and windows forms. How do I get the x, y values from this IntPtr LPARAM You can use the PtrToStructure method: POINT point = (POINT)Marshal.PtrToStructure( myIntPtr, typeof ( POINT ) ); ...Show All
Visual Studio Express Editions Error 1 Unable to find manifest signing certificate in the certificate store.
I am getting this error when trying to publish my program: Error 1 Unable to find manifest signing certificate in the certificate store. I went into the SIGNING tab and un-selected the SIGN THE CLICKONCE MANIFESTS but when publishing, it automatically re-selects it and I get that error. Suggestions Brian The following thread has some details which may be relevent about signing your assembly for clicko ...Show All
Windows Forms Immediate window only lists first 100 properties
I would like to view the entire member list for a DataGrid at run time and copy that list. Quick watch is no good to copy and the immediate window stops at 100 properties. How do I see ALL the properties in the immediate window ...Show All
Smart Device Development Adding a SQL Mobile Database to PPC project
I'm using VS2005 Beta 2 to develop a PPC application. When I try to add a new SQL Mobile Database to the project (by selecting Project | Add New Item | SQL Mobile Database), I receive the following error: "An error occurred while processing the local data file: Unexpected error". The database does appear in the project, but when I open it the local window shows what appears to be a memory dump. BTW, I have SQL S ...Show All
.NET Development again
hi i need to use VS2005 to do this Yes know then how i will be able to test my tool bar is it tested locally i am confused the fisrt step is to use Boundobject is that enough or i need to use xml also because my project is webservices that i am trying to implement any help with steps that i should follow to start doing this RAM76 wrote: i need to use VS2005 to do this Yes know then how i will be able to test my tool ...Show All
Visual C# How to use switch?
I have the following switch and it's not working. protected void AppendColumns(object sender, GridViewRowEventArgs e) { int i = 0; foreach (GridViewRow gvRow in gdvwScholarList.Rows) { string colText = Convert.ToString(gdvwScholarList.Rows .Cells .Text); switch (colText) { case (colText != " " & colText != "" & i == 1): { ...Show All
Visual Studio Tools for Office bind excel sheet with database without using typed dataset.
Hi, I am using VSTO with VS.Net 2005. My problem is that I want fill the excel sheet with the database at the startup but not directly with typed dataset created through wizard (Actually I dont want to use wizard, I want to write code as with VS.Net 2003). Is there any example or any webcast there for creating a data access layer in a class file and then binding the excel sheet from this class at the start up. Any one have any idea re ...Show All
Visual Basic Mail Slots for message passing between threads
Hello all hope you can help i need to read and write to mail slots or find another way to message between a main application and a connection handler thread but i am struggling to find information on this. here is my declaration of the mailslots. 'Mail Slot Declaration Private Declare Auto Function CreateMailslot Lib "kernel32" ( _ ByVal lpName As String , _ ByVal nMaxMessageSize As Integer , _ B ...Show All
SQL Server Group By Expressions
I'd like to dynamically create a group by expression. I have select sourcecd FROM dbo.ITMV_ScanCardHistory GROUP BY dbo.fn_GroupBy (@GroupBy) Where: @groupby = sourcecd and fn_GroupBy = CREATE FUNCTION dbo.fn_GroupBy (@ColumnName Varchar(55)) RETURNS Varchar(55) AS BEGIN RETURN @ColumnName END I keep getting this error message: Server: Msg 164, Level 15, State 1, Line 48 GROUP BY expressions must refer to column ...Show All
