Make A Windows Form Vibrate Randomly For A Few Seconds Similar To An "earthquake" Effect?
May 18, 2011Is it possible in Visual Basic to make a Windows form vibrate randomly for a few seconds, similar to an "earthquake" effect?
View 3 RepliesIs it possible in Visual Basic to make a Windows form vibrate randomly for a few seconds, similar to an "earthquake" effect?
View 3 RepliesI have searched many forums, including this one, and can't get this to work. I am working in Visual Studio 2008, using Visual Basic. I want to create a Button Click Event that vibrates my phone. I have tried over 20 different code ideas and none of them are clean of errors when I build my project. All I want is a simple vibrate when I click a button, nothing dramatic in the lines of varying the vibration or anything like that. Here is my Button Click Event code, what do I put between there to make this work?
Private Sub btnMode1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMode1.Click
End Sub
Our production database as grown to a size where several of our longer running stored procedures are taking more than the default 30 seconds to complete. I've programatically set some of the CommandTimeouts on the command objects but the calls to the store procedures still appear to be timing out after 30 seconds.
Here's what I did:
In web.config set this property
add key="CommandTimeOut" value="180"
Added this to the top of my class that needs the timeout set:
Dim COMMAND_TIMEOUT As Integer = ConfigurationManager.AppSettings("CommandTimeOut")
After creating the command object set the timeout property on the object.
cmd.CommandTimeout = COMMAND_TIMEOUT
Unfortunately my stored procedures still seem to be timing out when they take longer than 30 seconds to execute.
I have a procedure that loops through the directories/subdirectories on a file server and sets the permissions. Procedure is called on a button click of a form.
I need to display on the form which directory is being processed. Similar to if we use the Debug.writeline which writes to the output in Visual Studio. I tried using a ListBox but it only displays the last one and only displays the last one once processing is done. I want to be able to display each directory name as it is being processed.
Psuedo code as follows:
For each dir in L drive
setPermissions(dir)
'display in ListBox dir name
lstProgress.Items.Add(dir.Name)
Next
I have created a software project for my college using vb.net 2008
View 2 RepliesWhat code would I use to make a progress bar last 4 seconds then switch to another form?
I can't find any good code for a progress bar besides on youtube which I don't know how to change the timing on it
load another form and i want a progress bar to work with it.
View 19 RepliesI have created a splash screen and would like it to display for 5 seconds and then display the MainMenu form. The book I am following suggested using
Threading.Thread.Sleep(5000)
but it just makes the splash screen APPEAR after 5 seconds of nothing.
Can I make a certian function that will fade out [make a black screen that fades out for 2 seconds], then come back? Is that possible? ON A FORM.
View 3 RepliesI have enabled the glass effect to Windows Forms in Visual Basic 2010. When I drop controls, they are not displaying well as usual. Whats is wrong with this?Image:
Texts are displaying only front of Black color.
I have a very weird problem. I have a VB.NET 2.0 application that takes advantage of Windows 7 taskbar button progress features, i.e. displaying certain progress and application state in the Win7 taskbar button.Everything works just fine - I can set and update progress, I can set the button to paused or ewrror state, I can set it to No progress. Everything works, except MARQUE (Indeterminate) mode. This is a total mistery, whenever I set state to TBPF_INDETERMINATE (value of 0x1), it simply changes back to NOPROGRESS type, i.e. it removes all progress inidcation from the taskbar button and sets it back to its default state - no animated marque is ever displayed!
I have read documentation on MSDN -[URL] tried various combinations like setting progress to 0 and then calling set state to indeterminate; or like setting it to normal first and then to indeterminate - nothing works. It's a total mistery - and there is no clue in the documentation as to why it is failing...
Here's the code:The API implementation:
<StructLayout(LayoutKind.Sequential)> _
Public Structure RECT
Public left As Integer
Public top As Integer
[code]....
I am trying to make a program that randomly selects a name. i have a prompt that allows me to enter the number of names and the names themselves. but i dont know how to save or open the information into an array... can anyone help me with this?
View 14 Repliesim trying to make a single image appear randomly at any given time i have tryed to figure out the code for this my self however i have had no success any ideas
If HPU.Visible = FalseThen
HPU.Visible = Int((550) * Rnd() + 1)
EndIf
When I use the code below, I can't get any (copy)effect as I drag things onto the picture box(img). Therefore, I can't dragdrop files. How can I make dragdrop event possible?
[Code]....
How to make a picture glow & blur even if the picture contains transparent color?
View 6 RepliesI'm trying to build an application to increase my understanding of visual basic. I may have set the bar too high for myself but it's the challenge that makes it fun right? Anyway, I'm trying to make a transition effect of a page turning. The application is a brewing database which looks like a book. I think the transition would make it look more professional. Dose anyone have on how I might be able to accomplish this? A basic example even would go a very long way.
View 5 RepliesHow to make the picturebox appear randomly? And, when i click on them when it's is appeared, the score will +1? this is Whack-a-Mole, sorry that i don't know what this game's name. Can you tell me how to make the picturebox appear randomly and disappear after a short moment(0.5 sec something). And the game total time i would like to have about 1 minute.
View 17 RepliesI created a service which monitors a few servers and file shares for exchange. Written in VB.NET 2.The service is installed and running fine(ish) but randomly and without any warning or entries in the event log it stops.Upon noticing it stops (the web front end that it generates stops working) we have to manage ther hosting server to attempt to start it again.If we simply try to restart it, it fails to start with a logon failure.
View 1 RepliesI am trying to essentially convert an Excel spreadsheet into a Windows Form. On the first worksheet I have setup an IF statement to work as a search function =IF(C10="","",VLOOKUP(C10,'Price List'!$A$2:$D$40008,2,FALSE)) to read a price list on a separate worksheet. It works by taking a partnumber then puts the description in the next column (description column) and then the price in the "price each" column then finally totalling the row based of the quantity selected (see below).[code]...
View 11 RepliesBasically I'm trying to make a file browser similar to what XBMC has, a file browser that you navigate with your arrow keys.This is the custom UserControl I made:
The small box on the left will be an icon, I will have a custom icon for directories/files. The label box that says title will be the name of the directory/file.
What I need to know is How to get the name of the directory/file so I can change the Title labelbox text to match the name.How to distinguish whether it's a file or a directory so I can set the picturebox to the right icon.How to create a new UserControl for each directory/file
I'm wondering if it's possible in VB.NET to make similar properties call one generic one?A sentence doesn't explain it well so here's a code example.I have a bit field defined like this:
<Flags()> _
Enum E_Operation As Integer
Upload = 1
[code]....
How I can make Mouseover Vista Effect(icons) for picturebox?
View 4 RepliesHow do I make Particle Effects and Effect Generation without Directx?
Effects I need
- Dust
- Fire
-Rain
-Thunder
- Fog
- Exsplosion
so my goal is to get a picturebox to move in random directions and smoothly (like a character moving straight in a game) without using thread.sleep and me.refresh (and also without animation atm). Would anyone be able to guide me on how to accomplish this?The reason I want to do this is because when I need to use like 3 threads to move 3 different things around smoothly my computer slows down too much.here's my code now without all the other subs used to place the random code in it's own thread. There's a lot of other code too so I can't really post the entire thing:
Private Sub random_movements(ByVal e As Integer, ByVal speed As Integer, ByVal ctrl As Control)
Dim location_x As Integer = ctrl.Location.X
[code].....
the code bellow try to make the same effect that textbox1.readonly = True in an combobox...the code to do this are in a form class and because i never had work with class i don't knoe the way to call this class..
Option Strict Off
Public Class ComboBoxReadOnly
Inherits System.Windows.Forms.ComboBox
[Code].....
If I'm not mistaken PHP crypt() function use DES-based encryption algorithm. So I've search DES Encryption code and all that I found is code that similar to the one in this post http://www.vbforums.com/showthread.php?t=471798
But with those codes I must enter 8 character lenght salt. Less then that the code wouldn't succeed. In the other hand. The PHP crypt() function only could use 2 character length salt. If you enter more than that, it seems it only use the first 2 character..[URL]
I know this code will give a list of processes
ListBox1.Items.Clear()
Dim ProcessList As System.Diagnostics.Process()
[code].....
i want to make a program that randomly chooses a roller coaster and displays it. I want a hidden textbox1 with rollercoaster names (line by line) and then i want a user to click a button and it will randomly show the name of a rollercoaster in textbox2.
View 8 RepliesI am in the making of creating a database desktop application using VB.NET. I want my UI to have similiarity the same as Microsoft Money. By this, now I want to make all my textbox to behave this way :
flat will have no border, or if it's still if the mouse hover on it, the border will get emphasized.That's all.I recognize that in TextButton, we have FlatAppearance, so we can tweak all Button to behave like this. But the same is not happened for TextField.
I'm making a seat booking system in vb.net (WinForms) and I need the user to be able to select the seat they wish to use and for it to change colour (so they can tell that it selected).
I began to try using buttons, but 480 buttons seriously slowed down the load time for the form. I then tried a data grid view with buttons in the rows/columns, but couldnt make that work properly.
Would it be worth trying to use 480 picture boxes and change their background colour? Or would that just slow the form down the same way as 480 buttons?