Christian Winter's Q&A profile
Windows Forms scrolling a DataGridView programatically
Hi there Is there a better way of scrolling a DataGridView than just setting the CurrentCell property I just want to say "make row X the first displayed row" Am I missing something simple You can use the scrollbars directly. You can get them using the HorizontalScrollBar and VerticalScrollBar properties. ...Show All
Visual Studio Express Editions How do I test for null date in SQL table?
Visual Basic 2005 Express: SQL won't permit null dates in a table. I would like to test for this condition and replace the null date with a DefaultDate (01/01/1901). How do I test for a null date in an SQL table The following code gives an error saying that DBNull is a type and cannot be used in an expression. If PatientBindingSource.Current( "BirthDate" ) = DBNull Then PatientBindingSource.Current("BirthDate")=DefaultDate End If The isdbnull method in VB.Net seems to do the trick. If Isdbnull( PatientBindingSource.Current( "BirthDate" ) ) Then Pat ...Show All
Visual Basic Help.
How do I create a grid of pictureboxes (25 x 25) on Visual Basic 2005 and auto-name them pbx(row)_(column) for the picture boxes It is to slow and hard to manually rename all 625 of them. Ok question answered, thanks. New question: OK, I ran into another problem. I want it be so that if I click the picture box with the person in it, you can move him by clicking on another tile. How do I do this (I tried (got from Dustin_H 's sample code) : Private Sub PicBox_On_Click( ByVal sender As Object , ByVal e As EventArgs) If PicBox(x, y).Image = Tiles.picPerson.Image Then &nb ...Show All
Visual C++ Halting Keypresses?
Hi all, I am writing a program that is supposed to lock a user from the common key presses, i.e. Alt + F4, Crtl+Alt+Del, etc. I know I have to have case WM_KEYDOWN: switch(wParam) { //The Keypresses } break; My problem is that I do not know how to halt the keys from doing anything. I am certain that VK_F4 is for the F4 key, but how do I link alll of the keypresses of one command together, i.e. the keypresses for the Task Manager. I also need to know how to make the window, that will disappear, to keep windows ...Show All
SQL Server If-structure
Hi folks, I want a solution for my problem. In my sql-query in the WHERE-clausule i want to do the following thing: - If I enter 'All' in my parameter, i don't want a WHERE for this - if I enter 'Nothing', i will do this: ISNULL(stuff,'-1')= CASE WHEN @parameter ='Nothing' THEN '-1' ELSE @erkenning How do I combine those two Thanks anyway BYE Be a bit creative ;) where (x=y and bla=blubb and ISNULL(stuff,'-1')= CASE WHEN @parameter ='Nothing' THEN '-1' ELSE @erkenning) or (@parameter='All') ...Show All
Microsoft ISV Community Center Forums Control of graphs and organization charts
Greetings to all! How can one control properties and methods of graphs and organizations charts For example, I am trying to change the background colour of a graph in a Powerpoint slide through a Macro command, or modify any kind of object in an organization chart. I am guessing I need to create a reference to the graph object and then access its properties through it, but have been unable to do so. Thanks in advance for any help or suggestions!! Hopefully, you'll be able to get back to us with more details, but the engineer did have some general suggestions: I have reviewed the link. However, I ...Show All
Windows Forms DataGridViewComboBoxColumn not displaying stored value
Hello, I am having a lot of trouble with the datagridview. My datagridview holds data of the child table. It does populate fine. However the problem comes when I want to add a combobox to the datagrid. Toward the end of the code below I add a combobox and bind it's source to the appropriate look up table. When I run the application, the column is added and it does have the values of the look up table, however it does not show the currently selected value in the database. It comes up blank. Also, I use the following statement: DgvCalls.AutoGenerateColumns = false ; My understanding is that this should not display any columns unl ...Show All
Visual C# Writing a txt File problem
Ok, in my proyect iam trying to simulate a drawing editor, but i want to create a Log File ( drawing.txt ) in this file i want that every line have two points example: {100,100},{200,00} // this for the first line drawn {45,88},{82,89} // this for the second line ... //... etc, for every line drawn so i did in my code a function, fucntion that is called by the event OnPaint public void logactions( Point a, Point b) { string path_string = "C:\\Drawing1.txt" ; using ( StreamWriter _path = new StreamWriter (path_string)) { string data = a.ToString() + "," + b.ToString(); ...Show All
Visual Studio 2008 (Pre-release) Pixel width "Thickness" for shapes
Is it possible to draw shapes with a single pixel width I am working on an engineering program in WPF and need to scale drawings. The current thickness of 1 is more than one pixel (presumably anti-aliased) and is very "fuzzy" - that's an engineering term! The same drawing drawn with GDI looks much crisper - another engineering term. Ideally there would be a special thickness, say 0, which would always draw at one pixel width no matter what scale transform was applied. excerpt: As I was saying earlier, to accommodate the high-resolution displays, we need to get developers to stop specifyin ...Show All
Visual Studio Team System Problems with vsperfcmd
Hi, I followed the instructions on this MS blog: http://blogs.msdn.com/vstsqualitytools/archive/2005/06/08/426979.aspx to instrument and collect coverage stats manually for my manual tests. I run: vsinstr my.dll and my.exe vsperfcmd -start:coverage -output:a.coverage run my program manualy vsperfcmd -shutdown On shutdown, I get the following error. I am using VS2005 Release - Developers, C# config. C:\svt\SvtClient\Core.Test\bin\Debug>vsperfcmd -shutdown Microsoft (R) VSPerf Command Version 8.0.50727 x86 Copyright (C) Microsoft Corp. All rights reserved. Shutting down the Profile Monitor -------------------------------------------------- ...Show All
SQL Server SQL Server 2005 Standard edition install fails; An instance with the same name.../
Good Morning I am trying to install SQL Server 2005 onto Windows Server 2003 Small Business Edition. Previously SQL Server 2000 from the SBE disk was installed, automatic updates are enabled. I have selected the default instance and everything I try results in the error: An instance with the same name is already installed on this computer. To proceed with SQL Server Setup, provide a unique instance name. Log file says; -------------------------------------------------------------------------------- Machine : ISAINTERNET Product : Microsoft SQL Server 2005 Product Version : 9.00.1399.06 Install : Failed Log File ...Show All
Software Development for Windows Vista Customizing work flow
Hi, I have a requirement where I should be able to define a workflow for approval process (ASP.NET). However, it should be possible to configure the workflow for different client needs. For example, my workflow has 10 steps. First client might go through all 10 steps of the workflow but the second client might not require a couple of steps inside that workflow. Is it possible to configure the workflow like that In that case, what kind of workflow should I define to cater this need Is it possible to configure the workflow steps on a parameter (e.g. per client) I don't want to define different workflows for different clients. Any he ...Show All
.NET Development Slow regexp for first time match
hello, I have an apllication that have about 3000 regexp compiled using the form regexp = new Regex (expression, RegexOptions .Compiled | RegexOptions .IgnoreCase | RegexOptions .CultureInvariant); when a try to match a string against the 3000 regexp for the first time it take about 2 minutes on a Big machine !! the second time the match goes faster and take only few milliseconds what is going on The first time you create the regular expression the expression is compiled, that takes a considerably huge amount of time. After that you got a compiled version of the regex, so the second executi ...Show All
.NET Development Taskbar resize notification
Hi All I have a windows Form based application which is developed using C#. My problem is, when my form is not maximized and the taskbar is dragged up, my form does not adjust its size automatically as other applications do. But if my form is maximized and I drag the taskbar, it resizes itself accordingly. My form has several panels inside it. Is there a way by which I can find out in my form if the taskbar has been resized. I have tried using SPI_GETDRAGFULLWINDOWS and SPI_GETWORKAREA to get the working area size and repaint my form in OnPaint override. But that does not seem the right way to do it. Is there a better wa ...Show All
Smart Device Development can VS2005 beta 2 work with SQL server 2000 to create mobile applciation?
Hi there, i would like to know can VS2005 beta 2 work with SQL server 2000 instead of SQL server 2005 CTP to create mobile application. Do SQL server 2000 support mobile server anyone can answer my question...thanks !! I mean connecting directly to the server. Just like how it is been done for windows applications. However as hard as I tried I can never do that. DOes that means it can only be done through data synchronization or RDA ...Show All
