C# - Adding Picture Description On A Separate Form?

May 27, 2012

I have picture boxes added to a FlowLayout panel and a ContextMenu strip (associated with picture boxes) with 'Add description' item.

When I right click on a PictureBox and select 'Add description', a new form pops with large preview of the picture and a text box to write the description.

How can I preserve the text written by the user on the new form, after it's closed, so if user wants to edit the description, he doesn't have to type it from scratch again?

I figured I'd have to store the description somewhere and load it into the form when user clicks on the same picture again, but how can I know what picture he clicked on?

View 1 Replies


ADVERTISEMENT

Refresh ComboBox After Adding New Values Via A Separate Form

Feb 15, 2012

how can i Refresh ComboBox After Adding New Values via a Seperate Form in vbnet.

View 13 Replies

Multi-threading Forms - Open A Separate Form As A Separate UI Thread From The Start Up Form

Oct 27, 2011

I have a few forms that have a lot of really intensive updating along with a great deal of user interface (text boxes, button clicking etc) Is it possible to open a separate form as a separate UI thread from the start up form that called it to "show" or open or whatever the new method might be?

View 6 Replies

Exe Program. Via VB 2010 - Loads A Picture And Description Of A Selection From A Radio Button ?

Aug 18, 2010

My problem is, I just finish creating a program, that loads a picture and description of a selection from a radio button.

Everything works on MY comp, but when i go to my lil sister comp and load the .exe file there, everything works too EXCEPT the image....the error is something along the line " C:documentspictures ame.jpg" not found.

My question is: how would I store the image to the program via another file or the program itself. so that when I "build" my program, I just need to run the .exe and lets say another file "for ex: .dll ", with all the images stored inside. And I dont know how to create and work with .dll file or whatever file is more convience.

View 4 Replies

Adding Items To ListView In Separate Thread?

Jan 26, 2010

For some reason, the following code is causing me some issues. This code pulls lockout status data from AD and contains the data within a datatable. An event is raised from the threaded procedure to add the data to a listview control. For some reason one row of data gets added to the listview control and when you run the procedure gain, 2 rows of the same data gets added, and then 3 rows, etc.

This code calls the procedure "CallGetUserLockout"
GetLockoutStatusToolStripMenuItem.DropDownItems.Add("For Current User - " & User, Nothing, AddressOf CallGetUserLockout)

[code].....

View 3 Replies

Adding More Than One Picture To A Picture Box?

Jan 14, 2010

I have a Picture Box on a Windows Form Can I add more than one picture to it?

View 3 Replies

Adding Picture At Runtime?

Feb 2, 2010

How to add image at runtime when click the picturebox? Is picture box is suitable for it or not?

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

Adding Click Event To Picture Box

Apr 26, 2012

how to add click event to picture box control?

View 2 Replies

Adding Picture Boxes Every Time Text Changes

May 11, 2009

Basically im trying to add 4 new picture boxes everytime a specific text changes. This is a picture developer based off the binary of a number 1 - 10 I can get 4 to change everytime the text changes but i have no idea how to add 4 everytime the text changes. here is the coding i have so far.

Imports System.Drawing
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)

[Code]......

View 5 Replies

CoinToss Picture Boxes And Adding A Flip Module With No Arguments?

Mar 29, 2009

i have a problem that wants to display a random series of coin tosses(coins flipped per each user click)i can't get the picture box to display the coins

Public Class CoinToss
Dim randomObject As New Random() 'creates random object
'display results of coin toss

[code].....

it should count the number of time the "toss" button is pressed and display that number as welli also need to add a flip module that doesn't take arguments and displays false for tails and true for heads, but i'm stuck

View 3 Replies

String Manipulation - Separate Three Fields Of The Phone Number And Display In Three Separate Text Boxes?

Feb 23, 2012

