Forms In DLL Files. Form.Isdisposed Won't Work

Jun 8, 2010

I did a function to one of my projects to a DLL file, and when the user starts the function a icon for that function grows (to show that the function is open).When the user closes the function the icon should shrink back again. But i have some problem whit that.The problem is: when i open a other form, the icon shrinks even if i haven't closed the function.What make it strange is that i have 2 function like that, the first one is the one that is behaving like this and the second one works the same way, but the second icon do not shrink when i open a new form. The second icon only shrinks when i close that function.

Here is the code for the opening of the first function:

Private Sub MedlemskortToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MedlemskortToolStripMenuItem.Click
frmm = New Medlemdskort.Form1
frmm.datap = Application.StartupPath & "\database2.mdb"

[code]....

View 2 Replies


ADVERTISEMENT

Forms :: Functions Work Only If Form Is Run Directly (non-MDI)?

Dec 14, 2010

I have this weird issue:I developed an application with a sequence like this login form -> mainform (=mdi parent) --> some functionform (mdi-child)--> report form

The reportform contains a reportviewer and will display different dataset queries depending on the state of some radio buttons which are located on the previous form ('some function form'). When I run the project directly from the 'some function form' (set startup form for project) things work great. The report shows the correct data depending on choices made on the previous form.But....when I run the project all the way from login and mainform it doesn't work. Seems like the choices made on the "some function form' are not coming through to the report form.

View 5 Replies

Doesnt Work For The Forms Which Gets Loaded Into A Mdi Parent Form?

Mar 8, 2009

hey I have a piece of code which gives fade effect to a form at load eventBut it works only with normal forms and doesnt work for the forms which gets loaded into a mdi parent form

View 13 Replies

Forms :: Play Audio Files (WAV) When Form Loads?

Apr 19, 2009

How to play an audio file automatically when form loads?

View 5 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

Forms :: Work With Multiple Forms In .net?

Dec 15, 2009

i've been working with multiple forms. here's the situation.. i have 2 forms form1 and form2 every time i show the form2 from the cmd Bttn in form1 then i close and reopen it again it always prompts me with disposal error.

View 3 Replies

Forms :: Opening Files - Allows Users To Select Picture Files And Then Categorize Them Into Folders

Jul 9, 2009

I'm currently working on an application that allows users to select picture files and then categorize them into folders. Now I'm having two issues that are probably simple to fix but I only have a year of experience with vb so I just don't know how to fix them. The first and biggest issue is that once the user has selected and categorized a file, I want the program to select the next file in the folder that the first file was moved from. This way the number of clicks required is minimized. However I have no clue what I would need to do in order to accomplish this. Also, my other problem is that I want to be able to find the indexof a quotation mark but whenever I put it in the parameter it just reads it as a quote.

View 4 Replies

Forms :: Windows App To Upload Files To Different FTP Sites By Picking The Files From Different Folders?

Oct 11, 2011

I wrote windows app to upload files to different FTP sites by picking the files from different folders.A log is displayed by appending text to the textbox at every step.Textbox is ReadOnly.

Issue:When app is loading a bf file to FTP and if user tries to scroll the textbox,the form is hanging and going to Not Responding.?

View 4 Replies

Possible To Work With PCX Image Files?

Feb 28, 2005

it's possible to work with PCX image files in VB.Net? I know it's possible with most other formats like bmp and jpg.

View 10 Replies

Work With Compressed Files?

Mar 19, 2010

I know .NET Framework 3.5 has a class which allows you to compress invidual files.But how can I add multiple files to a single output compressed file and extract them back later without using 3rd party assemblies just using .NET Framework in Visual Basic?

View 3 Replies

Forms :: Copying Files And Moving Files

Apr 23, 2010

I'm just testing things and seeing if I can get things working and if I can then I want to try and develop this into something more. So far its just a simple button1 finds all files with extension of .mp3 in C: and displays all the findings in a listbox. I then want to use button2 to copy or move (I want to see how to do both) all of the files that are in that lisbox to a directory of my choosing. Here is what I have so far.

Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As

[Code]....

View 8 Replies

Getting Forms To Work With Each Other?

Mar 15, 2010

I was referred to this forum section for VB2008 questions instead of VB6, so Ill assume this is the right place to ask this question. Yes I copy/pasted.I'm EXTREMELY new to VB2008 and I was basically making a program that is used for "password storage" that will be used only by me, I have made a simple login page that will not allow new usernames/passwords and a simple text box-listbox-add-delete page for submitting and displaying what I wish. What Im trying to do is make it so every time I open the listbox form, you are prompted with the login form. Im not sure of a proper term for this as I just downloaded VB2008 2 days ago.

