Delegates - Controlling Progressbar And Textbox On Main Form

Sep 4, 2010

I recently finish my Microsoft VB.net training and learning something about delegates. I have two delegates in a excel source to control a progressbar and a text box on the mainform

Public Delegate Sub ReportProgres(ByVal percent As Integer)
Public Delegate Sub ReportText(ByVal Mytxt As String)

I want to use these delegates in a second excel source also. It gives declared in the first excel file and two conflict errors in namespace windows application.

View 7 Replies


ADVERTISEMENT

Progressbar Freezes Main Form

Jun 15, 2011

I pass progressbar byref to the processing() function on ClassLibrary. My main form freezes when i run this.How can i prevent my main form by freezing? My Function is always on the class library, so is there any way or any type of approach to this problem. I need the progressbar to be accurate in showing the process.[code]...

View 6 Replies

Use A Progressbar To Show On Main Form And Then Finish When Next Form Is Loaded

May 12, 2009

I am trying to use a progressbar to show on main form and then finish when next form is loaded, I have got this code.

1. When I click on button, it must open next form, but the next form must only open when the data in my list box has been loaded from Access Databse. When I run my program, it only shows the progressbar and don't open the next form.

Main form code:

Public Class Main

Dim PB As ProgressBar

Private Sub main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub

[CODE]............................

View 4 Replies

Put Method In Main Thread From Background Without Declaring Delegates?

Nov 23, 2009

put method in main thread from background without declaring delegates

View 2 Replies

Refer To A Textbox In The Main Form While In Another Form?

Aug 1, 2011

i would like to copy the inputs of the textbox in my main form to another users form.

View 2 Replies

Accessing TextBox - Use Delegates And Invoke To Change The Value Of A Textbox?

Nov 7, 2011

I am fairly new to VB .Net and have ran into an issue when working with multiple threads using BackgroundWorker.In the new thread that is created I need to access TextBox1.Text to know what the user's input was.For example:When the 'OK' button is clicked BackgroundWorker1.RunWorkerAsync starts a new Thread.

Private Sub OkButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OkButton.Click
'We cannot start more then one calculation at a single time
OkButton.Enabled = False[code]....

I know how to use Delegates and Invoke to change the value of a Textbox, but I cannot figure out how to simply access the text from a Textbox.

View 3 Replies

VS 2008 Delegates For Textbox Key Press Event?

Apr 22, 2010

well i want all my textbox's event- keypress should be called by using Delegate

The Function i need to preform on them is only Numeric

My code

Public Delegate Function mydelegate() As Char
Public Function key(ByVal e As System.Windows.Forms.KeyPressEventArgs) As Char
Dim ch As Char = e.KeyChar

[Code]....

The problem comes when i use this code it surely gonna restrict me entering the alpha characters but i m facing problem is i can enter only a single digit number
i.e when i try to enter 45 it's simpley don't expect it only value which it is accepting is [1],[2] what i want it should accept the value's in two digits,three digits and so on..

View 5 Replies

Controlling The Input In A Textbox?

Oct 12, 2010

A requirement my thesis panelists ask of me is that I should be able to control the text input in a textbox. For example, in a textbox that's for inputting student numbers, it should only accept numbers and the dash character (-

View 4 Replies

Controlling A Video File From Textbox Values?

Apr 28, 2012

I want a animation in vb in form with using the textbox values. The animation related to opening and closing of the any gate. i already made this animation in 3D max software so that i hv the Video file and 3d-max file as well.
I wanted to control the gate position with respect to change of the texbox values. i can also set the my textbox lower value and higher value . is it possible to connect a video file to the texbox value to control the video where i want.

View 2 Replies

VS 2008 Controlling Command Flow For TextBox.TextChanged?

Feb 6, 2010

I have a TextBox called Social. As you type in a Social Security Number into the textbox, it formats itself into the standard Social Security Number Format (XXX-XX-XXXX). It automatically adds in the dashes after the third and fifth number, or corrects/removes the dashes if numbers are added or removed from in front of the dashes. Also I coded the script to record the caret's location so that the caret goes back to where the caret was before the adjustment in dashes.

I used Pos and PosHold to hold the caret's location.

The problems I am having are:If I remove a number before one of the dashes, the caret is reset to '0' from using break points, it seem to jump out of the if statement before setting the location of the caret. Sometimes when a number is removed from before the dashes, the dashes are removed like scripted but, the dash is not put back in the correct location. This seems to happen primarily if you have numbers passed the second dash.

Social_TextChanged
Private Sub Social_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Social.TextChanged

