I want to make a small program which displays a text, and the words of this text are clickable, I mean when I click on a word I want to display some explanations to it. I want the same structure except that instead of URLs I want to display some text when clicking on a word. So my question is : Is there a control for this kind of use?
I want to change certain words in line as bold and remaining words as normal case. And I want to display this kind of text in dialog box. I want to achieve it in vb 2008.
How to make TextBox2.Text displaythe same text if in TextBox1.Text i have, lets say "Test" on my first button click and "test" on my second. I want to make it do so without having to write the code again:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = "Test" Then TextBox2.Text = "Random Random Random" Else
I want to read from a text file and display it in a label. However, when I do that, I see that there is no word wrapping. In the sense, a whole paragraph is displayed in one line and the next one in the next line and so on. Can some one please tell me how to read text from a file and make it display as it is (lines as they are)? I am using the following code right now:
actually i'm trying to write a small program for my project's presentation. i created a form with buttons, each time i click on a button, i want a text loaded from MS word document to be displayed inside the form.
i thought about dislaying the text inside a label or textbox, but the problem is that the text doesn't preserve its state, i mean colors and fonts which are defined in the MS word document, it just displays everything in black color, small size..etc, even if i change the properties of the label in color or font, thoses changes will be applied to the whole text.
is there any control who can display the text loaded from a MS word coument with its colors and fonts which are already defined in the word document, or there any solution to do this ?
For my own amusement more than anything I am trying to create a program that has a world map then when you click on each country it leads to another form. At the moment I have the World Map as a background image on a forum, The only way I can think of at the moment is to have picture boxes but the countries are too packed together for this to work effectively and I believe that you can have transparent backgrounds on picture boxes.
This code works fine, the listbox shows the posts. But how do I get the posts on the front side show up as clickable links. Maybe not in the Listbox, perhaps in a panel or similar object? [code]
heres what i have.. and i got it fully working... except.. I can't make the links clickable to open a new web browser window for some reason.. and how would I clean this up a bit too?
655211, Male, David Graham, 1992, 20, 0411221122I have got the code which displays all the info, however i need to modify it to display only male or females
Dim fileReader As String fileReader = My.Computer.FileSystem.ReadAllText("C:data.txt") Label1.Text = (fileReader)
May I ask a suggestion about this datagrid. I have this datagrid but it has so many column and I am going to total each and every column. If I am going to put a textbox or label, it'll be kinda difficult because it will not align to the column. Any solution you may suggest?
Another thing is this form for Daily Income. I want the form at the back (Main Form) not clickable unless I closes the Daily Income Form. So that the Daily Income Form will not go at the back of the Main Form. It is like you were saving a file on a text editor that you can't click the window behind it.
I have a DataGridViewImageColumn with an image in it I would like to make the only area to perform a function of mine when I click it. I can click the row and get it to work but can't seem to only make just the imagecloumn the clickable region.
So as an example I have Private Sub dgrdStatus_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgrdStatus.CellClick MessageBox.Show("You chose " & dgrdStatus.Rows(e.RowIndex).Cells("columnCustomerName").Value)
Works for the whole row, my issue is I only want to be able to click the imagecolumn to do this. Guessing I am missing the right item similar to dgrdStatus_CellClick but can't quite pinpoint the fix.
I've search for hours on Google but could find a solution.want a clickable area (that can handle MouseClickEvent, DoubleClickEvent, etc...) that is transparent, hence you can look through it.For example:I have Form1 with a bunch of buttons, text fields, etc. I want a clickable area that is over the whole Form1 (thus over all the buttons, etc).If you click this area, the clickEvent for this area should be could and not the eg: button underneath this area.Most importantly of all the area must be transparent, thus all the buttons, textfields, etc underneath the clickable area should be visible. Something like a panel or pictureBox that you could put over the buttons would be ne, but a if you drag a panel/pictureBox over a button, the button is invisible, and if you say send to back, the event of the button will be called and not that of the clickable area.
I would like to create a little list in my Windows Form showing a list of custom colors with their 'friendly names'. Technically it can be anything (ListBox, ListView, Panel etc... whatever).
I simply want it to look something like this:
I would like to store data for this list in a simple TXT file in such form:
Quote:
Blue,Blue Red,Red #F6A118,My favourite color #004080,Another color
And of course I would like each element on such list to be clickable, so if I'd click 'My favourite color' it should return the color's HEX value (#F6A118).
other than GML (Yoyogames.com Game Maker Language), I am new to the coding world. The only "major" project I have completed using VB is a computer calculator that exactly mimics the capabilities of Windows 7's calculator. Yesterday, I began a Chatbot program for my girlfriend. Lol. I have used the instr() function to answer most of the questions or answers which are typed into the textbox1. I find this extremely troublesome because when using the instr() function you cannot say instr(textbox1.
Public Class Form1 Dim fos As String = "Foster: " Dim ash As String = "Ashley: "
I currently have a list of words in a text file sorted in to alphabetical order and put into lower case, but I would like to be able to also display the line numbers on which these words are associated with.. but only one instance of.
For example,
"This is a random text file that I have just made up this second"
[Code].....
As you can see above, I would like to show that "this" for example appears on line 1 and 4. Hopefully tabbed so that it keeps a nice look to it.
I have created an application that uses two forms one is displayed on a touchscreen and is a basic input form, the other is displayed on a large display monitor and is basically an information form, both displays are connected to the same pc. The program works great I have just one annoyance is if the program is restarted it displays both forms on the touchscreen and I have to drag the information form onto the big display. Is there a way to specify on load that each form gets displayed maximized on a certain screen so I don't have to drag one form onto the correct screen?
I have a progress bar on a Windows Form which displays the number of records as they are retrieved from the database.The problem I'm having is that the entire Form.Load() method seems to run prior to the form being displayed, which means all my code updating the progress bar is gone to waste.
I need to make the text value of a checkbox appear on a listbox when I check it and when make it disappear when I uncheck it. However, I need to do this with 100 checkboxes, and doing it per checkbox, I need a code that for any checkbox checked and unchecked, the text value will be listed or cleared on a listbox.
In Vb.Net 2005, how is it possible to make the TabPage.Text to appear when the DrawMode of a TabControl is set to OwnerDrawFixed. I have even tried to set the TabPage.Text in the Form_Load event but of no avail.
I want to insert an array of strings using Arial Unicode for an Arabic Dictionary. I already had one with Xp but as soon as I changed my operating system to Vista, the string switched the 1 and last place of the Arabic Letters around. And they are no longer correct spellings?
I'm building a program in which it asks for your name and age and determines a ticket price based upon these details. I want it to show the person's name, then their age, (jump down a line) then their ticket price, and then it jumps down a line to show the next person's name, age and ticket price. Issue is, when it's meant to jump down to show the next person, it just completely deletes the last person's details.I'm using this line of code:
Private Sub RichTextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged RichTextBox1.SelectionLength = 0 Dim words As New List(Of String) words.Add("Test")