Answer Questions
Jokeje Best way to make frequently used functions available to all apps?
I have written several functions in VB.Net that I reuse again and again. Other than importing modules, copying and pasting, etc. does Visual Studio have some sort of tool that I don't know about to make these readily available to any new apps Thanks, Dave Hi, You could try compiling your functions into a Library (dll) and just reference it to your new project... cheers, Paul June A. Dom ...Show All
liber Iterate through querytables
I'm trying to iterate backward through a set of querytables (to cause a refresh). The following code causes a compile error, "Invalid use of property", at the "qt=Ac.." statement (4th line). How should I being making the reference instead (VB/VS 2003) Dim qn As Integer ' Counter for loop Dim qc As Integer ' Count of query tables Dim qt As QueryTables ' The collection of query tables qt = ActiveWorkbook.Workshee ...Show All
Piotr Trochimiuk making a .txt
When i click button_1, what code can i put in so it makes a .txt file thats called whatever is in textbox1 could someone help Try something like this Private Sub Button1_Click( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles Button1.Click Dim sw As New System.IO.StreamWriter("C:\test.txt") sw.Write(T ...Show All
Gerald Beuchelt Help: Visual basic program
Hi i am making a program with a listbox named (lst) and picturebox named (pic) and i put the following code into the listbox selectedindexchanged sub so as the user clicks on the picture name from the listbox it displays in the picturebox Note: the listbox contains the paths of the images as there is openfiledialog in the program Private Sub lst_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles lst.SelectedI ...Show All
Bingqiang Tabbed Browsing in VB .Net
Hi, I have a question regarding tabbed browsing. I am writing my own custom web browser in vb .net studio 2005. I can create, dynamically at runtime, additonal tabs on a tab control, which will - in each - have a dedicated webbrowser control. So what will happen is 5 search engines will be searched and the results be placed in seperate webbrowsers under 5 dynamically-created tabs. The user can then tab throw each set of results. The pro ...Show All
cssrk How to I add the hex value "1A" to a string
I have an export format that requires the file to end with this 1A value. In notepad it looks like a rectangle on end but a hex editor show it as 1A. Thanks Dim a As String = Chr(&H1A) There are things to be aware of, however. I think you want to be aware of whether your strings are unicode or UTF8 and what is required. A unicode value will be x001A. You will want to do something else if you want a by ...Show All
Joginder S Nahil Datetime.op_GreaterThan vs hours in date
Hi, very simple question: Have 2 date fields: me.futureDate = #05/30/06 07:30AM# and date.today #05/30/06#. Both dates are today, so to me this is the same, but when I try this line: DateTime.op_GreaterThan( Me .FutureDate, Date .Today), the result is true I think this has to do with the 7:30 AM with is more than the current date. When I try this we end up in the else clause: if Date.Today > Date.Today then 'here ...Show All
Morteza Hashemi Determine TopMost Window on the Desktop
Hi All, I have a tricky one (well, tricky for me) that I am having trouble finding a solution for. Here is the problem; I have a Form that is open and a Notify Icon. I want to be able to click the icon and have one of two things occur depending on the current state of the form. If the form is the Top Most (i.e. on top of all other normalised or maximised Windows) I want to hide the form. If the form is NOT the Top Most (i.e. behind a ...Show All
Chrischik use vs2005 to add hyperlink format to word document
My program takes a user input name and address info, exports it to rtf, and uses the rtf file to later add a signature to an outgoing email. Problem: the email address needs to export from vb to the rtf as a hyperlink. I can get it to appear as a hyperlink within a vb richtextbox, but it appears as plaintext after exported to the rtf file, not as hyperlink like it should. the other text all formats correctly. thanks for any help offered. ...Show All
William Bartholomew text formating
Hi, i would like to ask whether can i format the text in textbox in such a way that whenever there is a bullet, it will display it in a newline. the textbox data is retrieve from a database in the same column. Something like this... I haven't tested it so it'll need some tweaking. And you'll need to find the char code for a bullet. dim start as integer = 0 do while txtTextbox.text.indexof("bulletchar", start) >-1 ...Show All
mpco ActiveX Web Browser - Is this possible?
I was wondering if someone could tell me if the following is possible, and perhaps set me on the right track: Create an ActiveX Web Browser on a form, navigate to a certain page, programatically click links on said page, programatically manipulate a drop-down box on the page, programatically click a button on the page, capture the pop-up web browser which comes up and parse the data from that browser. I would be most grateful for any help I mi ...Show All
Nathan Anderson About foreign characters
I am reading characters from a file (file paths) into my visual basic program. My system (XP) understands the characters but when brought into .net, they are ignored and i get the following message "could not find a part of the path." These characters are Swedish. Is there anyway read these characters. The problem is the encoding I'm not sure how your reading the text from the file. If your reading ...Show All
phpcs Line numbers in stack traces
Hi there! Quite new to VB and .NET, just wondering where the line numbers have gone off of the stack traces See i'm quite used to Java, and I find it really easy to just fix a bug as i can see exactly where in my code the error has happened, java will say "yep, this method, line 12, you spelt the variable wrong" - you get the idea. With VB and .NET i've got this: System.Collections.Generic.KeyNotFoundException: The given ke ...Show All
JenLeonard A more efficient Loop
Hello again! This time I came across a situation where I had to write a loop for a part of the program I have 10 numericupdown boxes Each one is different from each other set from 1 to 10 value I want to be able to set a different value for each box (between 1 and 10) and have it check to see if any of the numericupdown boxes have a matching or duplicate number selected in it. I wrote a loop that works, but I feel its not an e ...Show All
Kimber20 Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period ...Show All
