Answer Questions
PankajGautam Check the distance between two objects using vector
Hi everyone, It's me again, Maria. I find this forum very good as I really get the neccessary information that I want, so once again, I came to write in and ask question :P I'm working on a game which n ...Show All
My Name is Adam Timer in a Panel
Dear Team How the timer can be displayed in a panel in a stausebar Thank you very much Mr Huyen Thank you very much for replying Kindely give me a little time to empliment it Dear Mr Holkema Thank you very much for replying i saw the code befor and it sounds good and i will examin it i thought that the timer will be m ...Show All
Sentinel3304 Data menu not available in web service
Hi I have a web service project, and want to connect to a DB, and return the data from the web service The problem is that the data menu is not available, i know i need to create a data provider, but i cant... what am i doing wrong Regards Greg Phillips I have exactly the same problem. It would be nice if someone from MS could confirm that either this is a bug or by design and if the latter the rationale for ...Show All
Aqeel Arshad Siddiqui How do I get the value that is in the {}
I have a combobox with its datasource bound to an enumeration. Now When I look at it the selecteditem and selected value are objects. I don't need the string I need intgere assignes to that string and it looks like this in the debugger value column under locals RED {1} BLUE {2} GREEN {3} So how do I get the integer. If I do X = comboBox.selectedValue.GethashCode it works but I don't know if that is the right way. Is there a way to ...Show All
Joe Malesich Counting Letters in a string
Hello, I am trying to get VB to count how many A's B's C's D's E's etc... that are in a declared string, can someone tell me how to do this. thanks Ray RFeather[AT][NOSPAM]chstaffing.com Will this also count the numbers in the string as well I noticed numbers in the string you provided.... Thanks Blair, Mabye it looks convoluted to you because ...Show All
DmitryYakimov How Do I Launch A Script From Inside VB App?
I have a VB App. After the App manipulates some files I want it to launch a .vbs script. How do I code for this and will the VB App pause until the script is done. The purpose of the script is to backup some databases from MSDE. Thanks Use the Process command... Dim myAPP as String = "Whatever.VBS" System.Diagnostics.Process.Start(myAPP) This assumes that you can double-click a VBS f ...Show All
Oren-a getting application data folder!!
i want to know if there is a api for getting application data folder in windows xp!! like getsystemdirectory or getcurrentdirectory n does the path like( c:\documents and settings\"username"\local setings\.. )does this type of path varies for different windows versions!!:) It seems that My .Computer.FileSystem.SpecialDirectories.AllUsersApplicationData is not working... : when you debug the application : everything is fine, but w ...Show All
SQL_Steve How execute javascript fiunction on HTML page, using WEBBrowser Control (VS2005)
I use new WEBBrowser control (VS2005) in my program (WinForm) for open web site. (VB2005) After using method "navigate", in webbrowser I have HTML page from some website. This HTML page has some input button with events "onclick(jsSomeFunction(someParam))". I can click with mouse on that button and this events working fine. My question: How I can capture this events (or execute jscript function - jsSomeFunction(someParam)) from my pro ...Show All
qnal Hide caret
How to hide the caret from text box using vb.net textbox1. ReadOnly = True Regards, -chris ...Show All
sjkowal 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
Surindra IsText
What imports. do you have to call to get istext to work Thanks, Newbiana The Microsoft.VisualBasic.Information class has several "Is" methods of which "IsText" is not one of them...You could use IsNumeric and expect false for text... The only "IsText" methods that I could locate are found in: Microsoft . Office . Interop . Excel I also located ...Show All
Basil Brunner Please, help to get accurate print spooler statistics in vbs.
Hello, I'm using WMI to get the stats, but the code below ignores copies, that is if print a 5 page gocument and select to print 3 copies I get it reported as total of 5 pages instead of 15. Can anyone suggest a way to fix it Any help is appreciated. Also can anybody suggest a way to catch whether a print job was a duplex or a single-side print. Below is the WMI I'm using in my vbs: Set objWMIServices = GetObject ("winmgmts:" &_ ...Show All
Cyberpunker Writing to a text file then changing it to read-only.
Hi. I'm pretty clearly a newbie here. I've just transitioned from 6.0 to .NET, so I'm a little bit lost. Can anyone tell me how I write to a text file in VB.NET In 6.0, I have this: Open "F:/users/alarsen/publicgames/text.txt" For Append As #1 Write #1, txt1.Text Write #1, Txt2.Text Close #1 lblanswer.Caption = Lst1.List(Int(Lst1.ListCount * Rnd)) How would I do the same in .NET For the second question, is there anyway to make it ...Show All
Daniel.K Capturing data from one form and entering it in a second form
hi guys, another dumb question :-) hate being new, but I'm getting better. I'll try to explain what I'm trying to do and hopefully one of you can help me. I have created two forms. (and a third coming) Both forms have a textbox which I want to have the NameContractGiver. I only want the end user to type the Name in the textbox once and then have it appear in the I have to do this with a few boxes so I need to undestand how it works. than ...Show All
sajithpt Keyword search or text extraction from PowerPoint Presentations
I am using vb.net in a web application to go through a list of ppt files I have created from the contents of a directory. My intention is to either: a) extract text from them so I can create a table of keywords that will later be used in keyword searches. b) if one exists, to use a builtin keyword search function. However, I am unable to find anything in the Office.Core namespace or in the PowerPoint namespace that look like a text search or rea ...Show All
