Lappis's Q&A profile
Windows Forms Testing Multiple Instances of Winform application
Hi, Wanted to know what are the testing tools available to test the multiple instances of a win form application. Here is what i need to do: I have a win form application which uses some external toolkit. the toolkit has limitations in terms of the instances creation. I wish to automate the stress testing of the win form application using some tool so that i can find out the threshold limit of the external toolkit.. Basically i want to do a load generation on the win form app by spawning multiple instances of the application with the necessary user clicks scripted in. Are there any tools that come along with the VS 2005 which can help me or i have to resort to LoadRunner or any other tool. Any pointers would be appreciated. Thanks Paritos ...Show All
.NET Development Detecting a Nullable Field or Property
I'm trying to determine if a property's Type is of a Nullable type or not, anyone know how to do this Simple Example: class Program { static void Main( string [] args) { foreach ( PropertyInfo propInfo in typeof ( Car ).GetProperties()) if (propInfo.PropertyType is Nullable ) Console .WriteLine(propInfo.Name); // Should print out the names of the nullable properties (i.e. Doors and Date) } } public class Car { private int _id; private int _doors; private DateTime _date; public int Id { get { return _id; } } public int Doors { get { return _doors; } } public DateTime Date { get { return _date; } } } Thanks ...Show All
Visual Studio How to create the msoControlSplitButtonPopup type button in visual studio??
I wanna to create the msoControlSplitButtonPopup type button in standard tools.but i only created the msoControlButton , msoControlEdit , msoControlDropdown , msoControlComboBox , msoControlPopup , and msoControlActiveX type via CommandBars object. so,,how to create the msoControlSplitButtonPopup type button in visual studio Thanks I am not sure if that is posible, at least for add-ins. See this blog entry: Command Bar Types – Part 2 http://blogs.msdn.com/craigskibo/archive/2005/10/20/483133.aspx ...Show All
Visual Studio Express Editions Saving dropdown items?
I am making an internet browser and i hav used the following code for adding a site to the favourite menu. itmFavo.DropDownItems.Add(web1.Url.AbsoluteUri) but how can i save the added dropdown items when the form is closing en how can i open them when i open the form. This dowsn't work. please can someone give me a code sample ...Show All
Windows Forms Problem with editing cells in dataGridView
I have the dataGridView control with a checkBox type column. When i click on that column, there is no state change on it. Visible state is changing, check box is checked but from the code it has old value. That cell change its state when i move the cursor to the row abowe or below. I don't know what is the issue of that problem. Maybe i do something wrong Did i must use some method like EndEdit or something But EndEdit is not changing state of cell to... I recommend handling the DataGridView.CurrentCellDirtyStateChanged event. In the handler, if the current cell is a check box cell, call the DataGridView.CommitEdit method and pass in the Commit value. For more information, see the DataGridViewCheckBoxCell reference topic. ...Show All
Software Development for Windows Vista SQL 2005 issue revisited
I am running Vista Beta 2 and 6 months ago I tried to install SQL 2005 developer edition. The problem I had was that I could never get a good enough install of SQL 2005 to even run it in order to get SP2. I would am going to address this problem again however I was wondering if there is common knowledge of this problem as I have described it so far. I can provide more information once I start the install again but I wanted to review as much as I can before starting that process. The only thing that might be a new known factor for me is the 32bit vs 64bit. I just learned why flash has never worked on my Vista machine, it’s because flash is not supported on the 64bit IE so I wonder if this is the same with the 64bit version of SQL 200 ...Show All
Visual C++ linker cache?
When compiling a project does the linker cache what librarys it found certian object in If so how do I reset this, I can not seem to get the linker to stop looking for a library that no longer exists. There's an .ilk file in your Debug folder to support incremental linking. That's probably not it though. Check your Additional Dependencies settings (Linker, Input). You might also have compiled a source code file that contained a #pragma comment(lib, "blabla.lib") statement. Or you're linking a .lib file that has such a reference. If you can't figure it out, you can always use the undocumented /DISALLOWLIB:blabla.lib command line option... ...Show All
SQL Server "Allow InProcess" provider option - Is it only for 64-bit Windows OS?
Our linked server to Oracle is having the following error: Error 7302: Could not create an instance of OLE DB provider 'MSDAORA' Our database is SQL Server 2005 running on Windows Server 2003 (32-bit). The linked server uses Microsoft OleDB Provider for Oracle and the Oracle driver is Oracle 73 Ver 2.5. I have two question: 1. It appears our Oracle client is rather out-dated, could that be the cause of the problem if it's trying to run out-of-process 2. According to http://support.microsoft.com/default.aspx/kb/280106, setting "Allow InProcess" fixes it.. *Method 2 Set the Allow InProcess option directly through SQL Server Enterprise Manager when you add a new linked server. Click Provider Options , and then click to select the ...Show All
Visual C# DataGridViewComboBoxCell value is not valid
hello to all i have a problem with DataGridView, when i have created a column "DataGRidViewComboBoxCell" : DataGridViewComboBoxColumn colStGruppi = new DataGridViewComboBoxColumn(); colStGruppi.DataPropertyName = "idStGruppoMerce"; colStGruppi.DisplayMember = "GruppiMerce.Rel.Descrizione"; colStGruppi.ValueMember = "GruppiMerce.Rel.idStGruppoMerce"; colStGruppi.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing; colStGruppi.DataSource = ds; this.gvElementi.Columns.Add(colStGruppi); This is my error; DataGridViewComboBoxCell value is not valid why Tanks Hi, Make sure that all the columns' name do exist in the table of the DB. If idStGruppoMerc ...Show All
Smart Device Development IPv6 :: ICMPv6 :: Neighbor Discovery -> SOCKET implementation?
Hello, Due to the fact that IPv6 offers now a lot of new features under the topic of 'Neightbor discovery' (rfc 2461) there are some challenges to use these new features to support the mobility for a smartphone (rfc 4068) . To do this there is the need to send ICMPv6 Messages. But up to now I haven't found a functionality of winsock2.h which seems to support ICMPv6 Messages. Has anybody an idea if there is a possibility to send and receive ICMPv6 messages with WinCE 5.0 (eMbedded C++) Or in other words: Could I change/manipulate the 'next Header'-Byte of an IPv6 Header and the 'next Header' itself If this is not possible, is there a way to implement your own socket for WinCE Are there some helping links Thanx for any help, Lucia ...Show All
SQL Server How to allow remote connections to SQL Server 2005 Express database
I've developed an asp.net 2.0 web app with vs 2005 and am using a SQL Server 2005 Express database. The app works fine locally, but after uploading to the remote web server the following error occures: 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, error: 26 - Error Locating Server/Instance Specified) How do I go about granting remote connections to SQL Server Express Does the web server have to have SQL Server Express installed in order to run apps that utilize SQL Server 2005 Express databases Do I grant access locally ...Show All
Visual Basic Mdi Form question
Hi all, this is a very simple question but is driving me nuts !!! i have made a simple MDI aplication ( a single Parent Form with MDI Control Activated and a simple Blank form ) and i have made this simple code in my Menu Dim frm As New Form2 frm.MdiParent = Me frm.Show() so it works fine. when i press a few times the button it opens the new from2 inside of the mdi parent, but supose that i have open 4 forms, and close them all and when i open the 5 form it instead of open in top left corner ( because i don’t have any other from open ) it opens in the same sequence of the others !!! ( this is in cascade ) is there any way to solve this ! thks JSB frm. ...Show All
.NET Development Connecting to a telnet server
Basically what i want to do is make my program connect to an existing telnet server, put in a username and password, wait til it receives a prompt then run a command and grab the next lines for me to parse and use. If anyone can point me in the direction of a good tutorial on the best ways to achieve this that would be great Martin, I was able to use this library located in the downladable source code to assist me in scripting my telnet session. You can find it here: http://www.c-sharpcorner.com/UploadFile/tylerkline/TelnetScripting11282005001158AM/TelnetScripting.aspx ArticleID=a8e0e439-14df-4d82-82ee-8cb4c110f9a0 If you are unable to figure it out, let me know and I can post some sample code ...Show All
SQL Server Data Flow Task - Conditions to add value for a field.
Hi: I have a data flow task in which i have multiple OLEDB sources going to a one OLEDB destination via UNION component. I also have a derived column component sitting behind the union, because there are some columns, which exist in the destination table, but are not coming from source, but I am responsible of providing values for those fields. The question is that some of those values are conditional, for eg. Lets say we have a column called RecStatusCode in the derived column component. The value for that column depends on a condition/criteria, so I need to query a db and based on the value of another field, I set the value of the recstatus code. How do i accomplish that I am thinking expressions, but I need clear direction in steps i ...Show All
Microsoft ISV Community Center Forums excel macro
hi, i have a worksheet with different employees and their manhours. employees may vary daily. i want to compare all the employees performance and then draw a graph. please help me to solve this. thank you Hi You would be best using a pivot table to look/analyse the data. If you want to make the pivot table or chart into a macro i would suggest recording a macro while creating the pivot then opening it in the VB Editior and tweaking the code there. I find this is the best way for learning how to code in Excel as it creates the bulk of the code to start you of. If you're stuck or have any problems post back as people are very helpful on here. :) ...Show All
