ProgressPercentage Does Not Seem To Work Properly

Nov 9, 2008

I am using a backgroundworker to start ffmpeg and trying to use a progressbar.ProgressBar1.Value = e.ProgressPercentage does not seem to work probably because the way ffmpeg uses standard error to report progress. I think i could use the output text to do the trick. the output.Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.92 (359/12) [code]

View 1 Replies


ADVERTISEMENT

IDE :: VB App Will Not Work Properly On A Windows 7 64 Bit PC?

Mar 8, 2012

My VB app will not work properly on a Windows 7 64 bit PC.When I launched it on the Win7 PC it will open up OK but when I open a crystal report, the form page comes up ok but the report is missing.Then I get a pop up window asking me for a user name an PW:

[Code]...

View 9 Replies

OCX Control Which Work Properly In Vb6 And .net?

Dec 12, 2010

But I am facing problem Incase of vb .net .I am not able to add Ocx Control what should I do,

View 3 Replies

Can't Get The String Starts With To Work Properly

May 17, 2010

I need to check if a label starts with a certain text, but it wont work!Here is the code I have:

Dim str1 As String = Label1.Text
Dim value As String = "abc123"
If str1.StartsWith(value) Then
'do something
end if

May I also add that the label i'm checking (the text inside it) has no spaces, i don't know if that makes any difference.

View 5 Replies

Convert To DO UNTIL LOOP Unfortunately It Does Not Work Properly

Aug 17, 2009

I tried so many times to convert this to DO UNTIL LOOP unfortunately it does not work properly can you help me?

Heres: the code

CODE:

View 7 Replies

Ctype Doesn't Work Properly?

Oct 31, 2009

i've got a problem here whereby my ctype doesn't work.firstly, to replicate my case briefly, i've created an extension of control class

[code]...

father.getheight 'compiler writes: Panel class doesn't support getheight, but I've already converted it to a Control with CType!end sub of course if i dim father as Control it works perfectly, but in my case father may be other objects as well that aren't controls so I had to dim father as a general object, is there a fix so i could properly convert father into a Control object?

View 1 Replies

BackgroundWorker IsBusy Property Seems To Not Work Properly?

Dec 2, 2009

I'm using the IsBusy property to determine when a backgroundworker has completed. In the RunWorkerCompleted event I assing the result of the RunWorkerCompletedEventArgs to a public variable within the module where the backgroundworker events reside. The trouble is, the IsBusy property occasionally becomes true before the public variable gets assigned the value of the RunWorkerCompletedEventArgs. I experimented with putting a Threading.Thread.Sleep(10) after the IsBusy property becomes true and it seems to fix the problem. But it really doesn't seem right that I should have to do this. What is wrong here? I have placed the backgroundworker events in a component that is instantiated from the windows form, instead of placing the background worker events within the code of the form itself.

Here is my code;

Function SendAndWait(ByVal IntegerArray() As Integer) As String
Component.BackgroundWorker.CancelAsync()
Do While Component.BackgroundWorker.IsBusy

[code]....

View 1 Replies

Can't Get Select Case Statement To Work Properly

Aug 19, 2009

I'm working through a programming project, which should be quite easy but im stuck right at the start (relatively new to VB). I have a textbox (named textbox1) and a checkbox next to it. I want the checkbox to be ticked (.checked) when ever the value in the textbox is between 1 and 100, the checkbox to not be ticked when theres nothing in there, and for it not to be ticked when the value is < 1 and > 100. Figured a case statement would be the easiest. (this piece of code is just a validation check, basically in the real thing the user would have to enter in a value between 1 and a given number, and need to tell the user if that value is valid).

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
Select Case TextBox1.Text
Case Is = ""

[code]....

But what happens is, if I enter in the value 1 in the textbox, the checkbox becomes ticked, as it should. It tick with any values between 2 and 99 (any number not starting with 1) but the checkbox becomes ticked again when the value is 100. For any other range, say 1 to 70, the checkbox would be ticked if the value in the textbox is 1 to 7, or any number starting with 1 or 7, but not 8 or 9, or any number starting with 8 or 9.

View 3 Replies

Columnorder Saving Class Does Not Work Properly?

Feb 23, 2012

I found a class that saves column order and column width for a list view but i cant get it to work properly.

Public Class cListviewHelper
Private Declare Function ListViewiColumnOrder Lib "user32" Alias "SendMessageA" (ByVal hwnd As Integer, ByVal Msg As Integer, ByVal wParam As Integer, ByRef lParam As Integer) As Integer[code].....

It saves the right number of columns but not in the order they are.It always saves them like this in the registry "0,1,2,3,4,5,6"

View 8 Replies

How To Make A Windows Service Work Properly