I created a telephone number form where the user enters the telephone number in a text box as (nnn) nnn-nnnn. The first 3 digits in parenthesis are the ISD code, the next three are the area code and the last four are the local number. I need to separate out these three fields of the phone number and display in three separate text boxes labeled appropriately. Now, suppose the user enters the phone number in a text box as a continuous string of 10 digits, where the first three represent the ISD code, the next three represent the area code and the last four represent the local number. I'm lost as how to change this string into the form (nnn) nnn-nnnn. This is what I have

[code]...

View 3 Replies

Create Separate Object Instances For New Objects In Separate TabPages?

Sep 17, 2010

I have a TabControl object on my form with many tabs created in code (TabPages) and my problem is that the same objects that are in the initial TabPage needs to be in the other TabPages created in code, I have this done in code when the user clicks the 'New Tab' menu option, however the same code is used for any new tabs created. The problem created here is that I have an event against one of the objects that appear in the other TabPages, but because the same code is used to create any new tab pages, the event will only work on the newest tab page, if that makes sense? By the way these objects that appear on the other TabPages are properties at the top so events can be handled against them in the respective subroutine.

[Code]...

View 5 Replies

Possible To Have Separate Combo Boxes That Will Give Separate ID Values But Using Same Table?

Apr 30, 2010

I'll get straight to my problem - I'm currently coding in Visual Studio.I have a table (countries) with the columns ID | Name. The table is filled with around 28 records.I also have a form with 4 combo boxes (set up as 1,2,3 & 4) that I want the user to select. These combo boxes will display the names from the table countries. I then want to use the selected names in the combo boxes to Insert into their corresponding ID into another table. For example England would have the ID 1, USA the ID 2 etc.So, is it possible to have separate combo boxes that will give separate ID values but using the same table? At the moment I can't seem to find a solution.Eventually the form will have more than 4 combo boxes so I don't want to use separate bindingsources for each combo box.

View 5 Replies

Using A Single Picture Box To Display A Single Picture Form A Bank Of Pictures?

Mar 22, 2011

I have a few problems i need to solve. Firstly, I am looking for a piece of code i can use to display a picture from a bank of pictures. It will work on the basis of generating a random number and loading a picture that corresponds to that number.

i.e. Dim RandNumber As Integer
Dim RandClass As New Random
RandNumber = RandClass.next(1, 10)
If RandNumber = 1 Then
Picturebox1.image = picture1

[Code]...

Secondly, can I then use subsequent picture boxes to display pictures from the same bank of images, without displaying the same image? Finally, I then need to be able to click the picture or a button beneath the picture to select it as an answer to a question and then the whole process starts again.

View 1 Replies

Access To A TextFields In A Separate Form

Apr 30, 2009

In an application with multitab on a user Form after collecting some information I will plug it into an access database and collect data and disply it with another "Second" User form.On the second user form I make a selection from 1-10 selection on the second user form, and again I will read the access database using the selected data by the user and would like to plug in to the First user form and close second user form.Somehow my textfield is not accessible and I get the yellow tip of "PLName is not member of 'Windows.System.Forms.Form'"[code]

View 4 Replies

Create A Separate Form To Put The Viewer?

Mar 30, 2009

I have a windows form with a textbox bound to a data table and a PDF Viewer both in the same form. I could change the text on the textbox and the Viewer would show whatever is linked to the textbox. I am trying to create a separate form to put the viewer in but at a loss on how to link it to the textbox on the first form.

View 4 Replies

Create New Form On Separate Thread?

Jan 10, 2010

I would like my application to do something (in one form) and while form is doing that i would like to show another form to the user. Code is:

Private Sub blaa()
Dim a As New Working() 'working is another form
a.Show()
'Do some stuff
a.Close()
End Sub

But when i make new form i find it is on the same (main thread) and therefore new form also frozes. How to make new form on separate thread?

View 4 Replies

Detecting Victory In Separate Form?

Feb 24, 2009

In a project I'm working on, I have 3 separate mazes, a Splash Screen, and a Module for my global variable(gWin, to detect wins on the mazes). When you finish a maze, I'd like to get it so that it does not allow you to go back and redo a maze, to prevent cheating as I want a final screen to appear when they complete all 3 of the mazes. Is there a way that I can make a variable or something to be able to check if a maze was already completed then cause that maze to have it's .Enabled property set to false?

