Created A Program Which Has A Zoom Split Button?
Mar 3, 2011
i have created a program which has a zoom split button. for single click zooming and percentage zooming, basically when i click the single zoom(can click forever to zoom) and clear the image, the picturebox size goes to a very small size, where as the default setting of the picture box is 590,649. is there anyway of writing abit of code so that when i clear the image after clicking the zoom button the picture box does not change when image is erased. i am working with vb.net. please help its completly thrown me. just to add i have a panel and picture box because on some zooming percentages i have scroll bars so you can pan the image by clicking and dragging mouse.
View 2 Replies
ADVERTISEMENT
Mar 3, 2011
I have a button that if a user clicks on the button it creates a new button without the user knowing, and they can drag it to a split container, drop it and edit the button. I am having an issue where I cannot drag or drop the button onto the split container.[code]...
View 3 Replies
Jan 29, 2009
I have created a program that has 5 radio buttons and each button is named after a city. When clicking these buttons a picture of a landmark of that city comes up. However, I would like to enable my "clear" button.I have found a couple of examples such as;
Private Sub Clearbutton_click' Clear previous amounts from the form.
Titletextbox.clear()
Pricetextbox.clear()
end sub
So is what I attempted to do is under my DetroitButton1 i did a
[Code]...
View 11 Replies
Apr 18, 2010
In my menustrip ive added buttons that i want to zoom in/out of the webpage when clicked.Let's say i have a button that says 200%.What code do i need so that when the button is click The webpage would be zoomed at a rate of 200%?
View 1 Replies
Oct 25, 2011
Im trying to write code for Zoom in button for PDF reader.every-time when user presses the zoom-in button, zoom level should be increased by 100.but when i press zoom-in button it directly zooms to 500.
Dim counter As Integer = 100
While counter < 500
counter = counter + 100
AxAcroPDF1.setZoom(counter)
End While
View 11 Replies
Apr 4, 2009
How can I zoom in/zoom out screen display? This is to be used for people having eyesight problem. I want to control the screen resolution by percent and not to any fixed size provided in control panel/display settings.I have to control the output of the main display and zoom in/zoom out by percent, according to user's eyesight matching
View 3 Replies
Aug 26, 2008
Is there a way to zoom in and zoom out document in webbrowser?
View 1 Replies
Oct 30, 2009
I created a Zoom in and Zoom out function for my application and it works great. I would just like your opion on my code, because I am wondering if it can be done a bit neater and more effective.
ts = ToolStrip
cms = ContextMenuStrip
vb.net
If Me.Font.Size < 30 Then
[Code]...
Me.form.font changes the font of all the controls except toolstrips, contextmenu's and menustrips.
Any idea's if this can be done any neater or how you can make menustrip etc.. use the font of the form?
Edit:This is the Zoom In version btw. The Zoom out is identical except it uses - instead of + when declaring the newFontSize.
View 1 Replies
Jun 22, 2010
how to move button over a panel from the form in which the button is created dynamically at run-time ?
View 1 Replies
Aug 12, 2009
any way I can add an item (a button in my case) to a split button collection in VB?
View 6 Replies
Oct 13, 2010
vb.net how to add functionality of zoom in and zoom out
in AxWebBrowser in vb.net using buttons .
I am able to do it using ctrl + mousewheel but how to do it programatically.....
If I open an excel file in the axwebbrowser then this functionality will work or not ..
View 3 Replies
Jul 19, 2011
how to zoom in and zoom out a richtextbox in vb.net.
View 4 Replies
Apr 7, 2011
i have map of a State, i need to let the user to Zoom in amd Zoom out and show some buttons on the Picture if we zoomin or zoomout the buttons also will be moved according to the location like google map how to achive this?
View 9 Replies
Feb 18, 2010
How do I split a string "99 Stack Overflow" into 2 in vb.net
I want the first value to be 99 and the 2nd to be Stack Overflow.
View 2 Replies
Oct 15, 2011
This is my vbscript to read the text file .. I want to know how to split some of the chinese characters.In my code it prompts the Text Line by Line with chinese characters my problem is how to split the chinese characters and the open and close pharenthesis[code]...
View 1 Replies
Jan 16, 2009
I want to use an image I created as a button. I tried setting the the image as a background for the button but that didn't work well. So what would be another way?
View 8 Replies
Feb 16, 2012
I am trying to add an image to button but it errors out on line marked with [code]...
View 5 Replies
Feb 18, 2010
I have never programmed anything in my life -- and I'm learning VB from a tutorial which I found here:[URL]...So I've created my button and added the code. Then it says:
"Now run your first application!"I have no idea how to do that!
View 2 Replies
Aug 17, 2010
I have made an click event for a button which creates buttons dynamically and I added events to the dynamic buttons by using addhandler but it says it the button is not declared. Here is the code for dynamic buttons:
Private Sub MenuBtnNew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuBtnNew.Click
[Code]...
View 3 Replies
Feb 29, 2012
I create many buttons in code like :
Public Sub GenereTextBox(ByVal rep As String)
Dim txt As New TextBox
Dim fnt As Font
fnt = Me.Font
txt.Location = New Drawing.Point(26 + NbreCacher * (68), txtOrdonnee)
[Code] .....
And I want delete some buttons create when I click on my button, but I don't how I can do, because these buttons are create in code??
View 3 Replies
Mar 4, 2009
I have created 3 arrays of buttons for a form which manipulates the value in a combo box or 2 by the name of the button ( buttons named 2 through to about 70 )
This works great but the problem is, now that the buttons are in, I want to be able to change the color of the buttons when another button is clicked
ie. The first bunch of buttons is a list of locations all with unique text.the second bunch of buttons is events that happen, sign on, sign off, beach open and beach closed.
What i want to be able to do is change the color of the button clicked "before" i click sign on, sign off, beach open or beach closed.
I do not know how to reference these buttons in my code as for starters, they are numbers, which is a big no no apparently. Also, even if i change the name from just a number to something like cmdBeach(i) when creating them, i still can't refer back to cmdBeach5 in my code as the button doesn't exist yet
View 3 Replies
Apr 26, 2011
In my application, i want to have 10 webbrowsers, which go to google like this.
For i = 0 To 9
Dim Browser As New WebBrowser
Browser.Name = "Browser" & [i]
[code].....
View 2 Replies
Feb 10, 2009
I created a form with 2 labels 2 textboxes and a button. Basically it is a login from. When I launch the form it shows the blinking cursor in the 1st textbox(this is ok) but when i try to type nothing happens. Once i click the form(not the textbox-textbox works too but wanted to note it was the form) it works. I have tried doing textbox1.focus(). I have tried doing the form.focus(). Neither were successful. It may have nothing to do with focus but it seems to be that to me.
View 12 Replies
May 28, 2012
I've created a form with two check boxs and one button. I added this code Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Bg1.txt As String = "C:UsersJoshDocumentsBg1.txt"
Dim objReader As New System.IO.StreamReader(Bg1.txt)
TextBox1.Text = objReader.ReadToEnd
objReader.Close()
End Sub
End Class
to the button thinking it would open Bg1.txt when clicked but it's not working?
View 2 Replies
Feb 1, 2009
I created a listbox and button in my application using vb code.When the user select an item in the listbox and click on the remove button, the item will be removed from the listbox. I know how to remove the item in the listbox, but I don't know what coding to add to activate the click event on the button.
View 4 Replies
Jan 25, 2009
I want to have multipul fourms on my webbrowser and i've never done it before so I created a new windows form and put a button on my taskbar that would show the form this is my script Show(Form2) but when I click the button my whole project closes. it also did this with an about box.
View 3 Replies
Nov 15, 2011
I created a button in DatarGrid. Now I want to click that button and only when I click the button should the event be fired. Actually I want to Delete that particular row once the button is clicked. However, when I click the button, the Event: CellContentClick of the DataGrid gets fired. And that means if you click anywhere on the Datagrid, that even will be fired, and that makes no sense to put a Delete button. So I want to keep the Delete button and once the Delete button event gets fired, the record gets deleted.
View 3 Replies
Apr 26, 2011
In my application, I want to have 10 webbrowsers, which go to google like this.
For i = 0 To 9
Dim Browser As New WebBrowser
Browser.Name = "Browser" & [i]
Browser.Navigate("[URL]")
Browser.Visible = True
Next
So now I will have 10 webbrowsers aimed for google, right? So how do I make a loop that clicks the search button 10 times? I know I need to use member_invoke like this
Browser.Document.GetElementById("search").InvokeMember("click")
But I have no clue how to code the loop.
View 3 Replies
Jul 10, 2009
How can i use my own created icons as a button in my windows application instead of using the windows application button?
View 3 Replies
May 28, 2010
I am a novice programmer and would like to create a program that will divide the user desktop screen into 2 sections such that one bigger section of around 90% screen size is left for user to work with other windows that when maximized should not ovelrap the other 10% section which will hold some other information that will always be static on the user's screen.I am using vb2008.
View 3 Replies