View 3 Replies

Upload Files On Tinypic But It Does Not Work?

May 10, 2009

I would like to upload files on Tinypic.com, but it does not work. Can someone help me? The URL is TinyPic - Free Image Hosting, Photo Sharing & Video Hosting.

View 1 Replies

One Menu Work In Ten Forms

Jun 1, 2009

i want to put one font dialog and one color dialog in one content strip menu that work in every form i have.

View 1 Replies

.net - Code To Install Files To The GAC Doesn't Seem To Work

Mar 22, 2011

Basically we ran into where, for whatever reason, we had to put some 3rd party dll in the GAC for it to work correctly. (The assemblies loaded, but had weird behavior and trouble finding types in the loaded assemblies. The app itself is a add in to another 3rd party program, so it must be something about how its being loaded.) So I tried to write some quick code to handle this without having to manually do this on each machine it was needed on. This is basically what the code boils down to:

Dim X As New System.EnterpriseServices.Internal.Publish
X.GacInstall(name)

Where name is the filename of the dll. This runs without error. It even add the assembly to the GAC. However, the application still experiences the same issue until you manually add the assembly in .Net Configuration window.

View 1 Replies

Doesn't Star Work For Batch Files

Feb 5, 2010

The following .bat file runs through only once when the argument contains a star (*), but if I write out all of the arguments I get an ECHO and PAUSE for each one.Doesn't the star work for batch files? [code]

View 2 Replies

Download Multiple Files, It Doesn't Work?

Nov 1, 2011

I have a class that is a downloader (I didnt make it). You create an instance of it like so:

Dim _Down As New WebFileDownloader_Down.DownloadFileWithProgress(URL, Location)URL and Location are replaced by strings. This all works fine. But when I try to download multiple files, it doesn't work, I just add this bit for another file to be downloaded:

[Code]...

View 3 Replies

Get A Progress Bar To Work While It Copies All Files In A Folder To Another?

May 7, 2012

I'm trying to get a progress bar to work while it copies all files in a folder to another. I've gotten the progress bar to show and display the progress, but during the copying process the app stops displaying anything if I click away and won't display anything until it finishes copying everything. It just freezes with a ghost image in the form while it's copying. How do I prevent the app from freezing during the copying process? I can't even minimize it or move the window around. I hope I made sense. Here's my code.

Dim Files = My.Computer.FileSystem.GetFiles(.SelectedPath, FileIO.SearchOption.SearchTopLevelOnly, "*.*")
Dim i As Integer

[Code].....

View 5 Replies

Playing AVI Files So That They Work On XP, Vista And Win7

Jun 23, 2010

We have code in our former VB6 application, that ported fine to VB.NET, that plays a simple AVI file of the typical "flying folders" and "spinning maginfying glass" AVI. Under Windows XP, our application ran fine and everything was good.

Then we had customers start using Vista and Win7 and this stuff crashes. We were using the MS Common Controls (SP4) and then (SP6) - utilizing the Animation player. Now - these dont work and we get nasty errors.

I searched Microsoft and the web to answer the "what now?" question and though there are numerous suggestions, none of them work. We cant use Media Player because we dont want any menu - just the graphic. We dont know why, with the cool tools given in .NET, there is no animation player (seems a huge oversight...) But we need to get "unstuck" on this one, and we need that fast...

So, How does on play a simple AVI file using VB.NET code? What DLL or OCX does Microsoft recommend and is there a place we can find some sample code for it?

View 6 Replies

.NET Forms Authentication Doesn't Work

Mar 20, 2011

I have an issue with my .NET application and it can only be reproduced sometimes and only on client's location, which makes it extremely difficult to resolve. In the application the forms authentication is used. There is a login page to which every anonymous user is redirected. After user enters username and password, it redirects to DefaultURL or some predefined page. The problem is that sometimes when user enters correct username and password, it doesn't login, instead it just refreshes the login page without any error messages. After several tries of inputing username and password, user is able to login to the system.

See my login page Submit_Click code below:

Dim userName As String = tbUsername.Text
Dim password As String = tbPassword.Text
Dim returnUrl As String = Request("returnUrl")

[code]....

View 2 Replies

Forms :: Get One Of The Lists In .Net To Work Like The Ones In CDBurnerXP?

Feb 22, 2009

