AlistairSKing's Q&A profile
Visual Studio Parts and States documentation seems wrong
The Parts and States documentation lists parts like WP_SMALLMAXBUTTON and WP_SMALLRESTOREBUTTON but they are not defined in tmschema.h (or any other header) in any publicly available Platform SDK release. And so it is. Probably some values that were present during a beta that were subsequently removed but missed for the docs. That particular doc is about to be refreshed, so we'll verify all of the current content while adding new. ...Show All
Windows Forms obtain dataGridViewComboBoxColumn selectedItem
OK. This combobox in datagridview is driving me batty. How does one grab the final selected item from the dataGridViewComboBoxColumn I saw one post where someone mentioned that you can do a cast to a editingcontrol and that would give you the selectedindex changed event. Any help is appreciated. cheers Boon Private Sub dgv_EditingControlShowing(...) Handles dgv.EditingControlShowing If e.Control.GetType() Is GetType (DataGridViewComboBoxEditingControl) Then Dim cbo As ComboBox = e.Control RemoveHandler cbo.SelectionChangeCommitted, AddressOf cboOnSelectionChangeCommitted AddHandler cbo.SelectionChangeCommitted, AddressOf cboOnSelectionChan ...Show All
Visual Basic How to add Icon to class library using VS2005 IDE
Hello All developer Who can tell me how to add an Icon to Class library project using Visual Studio 2005 IDE. On the property page at the application Tab the combo box where we can select the associate icon is disable when the project type is library class. Is there any way to enable it ,or we should programmatically code to add the Icon to the developed DLL. Regards In addition, if you want the icon to be compiled into your assembly, as opposed to having to be shipped separately, make sure it is an embedded resource. After doing as Dman1 says, then find the icon in solution explorer, hit F4 and set the 'Compile' option to 'Embedded Resource'. ...Show All
Visual Studio Problem using SandCastle with ASP.NET 2.0 WebSite
Hello, I have all the pre-compiled dlls of the asp.net 2.0 application, I trying to use Eric Woodruff's sandcastle GUI While building the build fails asking for System.Configuration unresolved assembly reference: System.Configuration (System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) required by App_WebReferences BUILD FAILED: Unexpected error in last build step. See output above for details. Does it necessary that i should include all the namepaces used to build documentation for a project. Can anyone point me who to use sandcastle with asp.net web applications. thanks!! sqlnew Hello I found out that I was not building XML co ...Show All
Windows Forms Trojan Horse the info to the event
assume that I want to create 100 buttons layed out in a table of 10x10. When any of them is clicked, I want to know which button was clicked (in which row and column). If I use the same event handler for all the buttons, how can I know which one was clicked I do have a "sender" parameter, but this doesn't help me understand which button (which row/column) was clicked. What is the best solution for this Hi yaron-ct, If you feel the issue is resolved to your liking...mark the post as the answer so when others search the forums, they might be more inclined to look at a successful post than a non successful one... in the search results the Answered posts are bubbled to the top before the unanswered . ...Show All
Gadgets Sidebar Windows Mail App
I want to develop s simple gadget that checks for mail on my Windows Mail client in Vista. How do I go about checking for new mail programaticly. Yeah I am curious too... I mean I wonder why not such gadget already exist to access the Windows Mail. Or maybe just an easy gadget which checks mail accounts peridocally (any mail account!) and notifies you about new emails. Any info on this Kind regards, LD ...Show All
Visual Studio Express Editions difficult - Keyboard hook
Hi, I need to do the following: A barcode scanner is connected to the PS/2 input using a split cable (so, both the keyboard and the barcode scanner are connected to the same PS/2 port). The barcode scanner uses "keyboard simulation" to send it's code to the currently active application. If you open a texteditor and you scan a barcode, the number is send to the page. You can add a "prefix" to the barcodescanner of maximum 10 keycodes or characters (like A, #, NULL, SOH STX ETX EOT ENQ ACK BEL etc...) I want to use the barodescanner on the background, so I was planning to use a system wide keyboard hook which detects if there was a NULL-NULL send to the PS/2 input, and in this case takes the 13 following charact ...Show All
Visual Studio Team System "Either source control has not been configured for this team project or you do not have permission to access it"
Double-clicking "Source Control" for ProjectA pops up the following messagebox: --------------------------- Microsoft Visual Studio --------------------------- Configure Source Control Either source control has not been configured for this team project or you do not have permission to access it. Would you like to create the source control folder, $/ProjectA --------------------------- Yes No Help --------------------------- I have checked the stored procedure: exec prc_QueryItems @targetServerItem=N'$\*\',@version=1110,@deletionId=0,@depth=1,@deleted=0,@itemType=1 And indeed it does not return any row so this might explain the messagebox stating that no source control has been configured. When I click Yes ...Show All
Visual Basic BackgroundWorker
I have a Form application that: a) launches a file select dialog and then b) starts a backgroundWorker thread to do some preliminary processing with the file selected above (this thread updates a status strip progress bar on the main form) I have placed both a) and b) in the main form constructor in order to avoid having a separate control to initiate b). These things are required before anything else is done. The trouble is, the form will not finish painting itself until the background thread returns. Is there some kind of "form done" event that I can use to launch the background thread Or perhaps an altogether different approach would make more sense ...Show All
.NET Development FileStream running slow in Window's forms but not in a windows service
Hi, I'm runnning the same piece of FileStream code (see below) in a simple windows form and in a service but the code in the windows form is running 50 odd seconds slower (7 seconds in the service, 59 seconds in the form) . The file that i'm running the test on has a size of '1.56 MB (1,641,874 bytes)'. using (FileStream s = new FileStream(@"c:\ss.drs", FileMode.Open, FileAccess.Read)) { DateTime start = DateTime.Now; while (s.Position != s.Length) { s.ReadByte(); } TimeSpan ts = DateTime.Now - start; Debug.WriteLine(ts.ToString()); } Any ideas anyone Thanks in advance JK Like Lucian suggested, it could be cache. The ...Show All
Visual C++ How can I get the ProgID of a COM dll if I did not have the source code of the COM ?
How can I get the ProgID of a COM dll if I did not have the source code of the COM I appreciate your help. Hello Jake Re: How can I get the ProgID of a COM dll if I did not have the source code of the COM Please take the time to read the scope of this Forum and post your questions to the right Forum/newsgroup: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups , such as the COM newsgroup http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.ole&lang=en&cr=US . Please stop posting questions outside the scope of this Forum. ...Show All
Windows Forms Windows installer problem
Hello! I install my aplication as administrator and I choose "Everyone" during installation. I install it in c:\Program Files\myApp. When I try to run this aplication as ordinary user then it appeared error message that access to the path c:\Program Files\myApp\somefile is denied. It is caused because I try modify config file which is created automatically by exe file (and it is placed in Program Files where ordinary user doesn't have permission to modify any files). How can I solve this problem Thanks for help. Sebastian If users (or the application running in user context) needs to write to this file you shouldn't put it in the Program Files Folder in the first place. If you really ...Show All
Windows Forms Stop Cut/Copy in Text Box
In my application I have a text box to store & display password data. Now i want to stop cut or copy that data from that textbox. How can I stop cut/copy of data from that textbox if the text box is to enter password entry then set it's PasswordChar property to any masked character (like *). and by default you can not cut and copy from this text box. ...Show All
Visual C# DataTable + delete selected Rows
Hi I have a data table , which gets populated at the end of a certain transaction with say 30 Rows. Now depending upon the condition the user selects, i wanted to delete certain rows as given below.But the thing here happening is, first time the fifth row gets deleted,the row count is getting changed in the table to 29, which is playing the trick here as we can see that when next delete statement isencountered, there is no row with index 29 which is throwing an error and some times the row which i want to delete is not getting deleted, instead another row with altered index is getting deleted.How can we have a workaround for this situation My intention is just to delete the rows at the specified index from the original output ...Show All
Visual Basic nextinstance
hi, i wrote a single instance application - a pic viewer. if i double click on an picture file it opens up my app with that file. now if my program is runnin and i open up one more pic i'd like my program change the shown pic to the new - i know i have to write this in the application events, the StartupNextInstance event but don't know how to get the path of the second pic. any idea thnx CommandLine is empty for a clickonce application. When opening the application I can check do this If My.Application.IsNetworkDeployed Then 'Get URI deployed from Dim zUri As New Uri(My.Application.Deployment.ActivationUri.AbsoluteUri) 'Get query string (clear the ) zstrQuery = zUri.Query.Replace(&quo ...Show All
