- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
- PC Specs
- Intel Core i5 2300 CPU , 16 GB DDR3 RAM, EVGA GTX 760 Superclocked
33 Posted Topics
I'm trying to make a button that when pressed for a short while will close the form but when pressed for a long time *e.g. 5s* the form's process will be killed. I'm trying to achieve this with a timer. Private Sub CloseLongTimer_Tick(sender As Object, e As EventArgs) Handles CloseLongTimer.Tick … | |
Hi, I'm getting the following error: NullReferenceExceptionWasUnhandled on `if (messageUserList[i].Contains("_0"))`. I can't seem to find where the data is null. I've tried debugging using breakpoint yet no luck. Basically what I intend to do is get the text from a particular textbox `txtSendMsg` and write it to `messageList` at position … | |
onsubmit return false still submitting form HTML: <!DOCTYPE html> <head> <script src = "Scripts/script.js"></script> </head> <body> <form action = "http://posttestserver.com/post.php" method = "post" onsubmit = "return age()"> <label for = "dob">Date of Birth</label> <input class = "TextArea" type = "date" id = "dob" name = "dob" required/> <br/> <p><span id … | |
Sheet1 A1: Football A2: Rugby A3: Basketball Sheet2: A1: A2 A2: B4 How can I get a location of a field from String? Is it even possible? *eg. I want to tell the contents of cell A2 in Sheet1 by getting the string value "A2" from cell ''Sheet2'!A1'* | |
Code 01: <head> <title> My Web Page </title> <link rel = "icon" href = "favicon.ico" /> <link rel = "shortcut icon" href = "favicon.ico" /> </head> Code 02: <head> <title> My Web Page </title> <link rel = "icon" href = "favicon.ico" type = "image/x-icon" /> <link rel = "shortcut icon" … | |
Re: Do you want to show date like this, so that the user inserts date? ComboBox1: Day ComboBox2: Month ComboBox3: Year | |
Hi, I'm using an ESX Virtual Drive and basically I want to allocate data to a VM Drive from unallocated space within the VM Drive due to lack of space. I've done some research and found this great software: http://www.youtube.com/watch?v=AnpOhiywWJw#at=65 . What do you think? Is there a better and … | |
Public Class Form1 Dim CloseButton As New Close Dim RestoreButton As New Restore Dim MinButton As New Minimise Dim Drag As Boolean Dim MouseX As Integer Dim MouseY As Integer Dim WinBorder As New PictureBox Private Sub CloseButtonCode() Handles Me.Load CloseButton.Anchor = AnchorStyles.Top + AnchorStyles.Right CloseButton.Enabled = True CloseButton.Location = … ![]() | |
I need to to this: If the selected option / item is "Enabled" I want to preview a textbox. I've tried this: If ComboBox6.SelectedItem = "Enabled" Then TextBox10.Visible = True Else TextBox10.Visible = False End If And also this: If ComboBox6.Text = "Enabled" Then TextBox10.Visible = True Else TextBox10.Visible = … | |
I've got these two tables on two different worksheets. A1: ID B1: Name C1: Locality D1: ID_2 E1: Status A1: ID B1: Name C1: Locality D1: Status Basically I need to match the two tables via "Name". If the names are similar I want to fill in "ID_2" with "ID" … | |
I'm trying to imitate the Windows 8 Start Menu preview'. Private Sub CornerHoverMouseOn() Handles CornerHover.MouseHover Dim CHL As Integer CHL = (Screen.PrimaryScreen.WorkingArea.Height - 100) CornerHover.Anchor = AnchorStyles.Bottom + AnchorStyles.Left CornerHover.Location = New Point(0, CHL) CornerHover.Height = 100 CornerHover.Width = 50 CornerHover.BackgroundImageLayout = ImageLayout.Stretch CornerHover.BackgroundImage = My.Resources.CornerHover End Sub Private Sub … | |
Close is a Custom Button I made. Dim CloseButton As New Close Private Sub CloseButtonCode() Handles Me.Load CloseButton.Anchor = AnchorStyles.Top And AnchorStyles.Right CloseButton.Enabled = True CloseButton.Location = New Point(1170, 0) CloseButton.Size = New Size(30, 30) CloseButton.Visible = True Controls.Add(CloseButton) AddHandler CloseButton.Click, AddressOf CloseButtonClick End Sub Whenever I Maximise, this button … | |
How can I close a user generated button? Here's the code for the button that creates new user generated buttons: Public Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click TC = TC + 1 Dim TCP As New Integer TCP = TC * 100 Dim NT As New MyButton … | |
Hi. I want to create a picturebox when a specific button is clicked. The code below displays nothing :( TC has an initial value of 0. It will count he number of times the picturebox has been created. Private Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click TC = … | |
Hey guys so how can I actually make a Tab Control using [this](https://docs.google.com/file/d/0Bx-ETTSBtAAfUFM0R2tBUDFpQUE/edit?usp=sharing) image as an active tab and [this](https://docs.google.com/file/d/0Bx-ETTSBtAAfRElBUnkyWkphMkk/edit?usp=sharing) one as an inactive tab. I've already read something about Drawing Tabs but I didn't quite understand it. Thanks. | |
Hey Guys! I've been working on a CLI. Basically I want to recreate the Command Prompt using more user friendly commands. The thing is, as I'm using a RTB the 'Return' Key won't produce a value but it will only skip a line. How can I fix this? Below is … | |
Hey, I'm a Happy Owner of a Razer Electra Headphones/Headset. The thing is that whenever I place the microphone wire into the line-in, sound is neither recorded or heard. Could it be that my VIA HD Sound Card isn't compatible with my headset? Thanks in advance, Isaac. Attached you should … | |
Sample 1: Private Sub Get_URL() Dim AddressText As String = HttpContext.Current.Request.Url.AbsoluteUri.ToString ComboBox1.Text = AddressText End Sub Sample 2: Private Sub Get_URL() Dim AddressText As String = CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser)Url.ToString ComboBox1.Text = AddressText End Sub Neither of them successfully displayed a URL in my ComboBox. Any Help? Thanks. | |
I want to make a tab control that looks like this:  Does anybody know how to this? I've searched all over the internet yet nothing really worked. Current Tab:  'Offline' Tab:  Thanks :) | |
Public Class Close Inherits Windows.Forms.Button Public Sub New() Me.Size = New System.Drawing.Point(25, 25) Me.FlatStyle = Windows.Forms.FlatStyle.Flat Me.BackgroundImage = My.Resources.CloseNormal Me.BackgroundImageLayout = Windows.Forms.ImageLayout.Stretch Me.BackColor = Drawing.Color.Transparent Me.Font = New System.Drawing.Font("Calibri", 10, Drawing.FontStyle.Regular, Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.ForeColor = Drawing.Color.Black Me.FlatAppearance.BorderColor = Drawing.Color.DeepSkyBlue Me.FlatAppearance.MouseDownBackColor = Drawing.Color.Transparent Me.FlatAppearance.MouseOverBackColor = Drawing.Color.Transparent Me.FlatAppearance.BorderSize = 0 End … | |
How can I safely change the taskbar / explorer skin without installing any software? I really like the Vista taskbar and I would love to change it. Help would be appreciated. Thanks in Advance. | |
It sort of works - the thing is without clicking the picturebox or anything, the form, whenever I move the mouse, it moves any help? Thanks Public Class Form1 Dim drag As Boolean Dim mousex As Integer Dim mousey As Integer Private Sub CloseButton1_Click(sender As Object, e As EventArgs) Handles … | |
How do you link to a Database in VB.NET? Say you need to record Name, Password and Email Address. What shall I write in the db? | |
If (TextBox1.Text <> Bookmarks.ListView1.Items) Then NoResultsFound.Show() End If I want to display another class when the user's results dont match anything from the list. Help would be really appreciated. Thanks. ^The code above gave me this error: > Overload resoluton failed because no accessible '<>' can be called with these … | |
I'm working on a web browser and I need to know how to store history & bookmarks permanently as currently after the browser is closed all data is lossed. Should I put it on a DB? Suggestions? PS: They are currently being saved on a ListBox. | |
Hwy guys how can one draw custom tabs. I found a link : http://www.codeproject.com/Articles/12538/Y-et-A-nother-TabControl-A-Custom-Tab-Control-With but I didnt quite understand the code. | |
How do you get the URL of a Web Page in VB.NET ? Thanks in advance. | |
Private Sub Refresh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Refresh.Click If (AddressBar.Text.Contains("")) Then WebBrowser.Refresh() ElseIf (AddressBar.Text.Contains(".com") Or AddressBar.Text.Contains(".info") Or AddressBar.Text.Contains(".asia") Or AddressBar.Text.Contains(".aero") Or AddressBar.Text.Contains(".biz") Or AddressBar.Text.Contains(".cat") Or AddressBar.Text.Contains(".coop") Or AddressBar.Text.Contains(".int") Or AddressBar.Text.Contains(".jobs") Or AddressBar.Text.Contains(".mobi") Or AddressBar.Text.Contains(".museum") Or AddressBar.Text.Contains(".name") Or AddressBar.Text.Contains(".net") Or AddressBar.Text.Contains(".org") Or AddressBar.Text.Contains(".post") Or AddressBar.Text.Contains(".pro") Or AddressBar.Text.Contains(".tel") … | |
I want to make a combobox that will grow or shrink according to the screen size any help? | |
Problem : If ComboBox contains "x" display DialogBox1. Whats the code after it? | |
Private Sub RefreshGoSearchCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RefreshGoSearchCancel.Click If (AddressBar.Text = "") Then WebBrowser.Refresh() ElseIf (AddressBar.Text <> "" And "." And "") Then WebBrowser.Navigate("www.google.com/search?q=" & AddressBar.Text) Else WebBrowser.Navigate(AddressBar.Text) End If End Sub This is the code for The AddressBar to refresh when text hasn't changed, search … | |
Private Sub Open_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Open.Click If (BookmarksList.SelectedIndex >= 0) Then WebBrowser.WebBrowser1.Navigate(BookmarksList.SelectedItems) End If End Sub This is the code I made for opening a Bookmark from List yet an error keeps on showing. Any help? WebBrowser is the main form's name. BookmarksList is … | |
I want to display the current web address for my custom web browser. Any help? Thanks in advance. |
The End.