msauper's Q&A profile
Windows Forms VB2005 - Listview Column Sort
I'm having a problem that is cited fairly commonly on the net. I've tried various solutions and all of them have the same problem. I'm trying to do a column sort. String variables sort nicely. However variables that are integer variables don't sort at all. The order is very messed up. There is some sorting but not based in the full magnitude of the sorted integers. Can anyone help me with this. I've tried several ways of doing this, beginning with MSDN examples and they all have the same failing. Hello, plz could you tell me how can i get the selected item in a listview (multiselect disabled) i wanna use it on an other form (form2)... ...Show All
Visual Basic month difference
hi, how can i get the month difference between 2 variables of DateTime type and - is it possible to know how many days are in a specific month if yes, how thanks in advanced I'm not sure if there's any existing function that does what you want, but I think that this will do it . . . Code Block Module Module1 Sub Main() Console.WriteLine(FinancialDateDiff(#12/23/2008#, #12/23/2007#)) Console.WriteLine(FinancialDateDiff(#12/23/2007#, #12/23/2008#)) Console.WriteLine(FinancialDateDiff(#12/23/2008#, #12/24/2007#)) Console.WriteLine(FinancialDateDiff(#12/23/2007#, # ...Show All
SQL Server System.Transactions / SqlClient bug?
Hi, I've been doing some work with nested TransactionScope classes and timeouts and I'm getting some strange results that I can't quite explain. I'm hoping that I've done something foolish in my code, since that will be by far the easiest fix :) The scenario is that I have a stored procedure that may block indefinately (arguably not great, but it's outside of my control) - in the example below, it does a simple "waitfor" to pause for 3 seconds. There is a intermediate data layer between my application code and the database that wraps all database calls in a TransactionScope (essentially the ExecCommand method in the exampl ...Show All
Software Development for Windows Vista Developing a Distributed Workflow
Hi group members Hope u be doing gr8 with WWF , well did any body try a distibuted (but tightly coupled , as the complete objects/context may also be needed to be passed) Work Flow in WWF . Like couple of activities run on Machine A then Other on Machine B (see figure below ) Machine A Machine B Machine C Acttivity 1   ...Show All
Windows Forms Simple Unistall Question
I have created a configuration file in the Application Folder of my project after the installation. Since this file was not part of the installation, it is not removed when I unistall my product. How do I write a custom action to do this I haven't been able to find a good example when looking through the threads... Thanks! You could do this by adding a row to the RemoveFile table of your msi, with the InstallMOde column set to 2 (msidbRemoveFileInstallModeOnRemove). See http://msdn.microsoft.com/library/en-us/msi/setup/removefile_table.asp ...Show All
Windows Forms Winform standards for UI Design? Help.
Hi there - we are doing the switch from ASP.NET to Winform/Smart Client development. The main thing we are struggling with is the proper ways to design the user interface...i.e. standards for design, layout, etc. Can anyone help with this....I know that 2.0 will have some new design features, but we want best practices - guidelines. Thank you Kelley Bryant Is there a similar article, but for Web Applications I need a good UI guidelines article. Thanks for your time! ...Show All
Visual Studio Express Editions Colomnwidth in DataGridView
Hi, In a DataGridView I have set the DataGridViewAutoColumnMode to AllCells, which works fine. But I want the possibility to change the columnwidth once the program runs, after the data have been loaded. I can't get this done. The width of the columns are locked and cannot be changed by using the mouse. I set the DataGridView.AutoSize to False (after loading the data), but that did not work. I set the DataGridView.AutoSizeColumnsMode to None (after loading the data). The last thing I tried was to set the DataGridView.AllowUserToResizeColumns to True, but none of these things were te correct way to get what I want. Can somone help me what ...Show All
Visual Studio 2008 (Pre-release) Is there a way to specify the Z-order of an element in XAML???
Hi All, I would like to design a button with two rectangles in it. Around theese two rectangles a would like to have a border with rounded edges. The problem no is that if I do it like to code below, I will see the edges of the rectangles and not the rounded edges of the border. Do anyone have an idea to fix this problem Thx!! < Border BorderBrush = " {StaticResource bordercolor} " BorderThickness = " 1 " CornerRadius = " 5 " > < DockPanel LastChildFill = " True " > < Grid Width = " 20 " DockPanel.Dock = " Left " > < R ...Show All
Visual Studio Express Editions one file editor
Recently, I installed Visual 2005 express, after migrating from VC++ Pro 6. for some strange reason, I can only open and edit one file at a time in the IDE, regardless of my settings (tabbed document or multiple documents). am I missing something Why can't I edit more than one file at a time Please help, Sincerely, z. z e n wrote: Recently, I installed Visual 2005 express, after migrating from VC++ Pro 6. for some strange reason, I can only open and edit one file at a time in the IDE, regardless of my settings (tabbed document or multiple documents). am I missing something Why can't ...Show All
.NET Development how to use \r,\n in the xml
hi , I am having problem when i am specifying \n,\r in the xml file. I am getting \\r,\\n value in the c# .how to specify to get exact value of \n,\r in the xml. pls anybody know for this solution pls reply me asap. thanks rajan It's not clear from your question do you want string '\n' or character "new line" (ASCII code 10). For XML \ doesn't have any special meaning and \n in text and attributes values is exactly '\n' not a “new line”. To insert character with code 10 you can use numeric entity - &10; XML processor should/may "normalize” white spaces in attribu ...Show All
Visual C++ Interop with Struct
If I have following class in C++. How should I declare the unmanaged code in C# typedef void * MQISDPCH; /* Connection Handle */ /* Information required for MQIsdp server connection */ typedef struct struct_SVRS { long portNumber; char ipAddress[MQISDP_INET_ADDR_LENGTH]; } MQISDP_SVR; /* Connect parameters - fixed length portion*/ typedef struct struct_CP { long version; long strucLength; /* Fixed length plus variable portion length */ char clientId[MQISDP_CLIENT_ID_LENGTH + 1]; long retryCount; long retryInterval; /* seconds */ unsigned short options; /* WILL flag, WILL retain, WILL QoS and Clean Start ...Show All
Windows Forms DataGridView and Heterogenous cell types
Hi all, On the smart client developer center i read the following http://msdn.microsoft.com/smartclient/understanding/windowsforms/2.0/features/datagridview.aspx The DataGridView comes with TextBox, Image, CheckBox, ComboBox, Link, and Button column and cell types. Addition cell or column types can be easily implemented to extend your application. Columns and rows both support heterogeneous cell types. For example, you can have column of check box cells and have other cell types, like a button, in the same column Since this is exactly what I needed, I started searching for documentation and examples. Perhaps i did something wro ...Show All
Windows Forms Programming DirectShow in Windows Forms
Hey. Does anyone know of a simple example of DirectShow usage with Windows Forms What I want to do is just get a simple example of a file playing in a picture control or something to that effect. Or if not... can anyone attepmt to teach me or whip up a quick example Thank you very much, Eric Peterson http://nbss.hopto.org ...Show All
Software Development for Windows Vista ICredentialProvider
Did anybody make a successful user logon using the new ICredentialProvider interface My credentials are displayed, but I can't make them to logon. And what worse - after 20 or 30 seconds, the winlogon crashes completely with no recovery possible excepting hardware reset. I thought I basically did something wrong and decided to wait for more detailed documentation or some sample code. But MS doesn't seem to put too much effort on improving their SDK documentation and I also found that at least one other programmer has the same problem: http://msdn.microsoft.com/newsgroups/default.aspx query=vista&dg=microsoft. ...Show All
.NET Development Relational DataSet Filtering
Hello, I have a web service that is called and returns a relational dataset. The dataset contains three data tables. Test (the parent table), TestDetails ( child of Test), and TestInfo (also child of Test). Once the dataset is returned I am trying to find the best way to filter the dataset. I have tried using a DataViewManager but it never seems to preserve the RowFilter I apply. Can anyone help with this one Thanks, Trey hey, same problem to me. 2 tables, Part and PartInventory, wanting an Right Join with results. Only thing I've found yet is ...Show All
