lantern's Q&A profile
Windows Forms Tale of Woe - Convert KeyCode to Char - Please Help
Hi, I have been trying to create a combo box that does autocomplete (a bit like in the address bar in IE) but I would like to be able to make it so that if I set a flag it will only allow the user to enter values that are in the list. In this case I would like to be able to intercept a key stroke and kill it  ...Show All
Windows Forms Standard to Professional upgrade
I have VB.Net standard I have recently discovered that in order to do what I need to I need Professional. Does anyone know if it is possible to upgrade just to VB.NET Pro or if I must get Visual Studio If so how and can any of these upgrades take VB.NET 2002 standard and upgrade it to Pro 2003 Well thanks for yo ...Show All
Visual C++ XML Documentation Comments
In new development I've selected to use .NET 2005 and of its features the one leveraged most in moving old code is the XML Commenting from which I hope to product documentation. I've found a problem on the C++/CLI side that I hope someone can help with -- whenever I have a method with a parameter such as array<char> ^ the documenting for that method does not display in Object Browser. As an example of this problem add the following declarations then compile a .NET Class Library -- add the Class Library as a reference in a C# project and browse in Object Browser. The top method will display correctly while the bottom w ...Show All
Windows Forms Viewing a word doc within a Windows Forms Application
I would like to display a word document within my windows form application. Currently I am using the IE activeX control and passing it the word doc location. There must be a more elegant solution. This is something that will be added in 2.0: http://www.windowsforms.net/WhidbeyFeatures/default.aspx PageID=2&ItemID=12&Cat=Controls&tabindex=4 ...Show All
Windows Forms Listview Add Item
I am trying to find the best approach to add 2000+ items to a listbox. Is it possible to load say....the items in "chunks" ex) load the first 200 items onto the listview and display them. so right now the first 200 should be on the screen (but the user thinks there is 2000+ because he can't scroll down that fast) but you ke ...Show All
Game Technologies: DirectX, XNA, XACT, etc. how to define the vertical position of an object by using a pair of earphone?
I wish to write an accessible game for blind people, i got a problem, that is how to use the sound to represent object at the vertical position, how to define the vertical position of an object by using a pair of earphone Look into the 3D sound capabilities of the DirectSound API. However, I'm concerned that it'd be very difficult if not impossible to create the impression of sounds being above/below the listener when all you have are speakers to the left and right of them. There may be a solution using the head-related transfer function... If you could change your design to have objects vary in position horizontally instead of vertica ...Show All
Visual C++ How to learn DirectX
Hello, How are you every body I want to learn programming games with directx but I don't know how, I saw some codes in some site but I don't know where to write them I can programme with C++ but I prefered C# I can also design scenes using 3D studio Max so I wish you tell me how to start learning. or can I write the codes in the C++ editor, if so what is the libraries I need to have and how to get them Thank you very much You can send me an email on mohd1024@yahoo.com mohd1024@hotmail.com Hello Mohammed, As a forum for questions about the upcoming release of Visual C++ 2005, we're not able to directly answer your question. I'd s ...Show All
Smart Device Development Parallel Port interface in windows CE
Hi, I am new to windows CE. I would like to know any solution on Parallel Port interfacing in windows CE I am using eVC++ to develop my application which sent information to a 4x20 Character LCD display. However, I discover that the eVC++ not include with <conio.h>,therefore I could not use the method _outp. What should I do in this case On the other hands, according to other articles, it needs a dll to drive parallel port in win32 platform. However, such dll are not suitable on windows CE. should I custom make a dll to drive parallel port in windows CE Thank you for your help. Hi Andre This file should be part of the ...Show All
Windows Forms ArgumentException in DrawString
I have some code which worked fine in framework 1.1 but is giving me an ArgumentException in 2.0. The code follows: using ( Font fntDraw = new Font ( "Arial" , 16, FontStyle .Regular)) { Rectangle rcLayout = new Rectangle (0, 0, _cpixCell, _cpixCell); StringFormat sfmt = new StringFormat (); sfmt.Alignment = StringAlignment .Center; sfmt.LineAlignment = StringAlignment .Center; g.DrawString( "F" , fntDraw, br, rcLayout, sfmt); } The DrawString call generates the exception. I can draw pretty much anything else into this Gra ...Show All
Windows Forms How do I get clients machine to automatically register .application file type?
Hi I have recently upgraded my program to use the new features of VB 2005 and Dot Net Framework 2.0. I have set my server up according with the .application file type and so I do not get the xml page showing when I click the install button anymore. However I gave the link to a friend and when they click on the install button they are asked if they wish to download myprogram.application, they have selected yes and tried to run the program and got the choose program to open with, selected the default application program and it fails because its trying to install from the hdd and not from the web. I had to add the .application file ...Show All
Visual Studio Express Editions information not found in MSDN Library
When going threw the MSDN help, I run into areas where I get information not found. I've done all the suggestions and posting here is proof my connection is ok. And example of my problem is a page located at Visual basic guided tour - Intro to VB programming language - - Represent words, numbers, values, variables - - - Closer Look: Data Types. A link on this page labled Numeric Data Types takes me to the error page. There are also some more error pages further down the line. Most of the guided tour works fine though. I even tried to have it search online first and still had the problem. The setting is now back to search local ...Show All
Visual C++ Thread again!
I changed my code. to this and it's work properly . but I can't to add " str " to a listobx. what should I do void CThreadTestDlg::OnRunThread() { BOOL T=TRUE; Suspend(T); } UINT CThreadTestDlg::ThreadSimple(LPVOID pParam) { CWnd *pWnd=new CThreadTestDlg; CTest *pTest=(CTest*)pParam; BOOL b=pTest->SetTrue(); while(b) { CString str =pTest->RandString (); pWnd->MessageBox ( str ); ///----m_listbox.AddString(str)----------------error. /// CListBox m_listbox is bublic member in CThreadTestDlg } return 0; } void CThreadTestDlg::Suspend(BOOL bSus) { if(!bSus) { if(m_pThread) { HANDLE hThread ...Show All
Visual Studio Express Editions Free Ebooks
hello hwo can i get a free ebook from microsoft When yo register the express products you wil et an email that will have details to connect to the registration benifits. ...Show All
Visual Basic Writing to an excel sheet
Hey guys, I'm trying to write to an excel file from my program. I have a button and a text box. this is what I have in my button_click event. Dim G4 As Object wb = dlj.Workbooks.Open( "tx plan templates.xls" ) wb.Application.Range(G4).Value = txtName.Text dlj.Visible = True If I remove the middle code, the sheet opens up fine. I'm just trying to write to a specific cell in the excell sheet. Here is some code which will do what you want - instead of opening an existing excel file - I'm creating one. And then at the end I'm saving it and closing the workbook. This should get you going.... Di ...Show All
Visual Studio 2008 (Pre-release) Parser Error Message: The unknown directive 'Service' is specified
Hi I am new to WCF and I am trying to get a simple sample working. I compiled the code in the command line as I kept getting all sorts of errors when opening VS2005. Anyway it compiled ok but when I go to run the service in the browser I get this following error Parser Error Message: The unknown directive 'Service' is specified. my service file contains. <%@ Service language=c# Debug="true" class="TemperatureService"%> I would really appreciate any help on this as I have been at this for hours on end and seem to be getting no where. Thanks Lisa The biggest cha ...Show All