Aug 3, 2010

My project requires that a windows service checks up a table on a sql database(MDF) and if product existence is 0 then sends an email to some mail address and keep checking every 24 hrs.Now Im able to send mail messages but what Im not able is to make the service itself to work or at least make sure that is working.I do the following(correct me if I do something wrong or missing a step):

1. create a new project and choose windows service

2. add a timer and set to 4000 ms just to test not wait the 24 hrs lol

3. then open its event timer_elapsed and put some code on it, like a msgbox that would keep spamming every 4 secs just to test

4. at the event onstart I enable the timer by: timer1.enabled=true

5. at the event onstop I disable the timer by: timer1.enabled=false

6. right click then choose add installer

7. in the newer installed with the two objects:

a. serviceinstaller1 set its properties to: displayname: myservice and servicename: myservice

b. serviceprocessinstaller1 set account property to LocalSystem

8. build the project and install it by opening the VS console and type: "installutil c:path blah blahservice.exe" then hit enter

9. all successfull installed open the pc manager and run the service from the list and this should be the deal

Now my real problem is that by following those steps my service is sucessfully builded, installed, and started but after the 4 seconds no msg pops up so this leads me to think that is not doing anything or I did something wrong in the steps above. Is there another way to test if this service is working else than the msgbox or the log entry? Plus, Im working on my home pc which is a xp OS. I tried the same at college pcs wich are win7 and when I did install by the console it returned an error weird but in my home pc it doesnt(and I have to present my project at college at college and tomorrow

View 7 Replies

Make The Process.start Work Properly

Feb 18, 2012

i just want to know how i can make this program run proberly. if you import a file in the listbox and you wanne start it whit the process.start methode it won't work. here is my code:

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
OpenFileDialog1.ShowDialog()

[code]....

My question is how can i make the process.start work properly and will the program start the file?

View 4 Replies

Save Button Doesn`t Work Properly?

Jan 30, 2012

I wrote a program which is editing data from database. I used few tutorials (I`m beginer) and everything is working fine(I can make changes in datagrid). but when I`m trying to save changes made in dataset(e.g. save added record) I can not to that (there are no changes in my access database, but inly in datagrid)what is interesting when I delete record - changes are saved and record is deleted from db. where is my mistake? what is wrong? maybe some tips what can I improve in this small program?

[Code]...

View 10 Replies

Sorted In Listbox Doesn't Work Properly

Dec 16, 2011

i add this values to listbox

6
7
15
6

[code]....

but in button function when i press the key is shows me this:

15
5
6
6

[code]....

code:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ListBox1.Sorted = True
End Sub

View 2 Replies

Using Session State Dont Work Properly

Dec 8, 2010

i am still new to using session state, i want to convert page name into and integer according to a database table a function then compares "X" and "Y" to check if a user have the right to view this page..i know this is not the best way of managing website security, but it is like "training on how to use the session".[code]

View 1 Replies

Response.Write() With Javascript Doesn't Work Properly?

Mar 24, 2011

I'm having a problem with this code:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
clave = Request.QueryString("cve")
If clave = Nothing Then

[code].....

View 2 Replies

Wpf :: Why Canvas.SetTop Animation Doesn't Work Properly

Mar 17, 2012

I have this xaml:

<Canvas Width="75" Height="75">
<Button x:Name="button" Background="Olive" Canvas.Left="0" Canvas.Top="0" Width="75" Height="75" Click="button_Click"/>

[code].....

View 1 Replies

Expose DataGridView.Columns And Have The Column Editor Work Properly?

Sep 6, 2005

I have a user control with an embeded DataGridView. I exposed the Columns property so that the columns collection could be edited in the visual designer:

View 2 Replies

Multithreaded .NET (2010 Express Edition) Program Work Properly?

Sep 11, 2011

I'm trying to make a program of mine into a multithreaded application, but I've hit a pair of snags that I documented in the following code. I can expand this stub into a more efficient version of my existing application.

[Code]...

View 3 Replies

Private Subroutine Doesn't Work Properly With Webbrowser Control?

Sep 25, 2011

this is my code

Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
TextBox1.Text = ""
TextBox1.Text = WebBrowser1.DocumentText
Call baby()
End Sub

[Code]...

View 5 Replies

Tab Order Shows Correct Tab Index But Doesn't Work Properly (locked)

Apr 24, 2012

I'm trying to set the tab order on my form and no matter what I do, it doesn't relearn the new tab position after I change the index. It almost seems like the form is locked.

View 1 Replies

What Data Type Will Allow The User To Input 0 And Allow The Mathematical Functions To Work Properly

Mar 29, 2011

I am currently using double data types. The problem I am encountering is that sometimes the user will have to input a value of 0 in the required text box and this creates an error. My question is what data type will allow the user to input 0 and allow the mathematical functions to work properly. Decimals maybe?

View 8 Replies

VS 2008 : Work Properly With The Reflection To Create A Module/plugin-based Application?

Sep 24, 2009

I have found a lot of articles about Reflection and know how to create a class. I'm practicing how to work properly with the reflection to create a module/plugin-based application.So I found a simple example which is working great, but it isn't dynamic enough, 'cause it is hard-coded. I need to read all the .dll's from the application.startuppath & "modules" & *.dll and get there names (without the .dll).Code is was testing for practice returns the form (I know that this is not the correct way to call the dll dynamically):

vb.net
Imports System.Reflection Public Class Form1 Private Sub cmdOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOK.Click Dim assemblylink As [Assembly] assemblylink = [Assembly].LoadFrom(Application.StartupPath & "/" & "LoginAssembly.dll") Dim LoginFrm As Form LoginFrm = assemblylink.CreateInstance("LoginAssembly.Login") LoginFrm.Show() End Sub

View 8 Replies

How To Properly Open A Image Using Bitmap Class And Dispose It Properly

Jun 22, 2010

I am looking for a code snippet which opens a image, creates a clone of this bitmap in memory disposes this opened image so that all handles are closed.

Usually we can open a bitmap using this[code...]

the following code however keeps the Image File locked until the application is running, any suggestions how to dispose it properly. (So that no handle is left open )

Things i already tried: use dispose method of bitmap <= doesnt work (need to write implementation)
Using Block also doesnt work.

View 2 Replies

LINQ Group By Multiple Values Does Not Work Well But Work Well In C#

May 29, 2012

I found that when group by multiple values does not work well with VB.NET, but it works well with C# ,here are my code, is there something wrong with my VB.NET Code? Here is my VB.NET code:

[Code]...

View 1 Replies

PerformClick() Doesn't Work - How To Make It Work

Feb 2, 2011

I have an application that requires data be entered, and after entering, a button is clicked to process that data. Clicking the button works just as it should--the data is processed properly. In constructing a test module, I provide a set of data values, followed by:

btnWhatever.PerformClick()

Nothing happens. I have used this syntax for years, and it has always worked flawlessly. I have triple checked everything else and isolated the problem to the failure of the PerformClick(). The PerformClick() is in a test subroutine that does nothing but fill textboxes and labels with default data, then calls the PerformClick() on the button to begin processing. Again, the button works fine, the data is entered as it should be, but the PerformClick() does not fire the click event.

View 21 Replies

VS 2008 Could Not Get Form To Work On Work Computer

Aug 21, 2009

I have a form that works on my local Machine I created into. I have Office 2007 on this machine. I created the Form with the Excel 12 Reference. I move the Entire conetence of the Project folder to my work computer. Which has Office 2003. Do I need to recreate the form with the Excel 11 reference. I could not get the form to work on work computer. IT has a com error. I am acessing the EXE for the debug folder w/in the Bin Folder.

View 7 Replies

DB/Reporting :: Will SQL Statements That Work In Compact SQL Server Also Work In The Express Edition Of SQL Server

Jul 25, 2010

will SQL statements that work in Compact SQL Server also work in the Express Edition of SQL Server?

View 2 Replies

.net - How To Use Bitvector32 Properly

Dec 23, 2010

I have

Dim bv As New Specialized.BitVector32(25)
Dim sb As String = "0b" 'I resisted the urge to use a stringbuilder
For i As Integer = 31 To 0 Step -1

[Code]....

I only wanted to use BitVector32 for bit flags and I wanted the output to be

0b00000000000000000000000000011001

How do I set this up properly?

View 2 Replies

Using The 'And' Operator Properly?

Apr 8, 2010

In the project�s btnReadNumber click event handler, replace the code in the try section of the try/catch block � the two if statements and the unconditionally executed code � with one if-else statement that performs the same tasks. Use the And operator to write the if-statement�s condition.What I don't understand is how am I supposed to use the 'And' operator so that when I insert a number between 32-16384 in the text box it'll allow it to go through and at the same time not allow any numbers lower than 32(lower_bound) and higher than 16384(upper_bound) to go through.I've use the 'Or' operator and that was simple, but with 'And' I'm not understanding it.Remember it has to be with the 'AND' operator. I bold the area where my problem is at. It's obviously not the right answer, but that's where I was stumped.

Dim sum As Integer = 0
Const upper_bound As Integer = 16384
Const lower_bound As Integer = 32

[code]....

View 4 Replies

Value Not Saving Properly

Feb 15, 2012

Value not saving properly [code]...

View 4 Replies







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