create an application that when i highlight a text (outside the application (like a word text) ) and i click on control + f shows a message box with the highlighted text......i want something to look like the attached picture
How to create an application that when I highlight a text (outside the application (like a word text) ) and I click on control + f shows a message box with the highlighted text. Iwant something to look like the attached picture. Attached Images: vb nacho1.jpg (49.1 KB, 11 views)
so one of my error message in my program looks like this MessageBox.Show("You forgot to select a Location!" & ControlChars.CrLf & "You must select a workshop and location then click Add workshop button," & ControlChars.CrLf & "repeat the process few times and" & ControlChars.CrLf & "then click Calculate button to calculate the grand total", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning)and i want the texts "Add workshop" and "Calculate" bold or highlighted when the message box appears, how do i do that?
I'm trying to make a game shop.the shop has items, and you pick which item you want through a radiobutton. Then it has a textbox that asks for the quantity of how many you want. Then how click a button, and I want a message box to pop up saying "You have purchased # (whatever item)(s)" The radiobutton text has the name of the item.
well my problem is that i have a data grid with id(hidden), name, and number as headers and i have 3 textboxes(1 hidden).the data on the data grid is coming from the database(mysql).like if the entry is like this
I'm trying to write an application that will basically copy highligthed text from internet explorer and manipulate it.I was just wonder how I could send highlighted text to a string in my program. It will work a lot like copy/paste such as
I'm trying to create copy in a menu however i'm having trouble to get it to work as i want it to. I've seen many tutorials online that have 2 textboxes and the code to the copy control is simply TextBox1.Copy() and paste is TextBox2.Paste(). This is fine but what about when you want to copy from TextBox2 to TextBox1 or when you want to copy only part of the highlighted text? Does anyone know what i can use to get it properly working?
I am using Vb.Net 2005's stock datagridview.What I am trying to achieve is for the user to drag the mouse across some text within a cell and have it show the number of letters as they are being highlighted.I thought that this would not be too difficult of a task, but once I realized it that it was I started perusing the Internet for quite some time to no avail.
I have code to go through a document highlighting letter by letter:
Private Sub Timer1_Tick( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If Not RichTextBox1.SelectionStart < RichTextBox1.TextLength Then
This is my source that I created Private Sub FontToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FontToolStripMenuItem.Click FontDialog1.ShowDialog() RichTextBox1.Font = FontDialog1.Font End Sub Private Sub ColorToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ColorToolStripMenuItem.Click ColorDialog1.ShowDialog() RichTextBox1.ForeColor = ColorDialog1.Color End Sub
When I want to change color and font in richtextbox, all of text in textbox is changed. How to make source code that change color and font in text that we highlight.
I have two forms, one has a textbox on it the other also has textbox on it. Form1's textbox is the source for text found. form2's textbox contains the search criteria.
This the code that I quickly bashed out to do a find functionality of a textbox. The problem is the last line of code. If I use the last line of code the the Source Form.s textbox is highlighted however if the Source Form is Maximised then the Find form will be hehind the Source Form. I don't want that to happen. Secondondly if I dont use the last line of code then the the text isn't seleceted at all.
Private Sub DoFind(ByVal xControl As Control) Dim x As Boolean = TypeOf xControl Is TextBox Static Dim lastfoundPosition As Integer = 1
I have a textbox1 and button1 and panel1 (which is used as a popup control)i want if textbox1.text="show" then modalpopup control whose id is panel1 will be visible on buttonclick event other wise .... modal popup control panel1 will not be shown ...how to do this ? using vb.net ?
I'm trying to make a game, pretty much a game like memory where you flip over a card and find the match. But because of how many buttons I need I was wondering if it was possible to show the picture in a message, all the pictures are funny motivational posters from photobucket so I want the player to be able to read the dialog. I've already tried doing
Dim picture as string = "1.jpg" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MessageBox.Show(picture) End Sub
but when I click the button nothing happens and yes the name of the picture in my bin folder is "1". I am using Microsoft Visual Basic 2008 Express Edition.
I've got a grid view. I want it to say "you have nothing to show" if there are no details.
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound If GridView1.Rows.Count = 0 Then
[Code].....
However; it seems to be working backwards and showing the message when there is data to display in the gird view and continues to be a blank page when there is not data to display in the grid view.
I've tried a variety of combinations with the below IF statement below but no success.
I have wrote a program that do a bit of calculations that takes about 10 min to complete, therefore I need to show a progress to user. I used a percentage in status bar to show the current status of program.
The problem is for updating the number after each iteration I use me.refresh to show the percentage. BUT whenever the program lose the focus for example working on other stuffs, the program cannot update the percentage anymore. And above the form shows not responding but do the job until get the result.
I am creating a question and answer form and I have created a couple of error message boxes that will show up on different events. With the first set of code below it is supposed to show up when a user doesn't check any radio buttons and clicks the next button, however when the message appears even if they click ok it moves onto the next question without letting them chose an answer. For the second set of code it asks if a user wants to retry but even if they click X to cancel the message it still reverts back to the main page.
If rbAnswer1.Checked + rbAnswer2.Checked + rbAnswer3.Checked = False Then MsgBox("You must select an answer to continue.", _ MsgBoxStyle.Critical Or MsgBoxStyle.Question, _ "Error") MsgBox("Are you sure you wish to retry? All current progress will be lost", _ MsgBoxStyle.Question Or MsgBoxStyle.Question, _ "PowerPoint Quiz")
I am not sure if I need to write an if statement or just add the line MsgBox("Update Succesful") but with doing that there is no actual check to see if any change has been made.
Unless, my code is in a Try Cast to catch any exceptions, could I add the line like I said above, then in "Catch as Exception" add the lines MsgBox("Update Failed" - ex.message)