laklive's Q&A profile
Windows Forms get rid of paint?
Hi I am trying to make linearGradient in a panel. I want to give the impression of the gradient moving across the panel. I'm trying to do this, by changing the X coordinate and redrawing the gradient after 70 ms. After 70 ms, I Invalidate the p ...Show All
Visual Studio Team System AvoidDuplicateAccelerators
Hello, I have a Windows forms and two buttons. The accelerator for button1 is &button1, and for button2 is &button2 The rule AvoidDuplicateAccelerators shouldnt permit two controls with the same accelerator, in this case letter "b" But fxcop is not reporting this. I am not sure if I understand wrong the rule or this is a bug in fxcop. thanks, Have you set Localizable to true on the Form This rule only fi ...Show All
SQL Server Log shipping best method?? How to initiate an existing plan?
My question is two fold. First, What is the best method for mirroring to a fail-over server Replication has limits on tables that do not have key fields, and I am finding that Log Shipping is harder to work with. I have set it up several times, and conducted tests with test databases, but when it fails, I get no indication as to why, and I also can find no way to re-initiate it (without deleting the maintenance p ...Show All
Smart Device Development File I/O
I'm trying to use file I/O functions to log debugging statements that I can view on the handheld. The code I got from msdn seems to do the trick except when I open the file on the handheld, PocketWord only displays the first character I write to the file. If I copy the file to the desktop, everything I wrote to the file appears as it should. My code for all of my file I/O is as follows: BOOL LogStartup ( void ) { HANDLE file; ...Show All
Windows Forms General container design questions
Hey folks, I have some general questions about container usage. I read through the FAQ but didn't see anything that really pertained to my situation. Say I'm building an application with a TreeView menu that will send the user to a different set of controls within a parent Panel with each click of the menu. What is the general protocol for handling controls in a parent panel like this I don't want to instantiate all of t ...Show All
Visual Basic Word in Visual Studio 2005
I have read that it is possible to create or to add a word document project using Visual Basic 2005. I am trying to add a word doc. to my vb.net application like: Dim appWord As Word.Application = New Word.Application That does not work. I think I need to import office library which I can not add it. Imports microsoft.office.word that does not work I think I am missing something. I have been reading from this ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Unmanaged directX and .net windows form
I have written (with a pointer from you lot here - thanks) a visualisation program in unmanaged C++ DirectX. Everything works fine, however I need to be able to change and edit parameters of the model with the usual text input boxes and track bar, as well as haveing a menu with different options. I have written a little windows form program that does this but wihout the directx stuff. I would like to add my DirectX work into a window in the f ...Show All
Visual Basic FIleOpen Dialog - fileopendialog.showdialog() - Change default view from List to Details
In my app a user can mouse to File Menu - Open. The fileopendialog.showdialog() has default view of ListView. The user is alway going to have to sort the file list by Date in descending order in order to open the most recent file stored in the network location. How can I make the FileOpenDialog display in Detail View by default and not List View. Thanks, MIke Code Sample dlgOpenFile.InitialDirectory = sDefaultDir dlgOpenFile.F ...Show All
Visual Studio Express Editions VWD requires SQL Server Express 2005 ?
Please correct me if I'm wrong, but it seems that VWD Express can connect to SQL Server Express, but not to SQL Server 2000 This is rather surprising, as I've always seen that new IDE products *expand* on the database providers available, not provide *less* connectivity. Going the other way, i.e., *requiring* SQL Server Express in order to connect to data, will make VWD's usefulness very low for many developers. Can anybody explain this to ...Show All
Windows Forms Export/Import Data
How do Export/import data from excel/word to SQL server 2000/or Access 2003 using VB.NET. HI Jebat, One way of transfering data from sql server to excel is to user the DTS. The following article explain it. http://support.microsoft.com/Default.aspx kbid=319951 Cheers, VJ ...Show All
Visual C# GetRows Method works in VB but not in C#
Can someone look at my code below and tell me what I'm doing wrong I converted VBScript to C# for ASP to ASP.NET migration. (I wasn't able to successfully convert legacy ADO to ADO.NET, so sticking with this) I'm getting an error at this line: cartValues = RS.GetRows(-1, null, null); Error Message: Exception Details: System.Runtime.InteropServices.COMException: Application uses a value of the wrong type for the current operation. C# ...Show All
Visual C++ Compiling x86 / x86-64 asm in VC++ projects
I have VS 2005, running on Windows XP x64 on an AMD64 3400+. I recently learned some assembly, and I'm wanting to use it in some of my programming projects. Obviously, i want to compile for the x64 if possible. I'm disappointed to find that Microsoft, for some reason, does not support the __asm keyword for x86-64. I found some tutorials on compiling and linking asm files for VS 2003, and I tried them out, but they don't work for me in VS20 ...Show All
.NET Development deleting control characters in string builder
hi! I have a simple string builder instance that read a xml entry from an rss file: StringBuilder strbld = new StringBuilder (reader.ReadString()); now if the string in the rss enclosure has some control characters like for example "\n", string builder will read this too. by the time I read the whole thing into the database I have strange characters there, the db seems not to understand these control characters. so, what I wan ...Show All
Visual Studio Tools for Office Modifying Infopath controls through scripting
Is it possible to highlight an infopath control, say a textbox, via scripting. I want to focus/highlight a textbox on an infopath form when something is clicked in my custom taskpane. How can I achieve this Thanks rahul Thank you very much for re-directing me to the correct group. Thanks rahul ...Show All
Windows Forms How to use BindingSource.Find method???
How to use BindingSource.Find method I want to use BindingSource.Find to find the data. I am working on a project where the DataSource has multiple tables. I want to find a record when the user selects a Company Name from a combo box. Using the combo box SelectedIndexChanged event, I was able to locate records by accessing the ColumnName property of the table that contains the information I want to find: D ...Show All