Is there a list or a way to get one of the lists in VB.Net to work like the ones in CDBurnerXP?I shows a small icon at the side, then has a title and a little description under that.Have designed a program around this style of list but now when i have came to .net to write it...

View 1 Replies

Forms :: KeyDown/ Shortcut Key Does Not Work?

Oct 30, 2010

I'm working on a simple calculator program for work in VB.NET and I'd like it that an operation could be performed without a mouse click and instead by using the Enter key. So essentially I want the segment of the program that is usually run by button to have the ability to be run by the Enter key.I'm using VS2010.This is what I was trying to do but I suppose I'm not doing it correctly because the Enter key does not do anything when I press it.

Private Sub btnCalc_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles btnCalc.KeyDown
Select Case e.KeyCode
Case Keys.Enter[code]....

View 3 Replies

Forms :: Monitor - Possible To Work Out What Program Is In Use

Nov 13, 2011

I am trying to build a program that monitors how other programs are being used and as part of it I need to figure out if it is possible to work out using VB code what window, program or process the user is currently using or Focused on.

View 1 Replies

Forms :: Work With Temp Folder

Feb 20, 2009

I hava a form app, that runs hidden, with just a notify icon, the goal is control worker schedule and alert them for some things they have to do.My problem is,when i open a form (with TopMost = True), it works if the user is admin of the machine or domain admin, if the user is "regular" user, the form just don't open or shown to the screen.I believe that it has got something to do with write permissions in the app folder. I have a contextmenu that works great, even restoring the hidden main form, it just doesn't show/open the other form, without any error.Shouldn't .net use the user $temp folder to write something? If not what's the best way for the app use the EnvironmentVariable("temp")?

View 7 Replies

Work With The COM Microsoft Forms 2.0 Multipage?

Jan 14, 2006

I was working with this control to make multiple pages fit on 1 main window. When clicking a menuitem, the program will go to the correct tab. Now the problem is, i only have the 2 standard tabs.. NOTE: This is NOT the standard Tab control found in VB.NEt 2005 ! Does anyone know how to add more tab pages

View 1 Replies

Audio Components Are Exposed By The .net Framework - Work With .wav Files?

Aug 18, 2010

About what audio components are exposed by the .net framework?

Can I work with .wav files? What kind of things can I do with .wav files as far as vb .net is concerned? Can I record? What should I look for when looking for info for .net related audio at msdn. Where else can I find info on this?

View 3 Replies

Forms :: Make Apps Work In Network?

Apr 10, 2009

i have finished build a simple inventory program. But this program just only work in single pc not at network. Could any body tell me how to make it work in network (multiple pc in network)?

View 7 Replies

Forms :: Rebooting Error For VB Frame Work?

Nov 5, 2010

I was sent here by someone else that said someone here might.Below. is the message I get every time I reboot. I am not sure if it's a .NetFrame Work 1.0 or 1.1 error or not. It may be Visual Basic as I really don't know. Also, may be where I uninstalled some program or another the wrong way, by just deleting the folder instead of using the add and remove programs. I did have 1 program uninstall in-correctly by Revo Pro Uninstaller also about the time I started getting this error. But, I do know in the header error box it does say ".NetFrame Work" though... I just adding these suggestion as it might help you know what the problem might be. I have XP Home 2002 with Service Pack 3 installed. I have repaired the .Net FrameWork 2.0, 3.0 , 3.5 and 4.0. I couldn't repair the 1.0 or the 1.1 as I have deleted my temp folders that must have had something the installer needed in them. I tried to repair them with the "Installer" located in the "Installer" folder but it ask for some file in the temp directory that I did not have so I had to cancel the repair.

[Code]...

View 3 Replies

Forms :: Short Cut Keys Dont Work?

Jul 8, 2009

I have formA.vb and I added some shortcut keys using the key_up event handler. Before coding the handler I change the keypreview property of the form to true. I added this code :

Private Sub IntRMA_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp
If e.KeyCode = Keys.ControlKey And e.KeyCode = Keys.C Then

[code].....

View 3 Replies

Forms - Combobox Formatstring Property Doesn't Work

Jan 19, 2012

I have a form created in VB.net. It is used to get some information form a user. The form is not bound to any data source.

A combobox on this form is used to enter a cost. I want the value entered by the user to be displayed using currency format. I have used the Format String Dialog that opens from the ellipses button on the FormatString property of the combobox and selected Currency. This put C2 into the FormatString property.

When I run my application, this format is not applied to the value entered into the combobox at the time the number is entered or when I leave the combobox.

View 2 Replies







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