turtlebite's Q&A profile
Smart Device Development Dynamically display controls onto window with Scrolling Effects SmartPhone5.0
Hi , I Placed a ListBox control on a window dervied from CScrollView . I am unable to caputure the click on ListBox . i e selection of an item in the listbox. I need to scroll the listbox to left or right to the wnd on clicking of the right and left arrow keys. Pls send me code for this in VC++ 2005 using MFC. Regards Kactic Hi, I placed the listbox in a wizard generated SDI with scrollview, and was able to received the LBS_SELCHANGE message in the scrollview by specifying LBS_NOTIFY style in listbox creation process, i th ...Show All
Visual Studio Team System How to debug FxCop custom rules?
How to debug FxCop custom rules code Thanks in advance, Grace Excellent. My first try did not copy pdb file to FxCop.exe "Rules Directory" thus failed. After copied it, it works. ...Show All
.NET Development Getting a version of a file using managed code in .Net 1.1
Hi Is there a way in .Net 1.1 to get a version of a given file using managed code Thanks Rakesh. Hi Rakesh, Look at the System.Diagnostics.FileVersionInfo class: FileVersionInfo info = FileVersionInfo.GetVersionInfo("C:\myFile.exe") hope that helps, Imran. ...Show All
Visual Studio How to use Refactor.Rename in an Addin?
Is there any way to use the Refactor.Rename functionality in an Addin or Macro I can't find anything in the DTE model, and I can't seem to find any parameters documented to use it in an DTE.ExecuteCommand("Refactor.Rename"). The command IS in Tools/Options/Environment/Keyboard commands. Using the global Find/Replace or the TextSelection find and replace just won't cut it. I'm using VS 2005. Sean Craig, Thanks. I did find this eventually. It was exactly what I was looking for. Sean ...Show All
Windows Forms Single-click select for CheckBox column does not toggle back on
By advice from this comprehensive <a href="http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q945q">DataGrid FAQ</a> (question 5.76) I can get the DataGrid to toggle the check of the BoolColumn. Now, this column is binded to the corresponding boolean column of the underlying DataTable. This DataTable happens to have rows with the same part-number of an item and I'd like al ...Show All
Visual Basic mdi form problem
in form theres an event called closed or closing or something like that but i have a problem with MDI form! how can i write codes as i wrote into form's closed event md form doesnt have closed or closing event how can i show message before closing md form Thank u Override OnClosing - Public Class Form2 Protected Overrides Sub OnClosing( ByVal e As _ System.ComponentModel.CancelEventArgs) MessageBox.Show( "I am Closing!!!" ) MyBase .OnClosing(e) End Sub End Class ...Show All
.NET Development Disabling Command Window - System.Diagnostics.Process
Using the class System.Diagnostics.Process proc.StartInfo.CreateNoWindow = true ; proc is a process that runs a batch file. This "CreateNoWIndow" command DOES NOT actively disable the command shell window. Is it possible to run a batch file process in the background without having the Command Window from being displayed Using .NET, how can I run batch commands in a hidden mode without it reporting status or errors to the stdout or the command shell window Thanks! This worked for me: Dim proc As New Process proc.StartInfo.CreateNoWindow = True proc.St ...Show All
Visual Basic help control
i developed a small accounting applin in vb2005. now i want to provide context help to users of my appln, ie when user clicks on help ( ) button and clicks on any other control like menu or textbox, it should open a .chm file having detailed information about that control. how can i implement this Hi, Each control within your form has an event called HelpRequested . This event is triggered when you click on the "Help" icon from the caption box of your form (the cursor is changed in a question mark) and then you click on your control. Also please take care that the Help icon is ...Show All
Visual C++ Compiling DirectShow source code from MS Press: missing mmstream.h
I've VC6++ and VS8 installed on my PC for several Digital Vieo projects. I'm reading Programming Microsoft DirectSow for Digital Video and Television (by Mark Pesce; MS Press) and just want to compile the DSRender example in VS8 (sure I could do in VC6, but I want to start with VS8). The examples have been done for VC7. The comiplation error is: DSRender.h(22) : fatal error C1083: Cannot open include file: 'mmstream.h': No such file or directory So I searched for mmstream.h and found it in VC98\Include (in core VC6++) but not VS8 or SDKs... How can I compile such projects in VS8 ...Show All
Visual Studio Express Editions Retrieve data from Excel and store it in Access through VB
Hi, I am using VB express 2005 to create an interface to retrieve data from Excel spreadsheet then store it into my Access database. I am able to retrieve data and store it in a dataset then display it in a dataGridView. But I am not sure how can i store the data into an Access database. I tried to connect VB to Access by opening a connection and then create a table in Access. I created a DataGridView and bind it to this table. I can do normal insertion, deletion to the table. But when i change the content of the dataGridView to my spreadsheet by writing some code then do the normal save as usual, the content in the ...Show All
Visual Studio Team System TFS and windows workgroup - work items database problem
Hi, I have succesfully installed TFS on Server 2003. This is a small installation so I am using the TFS Workgroup Edition from MSDN and Windows Workgroups rather than AD. On the Server I installed Team Explorer and can create projects ok and see all items in the explorer. My problem is on the client. On the Client PC if I open up a team project created on the server using Team Explorer all folders under the team project have red crosses. I added the client workgroup user to the report server and to sharepoint, which removed the red crosses from the Documents and Reports folders but the Work items folder has a red cross next to it. Help! Wh ...Show All
Visual Basic Mixed data type in a Mulicolumn listbox
How do I store an object and the object.text in two separate columns in the same row of a listbox I want to make one listbox column visible and one hidden. Why do you need two columns then if you making one invisible. The following simply adds objects to a listbox. As long as you override the tostring property this is what will show in the listbox but underlying the item is the object which you can cast to and then use the properties as you would any object. So in this case I populate the list it shows 4 items. Then I click the button and it will display a messagebox of the age for the selected item. You never see the age fi ...Show All
Visual Studio Express Editions c# express download problem
Hello, I started dabbling in programming again and downloaded VB and C# express last November . A few weeks ago a dialog box popped up stating the trial period was over. I went back to Microsoft and read whatever I could to try and reload C# express but have not had any success. I used the auto erase procedure and checked the add/remove area in the control panel and found no mention of any relevent programs. The C# program downloads but when the setup utility begins it gets about 3/4 of the way through and freezes. I then downloaded the .net framework 2.0 with the same result i.e. setup freezes 3/4 of the way. I have a relatively new comp ...Show All
SQL Server Dynamic SQL in SSIS
Hi All, I am new to SSIS. I want to be able to write a dynamic SQL statement for a Data Flow task. It would go something like this. I want to schedule an SSIS package to run everynight and extract data from an ODBC source and collect the previous day's sales info based on a date parameter, so the date parameter of the query would have to get a value based on the previous day's date EX: SELECT * FROM Sales WHERE Invoice_Date = <previous day's date> So far I am looking at a Script Component to do this and populate the Data Source, but I just wanted to check and make sure there isn't a better or more efficient way. ...Show All
Visual Basic Validating within a User Class
I need to populate a container with an indeterminate number of label/textbox pairs for input. Since it is indeterminate at design time, I thought I'd create a user class with both a label and at text box in a pair so I could create them at run time and populate the labels appropriately from a data file. I need to validate each text box for numeric value. Then, I need to use that value to build up a subtotal on the form...sort of like this: Account Amount 1-1100 37.00 2-0000 90.00 .... Total 127.00 Can I code a validation event handler into the class at design time I know I can use the same handler for all the instances ...Show All
