wekempf's Q&A profile
Windows Forms DataGrid - Custom Columns
Hi, I mapped some columns of a datatable to a datagrid, there is a brief example of that. My questions is, how can we map columns from different sources to a datagrid. say 2 columns from dtblPerson, 5 columns from dtblCompany. Thank you... ------------------------ ...Show All
SQL Server one stored proc for multiple datasets
hi all, i have a report which uses a few table layout. data for each table layout come from different datasets. table1 - dataset1 table2 - dataset2... for some reasons, i need to use stored proc. how can i put all the queries into 1 stored proc so that table1 will get data from dataset1 and so on please help. thanks! thanks Jens, thanks Robert. i was thinking that it's easier to keep and maint ...Show All
Visual Studio Express Editions error C3861: 'printf': identifier not found
I think I already know the answer to this but I'll ask the question anyway. When I attempt to compile the following code: #include <stdio.h> #include <stdafx.h> int count; int main() { //Print the numbers 1 through 20 for (count = 1; count <= 20; count++) printf( "%d\n" , count); return 0; } I get the message: error C3861: 'printf': identifier not found Does this messa ...Show All
Visual Studio Problem using DTE80a.olb
Hi, I have migrated my code from .NET2003 to .NET2005. I used DTE.tlb, it gave me build error. However i got sudgestion from VSIP developer to use DTE.olb. But now I can see that this file is not present in VS2005. I used DTE80a.olb as I read in forums that this is just renamed form of DTE.olb. The build is successful but at run time, I get error CreatCustomeProject error at the time of clicking finish of Application settings page and project is ...Show All
Windows Forms System Colors
Hi All, I used the following to create a custom color in vb.net How can I make this colour public so that I can refer to it doesn't matter in which form I am. I all my forms to have the background colour that I have created. How can I do that This is my code: oColor1 = Color.FromArgb(255, 0, 0) TextBox1.BackColor = oColor1 Please Help, Rudi hmm I should have tested my code, t ...Show All
Visual C# Is it acceptable to have code in get or set?
Absolutely every example I find on the net with regard to C# properties go like this: private string label; public string Label { get { return label; } set { label = value; } } My question is: is it acceptable to put code in the getter Where do you draw the line > is it acceptable to put code in the getter Yes, definitely. > Where do you draw the line Code in a getter should not modify the state of ...Show All
Visual Basic Troubles with my combobox and the split method
I have this declaration: Private sEsper As String() = Split(My.Resources.Espers, vbCrLf) And this usage: _Esper.Items.AddRange(sEsper) The problem is that it adds two sets of sEsper to the combobox _Esper. If I comment out the usage line then the box has no items. I cannot figure this out. Why is it adding two sets of sEsper Hi, I think for some reasons Terra form was loaded twice. I tried your code and _new form was loaded just ...Show All
Windows Forms ComboBox problem
I have a ComboBox that is populated with the data from a data table. Also I have a procedure call to do some stuff in the SelectedValueChanged event. During the initialization of the combo box, SelectedValueChanged event is called two times. T ...Show All
Windows Forms How to create an antivirus?
Hello. I wan't to create an antivirus (of course, not in Visual C# .NET) but I don't find any resources, link, information about how to create an antivirus.I searched but I don't found any tutorial, or info about how an antivirus works.Please...help These forums are for specific programming questions. No-one is going to be able to give a meaningful answer to this question within the constraints of a forum post. ...Show All
SQL Server Error locating server/instance specified
I am trying to connect to the AdventureWorks database while using Visual Basic 2005 Express. I am currently using the SQL Server 2005 trial version. Here is the error message: An error has occurred while establishing a connection to the server. When connecting to SQL server 2005 this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, Er ...Show All
Visual Studio Express Editions Need Recommendation On Best Data Storage Method
Hi everyone, I'm just getting into the Visual Basic 2005. I knew VB6 pretty well, so this is kind of a big jump. I think with a recommendation on how to proceed, I can probably figure out how to continue, but I need a little help getting started. What I want to do to help learn things is create an application that will show system information from the PC/server it is run on. I created a form and setup a Split Container - the left pane bein ...Show All
Smart Device Development CABWIZ/Makecab problems
Hi all, I'm having trouble building a CAB file for a CF 2 project. Done the usual steps, Added a Smart Device Deployment project to my solution, set its propertys, go to build and Always get back a message saying ; Error: CAB file "C:\Documents and Settings\DAVE\My Documents\Visual Studio 2005 \Projects\Project1\DeploymentCAB\Release\Project1. CAB " could not be created It's really annoying, I dont want to have to go back to us ...Show All
Visual Studio Team System tf30005 and tf30217
Hi, While creating a new team project, I got a tf30005 and a tf30217 error. How should this be solved The client and server run in a Virtual Machine, both Virtual Machines run on the same computer. Thanks, Bart I'm going to close this thread for now since we haven't heard back...please let us know if you are still having trouble. Thanks, jeff ...Show All
Windows Forms DataGridViewButtonColumn question
I want to get the heading value for a DataGridViewButtonColumn that I added to a DataGridView. I'd like to check the heading value upon the DataGridView_CellContentClick event, if I have several button columns. I want to know which one is doing the clicked button. Anybody know how to do this Ken Found my answer. I initially was thrown because it was a button column. I didnt know you could just go t ...Show All
Visual C# Where is Property Binding value stored?
In a VS2005 Windows form project I have a text box whose Text property is bound to a user setting using the Application Settings > PropertyBinding in the form designer. In my code, before the form is closed I do Properties.Settings.Default.Save() so that the value of the Text property is persisted. This works fine. The textbox displays the value that was persisted when I rerun the project. However, I do a FIND (in ...Show All
