Opher's Q&A profile
Windows Forms Listbox Select error
I have a listbox with multiselect=true, and 22 items in the box. If I click item 1 and shift Click item 22 then all are selected and blue'd in the listbox. When I check on the selecteditems.count there are only 2 selected - 1 and 22. If I select them all using cntl click then all can be processed. What am I doing wrong Hello Price, Try with this..... private void button1_Click(object sender, System.EventArgs e) {   ...Show All
Visual C# How to add panel to a StatusStrip
Hi, I am using Visual C# 2005 Express. May I know how to add panel to a StatusStrip I can't see an option to set StatusStripPanel when I drag the StatusStrip Control to my form. Please help. Thanks StatusStrip .Items.Add( ToolStripItem value); or StatusStrip .Items.Add( string text); You can add ToolStripStatusLabels in the designer by clicking on the Items->collection button. ...Show All
Visual Basic Clicking my MaskedEdit control places the cursor in the middle of it rather that at the start position (position 0)
I have a MaskedEdit control in my form. When I click once on it, my cursor goes to the middle of my text that has been already enetered before. This is what I want when I click the control: 1/ How to place my cursor all the time at the begining (position 0 of the text or the control) istead of the middle 2/ In some specefic cases, I ll need the whole text to be selected when I click the control, so that if the user wants to ...Show All
Visual Studio Tools for Office Template.Save() changes the behaviour of its load
Hi All, I'm installing a custom template and adding my toolbar to it. I'm doing this to make sure that upon uninstallation the toolbar goes away. This works fine. No issues. I've to load this template only to selected documents. This also happens fine as I set the CustomizationContext based on my conditions. First time the document is opened the toolbar comes as floating. Now if the user moves the toolbar, say next to the standard toolbar ...Show All
Visual Studio Express Editions Ebook
The email I received as a confirmation of registration said that I would be able to download an ebook on how to use Visual Basic 2005 Express Edition at benifits portal. But when I entered the portal all I found was a link for images. No ebook was found. Where can I find the book, or any other ebook or pdf which can teach me how to use VB 2005 Express Edition On the downloads page you have a category filter. It ...Show All
Visual C++ Linking to WinSock
I'm creating a class library (VS 2005 B2) that is depending on Winsock. So I include winsock2.h in my stdafx.h and compile. The linker spits out error 2026 which lead me to believe it can't find the lib file. I look under Tools->Options....Directories to see if the path to the lib file is included under the LIB section. It is. I dig around for another hour or so (because I'm not so bright) and finally stumble upon Project Properties->Li ...Show All
Windows Forms Open MDI child from another MDI child
Hi, I am trying to open a MDI child in a MDI parent, but from another MDI child, and I just can't find a way to do it. If you could help me, I would apreciate. Thanks in advance. PS: I am using VB.Net ...Show All
.NET Development Recursive searches with Regex Class.
Hi! How can I do recursive searches with the Regex class. I know the Sample with the matching Parantheses ()*, but I need it with BEGIN/END blocks e.g. some text begin more text begin even more text end end second part begin text end So the expression should match the outermost begin/end blocks. How can this be done *) \(   ...Show All
.NET Development 'Root element is missing' on XMLDataDocument.Load
I'm trying to append a dataset's xml to an existing xml file that was created from the first encounter with the dataset. The application is an online scholarship application form. It needs to collect student data into a single file for downloading at the end of the day. I've been beating my head against this simple problem for several days now and am out of ideas. _ds as DataSet comes from the web form. Here is the extremely simpl ...Show All
.NET Development creating web crawler and search engine
i am trying to develop a web based search engine and web crawler so i need help from all the experts out there. i would like to use SQL Server 2005 as by data backend. please help me and point me valuable resources and provide some insight to this difficult endeavour. i didn't ask whether god exists or not. this is a technical forum and anyone can ask technical questions. if you donot have answers to the questions; don't even bother looking ...Show All
Visual Basic VB.Net help - Various Issues
In our point of sale system, we can export various reports as a csv file. The problem is that when we open them in Excel, some of the fields (which contain a number 20 digits long) show incorrectly as Excel can only recognize 15 unique digits and changes the last 5 to zero's. I have written a VB program that will allow the user to open teh csv file in a datagrid, adn the numbers show up correct. Now I am having a problem figuring ...Show All
Windows Forms How to apply an accelerator key to a button in VBNet 3.0
I want a quickie control key to kick off the same code as a button, e.g. Control S will function the same as the Save button. Was easy in VB 6.0 but can not see how to do it on VB Net3.0 have you tried events like this Sub Save ( ByVal sender As System.Object, ByVal e As System.EventArgs) handles Savebutton.click,Control_s.click 'put save code here end sub Remco Edit: o wait...... i didn't read your pos ...Show All
Visual Studio Team System TFS says KB913393 is not installed when it is
Hi, I am trying to install TFS on a single server running Windows 2003 R2. Setup reports that ASP.NET 2.0 QFE KB913393 needs to be installed. However, I have now installed KB913393 several times and it doesn't appear to make any difference. When I run the KB913393 setup I see a message asking if I want to install the Hotfix. I then see a Licence Agreement screen followed by a progress bar as something is installed. However, I don't see any ...Show All
Microsoft ISV Community Center Forums Help Required
I have created a Workspace so that I can open up and go to the sections I require with just one click. I am currently using a lot of spreadsheets so the reason for a workspace. The reason for my post, during the course of my work, I need to run tests on new chassis's from our supplier. I need to save these reports and view them if need be. Can someone tell me how to code a command button if the file is saved in notepad (*.txt) ...Show All
Windows Forms Top-level forms
My project uses two forms: the first form (frmLoading) appears at the starting of the program. Then I need to close "frmLoading" and to show "frmMain". I use this code to show "frmMain". frmMain* frm = new frmMain(); frm->Show(); And to close "ftmLoading" I use: this ->Close(); But when frmLoading closes, frmMain closes too. And I want to forbade the closing of frmMain, when I close frmLoading. How can I realise it ...Show All