[Code].....

View 8 Replies

Controlling Opacity Of Form Shown In A Form?

May 27, 2009

The end result we're looking for is a slideshow effect where a section of our main form shows a sequence of secondary forms which fade in/out on a timer.We can fade the forms in/out when they're shown individually, but the opacity setting doesn't seem to work when they're shown inside another form. What I've got, for testing, is code that should simply reduce the opacity to 10% after showing the inner form for a half-second, long enough to notice the reduction-except I don't see any change.

Dim f As New Form2()
f.TopLevel = False
Me.Controls.Add(f)[code]........

The opacity change takes effect without refreshing the form when shown 'stand-alone' but I've tried refreshing both the inner & outer form anyway, with no change.

View 3 Replies

Controlling Button On Form?

Jun 21, 2010

i have an external board controlling various things on the board is a button which i would like when pressed activates code within a button on my vb form i have tried button1.select but that only well selects the button on my form rather than activate the code this code is in a timer which scans all 5 pushbuttons on my hardware

[ If ReadDigitalChannel(2) = True Then
Button1.Select()
End If ]

this is the code that the button on my form runs

[ If table1 = False Then
Button1.Text = "Off"
table1 = True
d1 = TimeOfDay

[code]....

View 5 Replies

IDE :: Controlling A Modal Form From A Module?

Nov 17, 2009

I have a situation where I need to display a Modal Window from a vb.net module and feed the contents to that modal form from the module.I am showing the form , feeding data to it from a class module and trapping the events in it using a timer control from the module.It works fine with Show() method but it doesn't with ShowDialog().If I used ShowDialog() then I was not able to continue with the code followed by it and not able to update any contents in the modal form.

I am using VS2003 version.Is there any workaround to this?

View 1 Replies

VS 2010 : Controlling Usercontrol From Form?

Jul 31, 2010

how do you control USERCONTROL button1_click event from form's button2_click event?

button 1 = hidden button on usercontrol1
button2 = visible button on form1
form1.button2 should click usercontrol.button1

View 4 Replies

Delegates And Multicast Delegates In .NET

Mar 27, 2009

What are Delegates and Multicast Delegates in VB.NET? How do I use them? provide a simple example to illustrate the concept.

View 1 Replies

Controlling The Minimized Size Of A MDI Child Form

Nov 21, 2009

Is there a way to control the size of a minimized MDI form. When I minimize a child form, it apprears at the bottom with the form buttons (minimize, restore and maximize) and just about 2 or 3 characters of the Title Text. I would like to have more of the title text showing so the user can figure out what window he wants to restore if he has a couple of them minimized. If not that, is there a way to have a "tooltip" popup when I move the mouse over the minimized form.

View 2 Replies

Controlling The Order Of Controls Being Populated On A Form In VB 2008?

Jul 29, 2011

My form contains a datagrid and a checked listbox. The listbox is populated on the form_load event. There's a function called when the datagrid's SelectionChanged event is triggered that modifies the checkmarks in the listbox. It all works fine when I manually click on any item in the datagrid.

However, the very first time the form runs, the checkmarks are not affected, even though the first item in the datagrid appears selected. I discovered that this is because the actual listbox is not yet populated on the form at the time the very first SelectionChanged event is triggered. So when the function tries setting the checkboxes, it doesn't get anywhere, since it doesn't see any items in the listbox.

Somehow the datagrid is getting populated, even before the form_load event is triggered. I need the listbox to be populated before the datagrid is populated, but I have no idea how to control this.

View 2 Replies

2008 Within FOR LOOP To Fill TextBox And ProgressBar

Feb 22, 2012

I am using VBNET2008 to develop a Application using FORM and the Logic using FOR LOOP. Within FOR LOOP logic to fill the Form TextBox from DataSet and also to Fill ProgressBar Progress. Apparently Within the FOR LOOP the FORM TextBox and ProgressBar1 is not filled.

Here are the overall Coding

Private Sub FCountTotalOrderID()
'--- retrieve OrderID Row count from Table ---
Dim strsql As String

[Code].....

View 7 Replies

VS 2008 - Showing Textbox Behind Transparent Progressbar?

Oct 25, 2009

I was able to make my progress bar transparent, and I have a textbox, I want to see what's in the textbox behind the progress bar, but the progress bar it's not not showing it.
ProgressBar1.BackColor = Me.BackColor
me.backcolor = transparent

View 6 Replies

Interface And Graphics :: Form Controlling Storyboard With Xbox 360 Controller In WPF

Jul 3, 2011

Im new in the forum. Yeah thats what the title said. I made a wpf form with Expression Blend 4 with a lots of animation. So i want to trigger my storyoards with xbox 360 controller buttons. I made a button checks with timer but the problem is when a pressed the button the animation is flickering because the timer is refresh every 20 millisecond. I want to play it once/press like when i click with the mouse something happen. Code:

[Code]...

View 6 Replies

Mdi Child Form Order - Move The New Form Behind The Main Form While It Loads

Aug 5, 2010

i have my main child form open. then i show the new form:

[Code]...

but when the form opens it flickers a lot. so i want move the new form behind the main form while it loads so the user does not see the flicker. once it is done loading i will set the form to topmost. how do i move the new form behind the main form?

View 12 Replies

[VB 2008] ProgressBar - Generate A Random Number Into Textbox - Show Processing

Aug 28, 2009

I have an app with 4 buttons that each generate a random number into textbox, before this number is entered i would like to have a progress bar at the bottom, well show that its processing basically.

View 4 Replies

TopMost Form - Messages Form Would Be Hidden By The Main Form

Nov 20, 2009

I have a tool window that I want to stay above the main application form, but not stay on top of all windows forms. Similar to the floating properties window for visual studio - it always stays on top of the main VS window, but if I select another program, like internet explorer, the floating properties window will be behind internet explorer.

What I have is an application that has several forms that may be displayed at the same time. I have a Messages form that displays messages generated by the code in the form, that gives the status of the application. Obviously, the user would not normally be working on this form, but they may want it to be visible to see the status messages from the program (File saved confirmations, etc). So, my two options right now are I can set the form to be on top of all other windows forms or, when the user clicks on the main application form, the messages form would be hidden by the main form.

View 6 Replies

Have A Progressbar When Loading A Form?

Jun 8, 2011

I have a form let's call it Form1 that calls another form(Form2) Form2 to has a bit a code that needs to load in the LOAD_EVENT and takes about 4 seconds.

I have made a new form(frmProgress) that only has a progress bar.I want frmProgress to show up and load the progress bar meanwhile Form2 is loading.I've tried using BackgroundWorker but I can't seem to get the grasp of it.

View 5 Replies

Progressbar In Another Modal Form

Jun 10, 2011

I have a form where I generate a report on some button click. I need to show another Form in Modal Form, And Place Progress bar on that and Increment the status, from calling form so that when progress bar is running user cannot close the form (where I placed button for showing report). To calculate progressbar's percentage is in the form where button to show report is.

View 4 Replies

Set Progressbar Locate On Another Form?

Apr 27, 2011

I should update a value of progressbar that not is placed on main form but on another "wait form". I have wrote this code in

[Code]...

View 3 Replies

Detail Bound Form Updates Main List Form, But Does Not Update Data

Jan 29, 2010

I have a main form with datagridview containing a list of contacts:

VB
Public Class Form1
Private Db As New DataClasses1DataContext
Private Sub Form1_Load

[Code]....

After saving, I get the correct message ("Saved"), and the DataGridView in the first form gets updated in real time.

But... when I take look at the data (or close and reopen the forms) the data in the database (SQL server) have not changed! What happens!

View 4 Replies

Load The Main Form Of A WPF So That A Separate Thread Goes And Gets Data From The Database While The Form Is In An Apartmentstate?

May 15, 2012

How do i load the Main form of a WPF so that a seperate thread goes and gets data from the database while the form is in an apartmentstate? (drag-able / movable) I Know this is possible with opening a new window from your main form like this :

Private Sub openOrderWindow()
Dim OrderWindow As Orders = New Orders
OrderWindow.ShowDialog()
End Sub

[code]....

I've tried putting MyBase.ShowDialog() and .Show() and .9000+ other things The only benefit I've got out of using a seperate thread to load from the databse is i can see the screen right away (as oppose to it being a transparent box until it loads) but i cannot move it around or minimize it?is there any way to make it Movable while it loads?

View 1 Replies

Forms :: Form Settings - Check If File Exist On Main Form

Apr 29, 2011

[Code] I want like to check if a file exist on main form, if not: force open settings form. And then when the user is closing the form with exit button = check if the file exist again. If it doesn't exist, close application. It's a huge application and I need optimized on most parts. Also, the settings form is asking the closing question two times.

View 1 Replies

Make The Main Form Grey Out/translucent Black When A New Form Opens On Top?

Jul 9, 2010

How can I make the main form grey out/translucent black when a new form opens on top?

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved