Please don't shout. Why are you using VB6 ? It's a dead language.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
I liked that kids 'ghost writer' idea. He might of been tired and cranky or just an emo. Whatever. Anyways, I wrote the code to make the 'ghost writer' to work but I would like to write code inside of my string. Example: in the middle of the 'ghost' writing a sentence, the writing stops and a msgbox would pop up. When you hit OK the writing would resume typing. How would I do that?
Static y As Integer
y = y + 1
Dim GhostText As String = "A msgbox should pop up here=>. and then I would Click OK and it would resume typing the rest of this. "
If y <= GhostText.Length Then
Me.Label1.Text = GhostText.Substring(0, y)
' Dim form3 As New Form2
Ok this does not sound like it would be hard but i can not get it to work. I am trying to just open a file in vb.net from say c:\temp\abc.jpg or .doc or whatever. I just want to give the program a file location and just have it open it with the default program assigned to that file type.
i hope this will help there is a lot of different ways to do this
Public Class Form1
Private Sub MainWebBrowser_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles MainWebBrowser.DocumentCompleted
InfoToolStripStatusLabel.Text = "Done"
DocToolStripProgressBar.Visible = False
Private Sub WebPagesToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles WebPagesToolStripButton.Click
AddressToolStripTextBox.AutoCompleteSource = AutoCompleteSource.AllUrl
DocumentsToolStripButton.Checked = False
Private Sub DocumentsToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DocumentsToolStripButton.Click
AddressToolStripTextBox.AutoCompleteSource = AutoCompleteSource.FileSystem
WebPagesToolStripButton.Checked = False
Private Sub GoToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GoToolStripButton.Click
Private Sub MainWebBrowser_ProgressChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles MainWebBrowser.ProgressChanged
.Value = e.CurrentProgress
.Maximum = e.MaximumProgress
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Private Sub MainWebBrowser_Navigating(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserNavigatingEventArgs) Handles MainWebBrowser.Navigating
InfoToolStripStatusLabel.Text = "Opening " & e.Url.ToString()
DocToolStripProgressBar.Visible = True
DocToolStripProgressBar.Value = 0
Private Sub OpenToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripButton.Click
Dim ofd As New OpenFileDialog
If ofd.ShowDialog = Windows.Forms.DialogResult.OK Then
MainWebBrowser.Navigate("file://" & ofd.FileName)
I'm trying to fax a word doc from VB using the code below on a windows vista mc, I'm assuming that the fax job should appear in the built in windows Fax printer queue but it just returns an error number 35 Operation Failed.
Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
Dim objFaxServer As New FAXCOMEXLib.FaxServer
Hi, Can anyone help me w/Hyperlink columns in VB.Net Standard 2003. I developed an ap that list a large quantity of equipment (scales) within a datagrid that is bound to an MS access database on a LAN connection. I want to set up a hyperlink column so that my end user can click on a record's .PDF File path/name to launch the Adobe User manual for the selected model and thus provide detailed equipment data to the end user for a specific piece of equipment (scale).
The MSDN help page states the following for Adding Hyperlink Columns to a DataGrid Web Server Control;
"You can open the DataGrid Properties dialog box by selecting the DataGrid control in your Web Forms page, opening the Properties window, and choosing Property Builder at the bottom of the window."
Perhaps this passage refers to a different version of VB because I can find no "Property Builder" at the bottom of the properties page or in any other place.
Can anyone out there provide any suggestions for me or perhaps guide me to a sample that I might be able to download and study?
I have a general question about how to work on subsets of datasets
I have a dataset that has data. I want to operate on only part of that dataset. So I create a dataview and filter the datatable into it. Then I create a datagridview from the dataview. Then I perform my operations on the datagridview.
This works, but I guess it seems kind of strange -- datagridviews seem to have an entirely different purpose. Does it make sense to do data analysis on a datagridview, or is there a better approach for me?
Hi. Thanks for your reply. Here's the postcard version, as expanded from the sticky.
This is not so much an issue of can I do it? but can I do it fast?
I have data on several thousand stocks which are downloaded every day. They are persisted on the disk in some format, each in its own file (several thousand files). Each file has a matrix of some string and some double and some integer values. The matrix is say 500 rows by 10 columns in each file, each row representing one date.
I need to, for each file
1. Open and read the matrix
2. Sort the matrix by date and select the dates I want
3. Calculate new values in new columns (say a moving average or a sum or difference)
4. Output the result
5. Close and move to the next file
My benchmark is c++ programs that seem to be able to do this really, really fast.
So what format should I store the files in?
Text? (small, but need to be read line by line)
Xml? (much bigger, but can be read into a dataset in one XMLread)
Serialized object array? (maybe, but how to filter the data by date?)
My strategy has been to
1. Store as XML datatable and read from that datatable
2. Create a dataviewer to sort and filter
3. Perform my calculations on the datagridview created from the dataview
This works, but I need to go faster. Would a data structure be appropriate? I could serialize an object array, but then how to filter it by date? SQL or ODBC didn’t seem like they would be useful.
MessageBox.Show() returns a DialogResult value, which depends on how it got closed.
There is a value for each possible Button, and IIRC the Cancel value is also returned
when the Close Box is clicked (check it!).
I want to create a Wi-Fi Monitoring and Detection System using .Net 2.0.
1. It will detect any wireless computer coming in the range of access point….
2. It will then authenticate the detected ones by assigning them network parameters
3. It will then monitor the wireless computers by using SNMP protocol
Is there sdk present for that or any API available in .net. I have worked LAN Monitoring System, but i don't know how to monitor Wi- Fi devices.
Can anyone please help me out?
Thanx in advance.
Last Visit: 31-Dec-99 18:00 Last Update: 23-Jul-16 16:29