View 8 Replies

Dock A Separate Process In Form?

Mar 9, 2010

I'm just wondering if there is any way to dock a separate process in my form? For example, Firefox.

View 2 Replies

Have TextBox On A Form In Separate Answer's

Feb 4, 2011

I Have a textBox on a form to give me my IP address (but I have 3 anwser's going into 1 textBox) When I use a button to revile The anwser's,all in one Textbox .How can I seperate Each anwser's with a space. Code Below: (TextBox5 is the TextBox I need to seperate the Answers) [code]

View 12 Replies

IDE :: Get The Toolbox To Be To The Left And Separate From The Form?

Jan 17, 2011

when I open an application to make changes, and I open the toolbox, it appears in the work area with my form. How can I get the toolbox to be to the left and separate from the form?

View 2 Replies

Start Separate Exe Specific Form?

Jan 6, 2011

This may sound silly but is it possible to run a separate exe and call a specific form to load?

For example:

Let's say I have two exes one that checks licensing and then once that is done it calls another separate exe to load a specific form based on the type of license selected?

It sounds doable but can anyone share a snip it of code that may do the trick?

View 16 Replies

Update A Form From A Separate Thread?

May 9, 2010

I've looked at the on line doc over and over, and I can't seem to figure out why this won't work. This code runs the thread, and the thread seems to execute the code in the 'threadsafe' sub, however neither the progress bar is updated or the button click performed.

Imports System.Threading
Public Class VisNotify
Inherits Form

[Code].....

View 4 Replies

VS 2010 Separate Exe For Individual Form?

Oct 20, 2011

I'm creating a project but I only need exe's as my final thing. I don't know how to put it in simple terms, but here is how I need it to be..The main window remains open i.e.frmMain. ther other forms are only called by an external program (LanSafe UPS Software) every time something happens (Either batteries gets disconnected or power fails). Each of these forms have to be separate executable files. This application is for sending SMSs using Fusion 100 modem. Is what I need possible?

View 8 Replies

Access A Progressbar In Form From A Separate Class?

Oct 18, 2009

I need to be able to access a progressbar in my form from a separate class.

I tried


Dim Prog as Progressbar
Public Property Pg()
Get

[Code].....

I need to be able to access a control from a separate thread and return to the thread again.

Edit: Its just an example I gave prog a value of the object from the form and the invoke required is put in a sub so thats not my problem.

View 3 Replies

Check To See If Button Was Clicked In Separate Form?

Jun 1, 2011

okay on my main form i created an instance of another form

Dim secondform As New frmSecond and i called it with this

secondform.ShowDialog() okay now when the secondform pops up there is a "OK" button and "Cancel" button. how can i tell which button was clicked? If "OK" was clicked i want to perform a task, otherwise nothing happens..

View 3 Replies

Keeping Multiple Form Instances Separate?

Sep 16, 2009

When I create more than one instance of the same form and I call a method on any of these instances, the code only fires on the most recently created instance. Even when I click a button on that form, it executes on the other form. How can I call these and keep them as distinct objects?

For example: if I build Form1 with a public method called ChangeMyColor and a button to call that method. Then in the main app I set MyForm1 = New Form1
and MyForm2 = New Form1, then call MyForm1.ChangeMyColor, the color changes on the second instance. Even if I click that button on the first instance, the color still changes on the second.

View 8 Replies

VS 2010 Getting Checkeditem From A CheckedListBox On A Separate Form

May 31, 2010

Ok, I have a CheckedListBox that I open as so.

[Code]...

However, the value of the count is always 0 when the form closes after clicking OK.

View 2 Replies

Winforms - Launch Form As A Separate Process

Mar 28, 2011

I have VB.NET application in which one of the form has IE control in it, the application starts initially with memory size consumed around 9 MBs, but when IE form is launched, the memory consumed rises to 27 MB, and when that form is closed, the memory reduces merely by 3-4 MBs, so why memory allocated to IEFrame is not de-allocated automatically?

View 3 Replies







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