rwgreene's Q&A profile
Windows Forms DataGridview SelectionChanged Event : Strange Behavior
This the second time I posted, I am a MSDN Universal Subscriber, please answer my question... When I fill a dataGridView with data, the SelectionChanged Event seems to fire too many times. If I assign the dataSource to the Grid In Form_Load, the SelectionChanged Event fires 5 times. If I assign the datasource to the Grid using a Button Press, then the SelectionChanged Event Fires 3 times. I am expecting the event to fire only once, as the Grid ...Show All
Visual C++ Exporting a class static instance variable from a DLL using a DEF file
Hi all, I have a simple class defined in a DLL that contains a public static variable. I have written a .def file to export it. When applications link against that DEF file they can't find the local variable when I've declared it as DATA in the .def file. On the other hand, if I remove the DATA tag the linker can find it, but it seems to point to invalid memory. Here are the details. Source files in the DLL: bogus.h: cl ...Show All
Visual Basic Passing data between applications
I've searched but cannot find a simple solution for this problem. I am building individual applications in VB.NET (2005) as part of a suite of applications. Each one is a separate project (.exe file) and I want the options of launching a program with optional data being passed to it and data being passed from it. For example, one program performs a lookup in a property database (allowing users to visually search, etc.). The program ...Show All
Windows Forms Is the server up???
I just installed the client without an error and get: "The remote server is unreachable or request has timed-out" I am using username 'jdoe' and password 'welcome'. I also noticed that if I just hit enter after getting the can't connect message abo ...Show All
Visual C# ?? Using String.Format() for a MAXIMUM Length ??
Hello all, Is it possible to use String.Format() to specify a maximum length for a formatted item For example, let's say I have: String.Format("{0}", "FREDDY"); How can I specify that the result of the formatting should be a string no longer than, say, 3 characters I know I can easily specify the minimum length, but I am producing a report with columns. I need to specify the maximum length, truncating whatever ...Show All
.NET Development Search and copy strings from steam in txt file
HI, i made program that download html page as .txt file and open .txt file as steam in C#. Now i need to search this .txt file which i could load with streamReader, find the words i need to and paste them to the new file or database.. But i dont know how to use indexOf /to search the file/ with stream Could you help me please IndexOf(....) will give you the starting index of the word you are search ...Show All
Visual Studio Express Editions celeron m laptop question
I’m thinking of getting a basic celeron m (1.4 - 1.5ghz), 512 mb RAM laptop, but will these specifications be adequate for programming with the Visual Studio Express Editions Thanks.... Yes, it will be enough. http://lab.msdn.microsoft.com/express/readme/ ...Show All
.NET Development run servers localy
how can i run 2 servers localy in .net remoting i tried register two different ports in the server side but i got an exception. do i need to create 2 different projects , each one for a server thanks in advanced im finding it a little bit difficult to put it in a config...maybe you can help me the problem is that i wrote- Type theType=new TasksManagement().GetType(); RemotingConfiguration.RegisterWellKno ...Show All
Visual Studio Crystal Repor
Sir Please Tell Me That how can i Create And Use ttx File. I am Using InBuild Crystal Report Which Comes With VS.Net2003 Please Response Me As Soon As Possible My Mail ID Is rsatogi.mahesh@hotmail.com Thanking u in Advance ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Fade in/out
I use Sprite to draw some texture and want the texture fade out after some time. Should I set the "device.RenderState" before drawing the texture to do fade in/out What should I do if I want the whole screen fade in/out Thank you Set Ambient Light State to a decreasing or increasing value would be good if it's all the screen you want to fade out... Set the Texture Arg1 to Texture a ...Show All
SQL Server Grouping a query in 30 seconds
Hi, How can I make a query and group the registries in a interval of 30 seconds...like for each line I have a datetime field that have all the day, and I need it to return just like TIME Contador_type1 Contador_type2 Total 01-01-2006 00:00:30.000 2 5 7 01-01-2006 00:01:00.000 3 7 10 It's just an example...but that ...Show All
Visual Studio Team System Documents Access
Here's the scenario: Single-Server Install Project Created On the server itself (local): I can browse the Documents tree in Team Explorer but cannot open any of the documents. Upon trying to open the document I get prompted for credentials and after three attempts I get an IIS unauthorized Access. When I try to open the Sharepoint site (local) I also get prompted then failure. If I access the Sharepoint site (local) using http: ...Show All
Visual Studio Express Editions saving an answer
ok. how can i make vb ask a question and save the answer in a text file so i can access it with this code. Dim Instring As String Dim stream_reader As New IO.StreamReader("textfile.txt") Instring = stream_reader.ReadToEnd() stream_reader.Close() That's a pretty broad question. Try breaking it down into logical steps, and asking for the steps you can't answer yourself. Where do the questions com ...Show All
Smart Device Development Detect WiFi and/or Active Sync connection
Hello! As the subject probably already told you I want to detect wether the WiFi is connected and wether Active Sync is connected. I found this topic : http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=119178&SiteID=1 If thats the best way to do it, do I have to include the whole OpenNetCF.Net dll (94k) or is there a way to do it with less memory Other solutions are welcome too! Something like this might work for you. You can ...Show All
Windows Forms Calendar Control
Hi, I am creating a program that will contain a calendar within it. I have added the Calendar 10.0 control to my Toolbox, but I cannot figure out how to extend the functionality of the conrol so that the user can input events and&nb ...Show All
