KidneyGreentoad's Q&A profile
.NET Development How to create a single instance Data set?
How to create in a Windows Forms Application a single instance typed Dataset using .net2.0. This is needed to have real-time update on two forms. Regards Bhargav Create the static instance of type dataset inside the static program class. This is where your main method is. Then it should be available through the following call in all of your forms. Program.myDataSet cheers ...Show All
Windows Forms how to draw a line on the form?
how to draw a line on the form Dim g As Graphics = Me.CreateGraphics() g.DrawLine(.....) g.Dispose() ...Show All
Visual C++ Compiling Error on VC 7.1
I have compiled my code in VC 7.1. It was written in VC 6.0. Following is the compilation error I get:- error C2872: 'IXMLDOMNodePtr' : ambiguous symbol Has any one face a similar problem Any solution for it. Best Regards, Maybe IXMLDOMNodePtr is defined in a namespace, that is inlcuded by a using directive and it is defined in the global namespace ...Show All
Windows Forms How can I capture mouse click on a component at design time?
I have a standard component, I’ve place it on a form, and it appears as any other component under the form, I would like to capture the mouse clicks on this component, is it possible And how can I implement that in the designer Thank you the help I am spending this week and the next week to update the SmartLibrary; the nex ...Show All
Visual Studio Express Editions Databases!!!
Hello, I have a problem trying to connect to an Access Database, the problem is that I want to make a working project without thecontrols, I only need the source code to do that. I would like to know about working with databases without using the bindingnavigator, how can i do that. I don't know, please help!!!:D I imagine the code in this article will cover what you want to know, there's lots of similar articles on that site as well: http://www.codeproject.com/vb/net/atcl.asp ...Show All
Windows Forms ToolStripContainer and MDI
Hello, I'd like to ask about ToolStrinpContainer Control. Is it possible to make it works with MDI Parent form If I put it on form. And set parent form IsMdiContainer = true. The toolStripContainer Content Panel is visible at the front and MDIClient from parent form isn't visible. Even if I set Content Panel visible=false it doesn't work. If I enumerate controls from parent form and bring MDIClient to front, there is a problem because toolstripconatner controls aren't visible then. I tried a lot of thing, and I cannot find solution. Maybe I missed something Greetings See the following post: http://forums ...Show All
Visual C++ Linker Error
There's an error in my project (Actually it's on Borland C++ 6.0 because de visual C++ 2005, didn't recognize library "windows.h". So please, if somebody knows the reason help me.Here is the code (just an experience): #include <windows.h> #include <psapi.h> #include <iostream> using std::iostream; int main(int argc, char* argv[]) { DWORD* id; DWORD* returned; DWORD size; bool temp; EnumProcesses(id,size,returned); int a= *returned/sizeof(DWORD); std::cout<<"There are "<<a<<" processes on system"; system("pause"); return 0; } [Link ...Show All
Software Development for Windows Vista What happens to System.Collections.Specialied.StringDictionary?
hi, The type of one of my custom activity's DependencyProeprtys is System.Collections.Specialied.StringDictionary. Designer for VS 2005 DOES NOT generate those object-creating codes in InitializeComponent method. I change type as System.Collections.Hashtable, it works well. Why ? Is it bug My WinFX runtime version is 3.0 Beta 2. This doesnt seem to be a bug -at least on the latest version-. I can say that this may be depending on what version of the workflow foundation you have. In the latest version i am able to see the property in the property browser, the designer generated code and the ...Show All
Windows Forms Inheriting a form's cursor property
PROJECT REQUIREMENT The user selects a tickmark from a list of bitmap images (i.e. checkmarks, pluses, and other various symbols) populating a grid. When the user clicks on a row, the mouse changes to the selected image. With the new mouse cursor, the user moves to and clicks on one of any various other controls populating the form (textboxes, comboboxes, datetimep ...Show All
Visual Studio Team System Failure to Open the Exisitng report (.rdl file)using Report Builder
I have installed TFS Beta 3 (Dual Server Mode) Created New Process Template. Creating Team project using the process template. Open the report site from the Repots node in TFS Explorer in the Team project node. Clicked Report Builder. Trying to open existing .rdl file using "Open From File", i am getting following error. Cannot Open this Item. This report cannot be opened in the report builder One or more unexpected Report Definition Language (RDL) elements of the following type have been removed: DataSet One or more unexpected Report Definition Language (RDL) elements of the following type have been removed: DataSet Thanks V ...Show All
SQL Server Hundreds Of VIEWS
What are the downsides to have many multiple views on a SQL Server Database It was somebody's design decision to create 10 views for each vendor in our database- that could range from 20 to 500 vendors ... which means we could potentially have 5000+ views in our database. What is the downside/problems with doing this generally, I would say no, not much downside. Depends on if they are indexed or not. if they are indexed views, I could see some slowdown as datachanges are made, but an increase on selections. this is with regards to SQL 2000 http://www.microsoft.com/technet/prodtechnol/sql/ ...Show All
SQL Server Import XML string into DB
I'm not sure what an "edge" table is. Can you post a sample of the XML, the OPENXML syntax you're currently using, and the output you're trying to achieve -- Adam Machanic SQL Server MVP http://www.datamanipulation.net -- < GBez@discussions.microsoft..com > wrote in message news:c959c905-bfac-4471-b7a1-059439279ef9@discussions.microsoft.com ... Hi, I have a string of xml stored in a ntext field of a table in a SQL Server 2000 database. What I have to do is strip out the data stored in the string and store it in a table in the database. I ha ...Show All
Visual C# Getting StreamReader to recognize unicode escape characters
I am reading in a file which has a header similar to a java properties file. name=My Software Package The issue is the value of the property (the right side of the =) can contain unicode escape characters (\udddd). When this file is read in by my StreamReader (new StreamReader(file, Encoding.UTF8)) the escape characters are not recognized as individual characters. Instead of seeing one symbol they are read in as six chars (ie \\u02ed ). Is there any way to read in this file so it will recognize these escape sequences I have tried all sorts of variations on use the Encoding.Decoder classes to no avail. As well as stripping out the \\ ...Show All
.NET Development Combining two ICollections into one IDictionary
Given two ICollections, where the first one contains strings, and the second one contains Objects, is there a standard way to combine them into one IDictionary where the strings from the first provide the keys, and the Objects from the second provide the values An example would be a ConnectionStringBuilder class. It contains two ICollections, .Keys and .Values. I would like to make one HashTable out of those. Right now I CopyTo() an array for both and then loop through one array and use the indexer to extract keys and values and use those to build up my HashTable. Any tips Thanks in advance! I mean that you ...Show All
Visual Studio Installation hangs
I have tried installing VC express on my machine and the installation hangs during startup(loading installation components), with the suite integration toolkit. the report gives the module name as vsscenario.dll. It is a system thing as it has installed Ok on another machine. I have uninstalled all instances of .net and dont have any versions of Visual studio installed. The machine is a 650Mhz pentium 3 with 384 Meg Ram, running XP with service pack2 and should be able to run the program. I am also unable to install from the net as it does the same thing. i have same proplem i try to replace ...Show All
