ukblogger's Q&A profile
Windows Forms Host Controls in Windows Forms DataGridView Cells
Hi all, I'm trying to create a new cell within the new DataGridView (.NET 2 Beta). For example, I'm trying to create a cell which contain a RichTextBox, I succeed with the appearance of the rich text box controll but there is a lot of irregular behavior. Does someone did it already(not particular with RichTextBox) and can send an example. Unfortunately Microsoft example in the link below doesn't accessible. http://whidbey.msdn.microsoft.com/library/default.asp url=/library/en-us/dv_fxmclictl/html/e79a9d4e-64ec-41f5-93ec-f5492633cbb2.asp 10X in advance, Nir Oren The Rows collection has two Add method overloads that let you populate t ...Show All
Windows Forms Resizing user control
I Have a user control which contains several controls that I want to resize according to it's anchors whenever the size of the parent form changes. Some controls contained in te UC aren't supose to resize at least in y axis, like a combo and a check box, but the textbox is in both. Could you point me in the right direction and perhaps show me an example Thanks in advance. Use a TableLayout control with an applicable number of rows and columns, ensure that the layout control uses Dock=Fill, and percentages for row/column sizes. Fill the table cells with e.g. Panel controls and use rowspan and co ...Show All
Visual Studio Team System Load test on remote computer
How should load test be done on a remote machine do let me know the procedure for achieving the same!!! Record the web test by accessing the remote computer & use this recording for load testing. your web recording URLs would be something like: http://remotemachine/appname/pagename.aspx once you record the functionality that you want to load test, Use Load Test wizard to perform the load testing. To add a new load test, right click the project & select add > New Load Test. This opens a Load test wizard. Provide the Load Pattern details to simulate the load & In the Test Mix node ...Show All
Visual C++ C/C++
Hello everyone, I'm an "old timer", because I started learning computer languages in 1974 (!) on a VAX system. (Basic, Fortran IV, Fortran 77, Pascal, Assembler, Cobol, C, C++, ...) My preferences are for C++ (still do) programing, but because of my professional duties, I stopped programing since 1988. Now I'm "semi-retired" and would like to restart using C/C++ but... What should I decide to buy, I mean, what kind of language to start with Visual C++ version 6 or C++ or I will appreciate Your professional advice Regards, Jean Hi Jean: I loved VAX ... a great computer. If you want to restart using C and C++ you might want to do ...Show All
Visual Studio Open Website from Source Control takes long time
I have built up a project in VSS 2005 via internet and VS 2005. It works great in the project I created, I can check out, modify, check in etc. Now when I go to open a new website from source control it takes a very long time. So far 45 minutes and not open. The project has about 1,500 files I was getting timeouts when opening the project at first, but added: [HKEY_CURRENT_USER\Software\Microsoft\SourceSafe] "Timeout"=dword:00360000 Hey as I typed it just finished. But 50 minutes seems excessive. Its only about 15MB and 1500 files. Why so long Internet connectivity is Cable and DSL on each end and fairly quick. ...Show All
Visual C# Annoying Dialog
When opening custom projects an annoying dialog pops up saying: " Security Warning...." And then you have the option to either "Load project for Browsing" or "Load project normally", and then a checkbox "Show this dialog for sub projects" or something like that. Can anyone please tell me how I can disable the dialog Thank you. The easiest will be if I could send you a picture, but I am not able because this does not allow for it. Can I maybe email you a screenshot So that you can have better context of the problem ...Show All
Visual Studio 2008 (Pre-release) Extension Methods: Static Electricity?
As Anders pointed out in his Channel9 demo, Extension Methods in C# 3.0 really make Linq possible. After drilling into Extension Methods and wanting to not like them, I must ask: what were the alternatives The example that Ian Griffith's gives of some 3rd party developer quietly including something like: namespace System { public static class Evil { public static void Print( this object s) { Console.WriteLine(s);   ...Show All
Windows Forms How to build a group-filter, based on multiple ListBox ?
Hello, I would like to filter a DataView, based on multiple listboxes, just like "Itunes" does. It does work when i have consecutive selections, but when nothing is selected between two listboxes, the filter goes crazy. I have made arrays that contains fields & control names, for easier upgrade. it resumes like this : - if string not empty then add - ColumnName + " Like '" + SelectedValue + "' AND " ............................. that does work sometimes but when i change the parent listbox, it just doesn't do right. also, i have placed that function to be called on each ListBox_Click sub, is this the good place i ha ...Show All
Visual C++ controlling user input
I'm writing a game. A very symple game that doesn't use objects or anything like that. (I'm relatively new to prgramming and haven't gotten that far yet.) Over and over again the program asks the user for input. Some examples: cout << "Play (or try, failures) again, Yes(1) or No(0) " ; cin >> pg; cout << "Show attack score, Yes(1) or No(0) :" ; cin >> showatk; Since these questions only have two anwsers, the variables pg and showatk are of bool type. This all works fine, until the user tries to answer ...Show All
Visual Studio Team System SQL Code Snippets
Are there any plans to support SQL code snippets as part of this Thanks, At this point, code snippets for the new t-sql editor is not in the product. Would you like to see a feature like this one in our next release What aspect of the code snippets feature in VS do you like the most Thanks, ...Show All
Visual Studio How to update PropertyGrid after changing type
Hi all, Our model allows to change the type of an element using the property grid. The element type changes succesfully, but the propertgrid is not updated accordingly. When another element is selected and then the changed element, then the propertygrid displays the correct properties. How can I dynamically update the property grid after changed the element's type Kind regards, Ronald Hi Ronald, What do you mean when you say you change the type of an element Do you mean you change the model element that a shape represents Thanks, George Mathew DSL Tools Team ...Show All
.NET Development Connecting to a database
Hi I am using VS2005, when I am connecting to a database to my web page I add a datagrid and then use the wizards to connect to the database which is on the server. That works fine! Then I tryed to add a parameter using the sqlparameter function: SqlParameter UserID = new SqlParameter ( "@UserID" , SqlDbType .Int); So then I added the Parameter to my sql command: SqlDataSource1.SelectCommand = "SELECT * FROM Users WHERE UserID = UserID " ; So I then tryed to run my program and I got an error, I fixed the error by adding the; using System.Data.SqlClient; class. It compiled fine but when I ran it i ...Show All
Visual Studio 2008 (Pre-release) Espresso sample: Dynamo
I would just like to have a clear definition of what Dynamo is all about. And also, what is the definition of the Binding. Is Dynamo only for anonymous types Does a binding represent a Property and the expression that represents its value Dynamo = new { ... } Binding = the "OrderCount = c.Orders.Count" in new { OrderCount = c.Orders.Count, ... } expression Oh! I should have realised. But, ... it just goes to prove my point, that having a pre-made sequence hasher would be usefull and prevent errors. ...Show All
Architecture XMI to Model
Hi, If we have an XMI file generated by a tool (used ArgoUML), is there a way to construct the model back from the XMI file (i.e. visually). Is there any tool or plugin which does that Thank you. It would be great if you could be more specific about which models are you working with, and where you want to construct the modul back. Dependening on your specific details, there may be ways of using DSLs to do that. If you can provide more details, I'll try to come up with a more specific answer... Deal :-) Mauro ...Show All
Visual Studio Error 1305: Installing VS 2005 Standard Academic
I get this error (1305) on the second disk of the 2 disk install. It request a response giving 2 choices: 1) Retry; and, 2) Cancel. Along with the 2 choice, the dialog box says ... Errror 1305. Error reading from file E:\program files\microsoft visual studio 8\sdk\v2.0\guidebug\shortcutbrdbg32.txt. Verify that the file exist, and that you can access it. Does anyone know how to fix this error You might have a bad piece of media. Try copying the contents from disk 1 and disk 2 to your hard drive, then install from there. ...Show All
