Endif's Q&A profile
Visual Studio Team System Shouldn't Extraction Rules execute before Validation Rules???
Somehow I have this nagging feeling I missed something simple somewhere and am asking a stupid question, but I will ask it anyway... I am setting up some tests creating custom extraction rules and custom validation rules. When I set them up for a given web test, they show up in the UI and execute in the order of Validation Rules, then Extraction Rules. It seems to me that it should be the other way around. FYI, I am primarily manually setting up Requests (not using the recording mechanism). Here's what I am doing and expecting: Create the web test. Add a Request to a URL (let's say http://localhost/test/default.aspx ) Add an Extraction Rule (happens to be Custom in my case) to pull out the data in XML format using XSLT and H ...Show All
Visual C# AfterCheck event, unchecking a nodes
Hellous, trying to delete node when it gets "UnSelected", been trying something like this but gettin error all the time. its not e.Node, e.Node.Text, e.Node.FullPath, and e.Node.Remove removes it from treeView1 private void treeView1_AfterCheck(object sender, TreeViewEventArgs e) { if (e.Node.Checked) { treeView3.Nodes.Add(e.Node.FullPath); } else { treeView3.Nodes.Remove(e.Node); // Problem is in this line } } Your eventhandler handles events from treeView1, so it seems. But then you try to remove a node object from treeView3. The node that you get through the TreeViewEventArgs exist in treeView1, not in treeView3. ...Show All
Windows Forms select item in a dropdownlist in datagrid
I am wondering how I programatically select an item in a combobox. The combobox is a static list, not databound. When I do the following: this .dgPartProcess.CurrentRow.Cells[ "col_item_type" ].Value = itemType; the itemType value is just a string, but when I try to set the cell value I get the error: System.ArgumentException: DataGridViewComboboxCell value is not valid Row: 2 Column: 1 When I commnet out the line it works ok, although I don't get a vlue in the combobox. I thinks it's stating the the item isn't in the list, even though I know it is. I am thinking I have to use some thing like SelectedText on the ddl, but I am not sure how to get at the ddl within the cell in order to set the value. Any h ...Show All
Visual C# How to create System.UInt32
I understand the SystemUInt32 is a built in struct in .NET, but was wondering how to make it. Specifically how to implement an implicit conversion that allows code like: UInt32 num = 5; How would this datatype be defined if I wanted to make something similar under a different name Thanks, wilf Do you mean you want to do something like a typedef in C++ This is not possible in C# butyou can do something similar with the "using" statement where you can create an alias for a type i.e. using System; using MyUInt = System. UInt32 ; namespace ConsoleApplication1 { class Program { static void Main( string [] args) { MyUInt x = 5; Console .WriteLine ...Show All
Visual C# converts a char into a string
Hi All, How would I convert this string bleh = "hello world"; inputString = "r" if (bleh == inputString) { blah = inputString; } The error message I get is Error 1 Operator '==' cannot be applied to operands of type 'char' and 'string' Much help appreciated Declare inputString as char, and do: inputString = 'r'; // Note single quotes. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Some Halo-like video clip I found...
I was a heavy critic of managed games and performance but I'm finding less to argue about these days and finally made the switch. This is not mine but it's a video clip of one of Halo's multiplayer maps that I found on YouTube. The textures are a bit blurry but I doubt the art is the concern right now. It just proves Halo is within reach with C# :) I think that is quite awesome and worth sharing. Enjoy... http://youtube.com/watch v=PjAyMZkMckA I probably shouldn't be double-posting, but, new video: http://youtube.com/watch v=7cBaTcd3BkA EDIT: By the way, you may want to turn your speakers up for that one, the sounds are fairly quiet. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting debug information....
How does one setup the XNA express IDE to receive debugging code. InvalidCallExceptions aren't very helpful in tracking down the problem. We don't have the DirectX sdk installed so we can't switch to debug drivers. How can we set this up TIA, lushdog The reason why you don’t see the messages is that messages from the unmanaged DirectX are not shown. The output window shows only messages from the managed part of the code. You can change this in the pro version but I am unsure if this switch is available in the express version. You could use an external Debug Monitor: http://www.sysinternals.com/Utilities/DebugView.html ...Show All
Visual Basic TextBox Woes
Is there a way to determine which line in a textbox has the most characters in it I cannot seem to find anything within the Lines property that has worked. Also, Is there a way to do this and not count Chr(13) and Chr (10) Thank you, Troy L. This code is incorrect , currentline is never set and it doesnt address the removal of the carriage return / line feed characters Dim theGreatestChars as Integer = 0 Dim lineNumber as Integer = -1 for counter as Integer = 0 to Me.theTextBox.Lines.Length - 1 if Me.theTextBox.Lines(counter).Length > theGreatestChars then theGreatestChars = currentLine linenumber = counter end if next Corrected it would read something like the following. ...Show All
Windows Forms Help with displaying and editing Vector Images
I want to display .EPS Vector images in Windows Forms, but the PictureBox control will not let me do this. I would also like to be able to change the colors in the Vector image and save the changed image. And I would like to convert .gif/.jpg/.png images to Vector .eps images. Can anybody help me with this If I have to purchase a 3rd party control to accomplish this, I have no problem with that. Yes, 3rd party. Try something like Lead Tools . ...Show All
SQL Server Decoding set of values in a column
Hi, I have 2 tables as mentioned below: Tbl1: Col1 Col2 x 1 2 3 4 5 y 2 4 7 1 4 Tbl2: Col1 Col2 1 id1 2 id2 3 id3 .... What I need to is takes col2 values from tbl1 match it against col1 in tbl2 and get the corresponding col2 from tbl2. So my result data will be Result: Col1 Col2 x id1 id2 id3 id4 y id2 id4 id7 id1 id4 To achieve this, what I doing now is, created a TVF to convert the values in tbl1 to different rows, join it with tbl2 and then use 'While' loop to reconstruct all rows into a single row. But the while loop is taking more time to reconstruct it (approximately 3 mins for 1000 rows in a single process system with 1GB memory). Is there any other easy way, to reduce the time ta ...Show All
Software Development for Windows Vista DVDR-DL fails on write from data, but not from image
Using the imapi2sample, I get an E_FAIL from IDiscFormat2Data::Write() when trying to burn some files to a DVD+R DL (e.g. imapi2sample.exe -write c:\users\raptor2lavbb8\AppData\Roaming\temp\burn ) It works ok with other media types and works ok to DL on other drives. So, how can I further diagnose what the problem is (beyond E_FAIL) Hey Garrett, I replied to the trace thread. I used it during a run of the imapi sample for this drive/media: Recorder 0: MATSHITA BD-MLT UJ-210S ( H:\ ) (IMAPI_MEDIA_TYPE_DVDPLUSR_DUALLAYER) Still trying to dig up windbg/msdn... ...Show All
Visual C++ ASSERT error on Visual Studio .NET 2003
I have a dialog mfc application with a main dialog. With a button in the main dialog I launch a second dialog. All the controls in this second dialog worked fine. But for some reason everything went wrong. I placed a list box for example on the dialog and I added a control variable for it and I called it NameList. Then I have a piece of code in the dialog NameList.ResetContent(); It compiles fine with no problem, then when I run my application and launch the second dialog it works great. But as soon as the NameList.ResetContent(); code executes I get the assertion error. Here is some details about the error: afxwin2.inl line 698 (The code on line 698 are given below) _AFXWIN_INLINE void CListBox::ResetContent() { ASSERT(::Is ...Show All
Windows Forms Multiple icons in .ICO file click once setup. Different icons on start menu and desktop?
Hello Is it possible (like in MSI packaged ) to have multiple icon file in the specified .ICO file in the clickoncesetup I would like to have one icon for the desktop, and one smaller icon for the start menu. What size should I set for the different ICO files to ClickOnce select the correct one ...Show All
Internet Explorer Development Unable to hide Scrollbars in IE7
It seems to happen at random. If I load a page that contains a object that is set to fill the browser window and have turned off scrollbars it occassionally decides to leave a space for them anyway. I can follow the same link and sometimes it works correctly, and other times it does not. Here's an example - this should fill the page - and on every other version of IE it does. http://home.comcast.net/~adamrleggett/aldoapplet2.htm Same thing happens if I try and do it using CSS. Here's someone elses website discussing the problem. http://www.howtoadvice.com/RemoveScrollbars Is your Zoom Level not 100% Please check the zoom level in the lower right corner of IE. Scrollbars will ...Show All
Visual Basic FileSystemWatcher question
Dear folks, Primary platform is Framework 2.0.50727.42 and Visual Basic 2005. I’m looking for any sample which provides mes how to implement File Watcher class. My current dutie is build a infinite loop inside a Service Windows program where a group of subfolder are scaned all day long. When a concrete file is meet a set of procedures are fired. I could do the same by mean Stream classes but I heard that I'do my best using File Watcher. Thanks for any input or thought about this requirement, enric Please do not duplicate your post across forums...see here for your answer: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=583522&SiteID=1 ...Show All
