Select Image File and Display it in Forms (Visual Basic) - vb.net

I have a form, in which it has a few pictureBoxes that i intended to use as a normal button.
first button is the select file button where when the users click the button, a window will pop up allowing the users to select files to be analyzed.
the second button is a run button where when the users have selected the desired files, clicking this will run the application to analyze the image file.
third button is a stop button to stop the analyzing process.
last button is a help button that provide the help and support.
the question is that how do i display the selected files on the form in a tabular format with basic information like file name, file type, date created and date modified?

You can use a listview control with the .View property set to Details. Add an item and subitems for each file.

Related

PictureBox Missed In the .exe VB.net

I have A pictureBox in a form
I have declared a Picture box called Then
Field.Image = Image.FromFile("C:\Users\ABK\Desktop\Othello\field.png")
Field.Size = New System.Drawing.Size(483, 610)
Then I added the picbox to the form but when i copy the exr into another computer I don't see the picture
when I copy the exe into another computer I cannot see the picture
how can I include it in the exe file
Please try to keep the answers as simple as possible and demonstrate with examples
click on your form.
the properties tab should be on the bottom right
find image or background image and click on it
click the ... on the right side.
image as example of instructions above
a menu should show up.
Click import then select the file you want saved,
then press open it should go back to the menu,
select (none) to set your form image back to normal,
image as example of instructions above
then press ok,
go back to your code and change
Field.Image = Image.FromFile("C:\Users\ABK\Desktop\Othello\field.png")
to Field.Image = My.Resources.field
This should keep the image when you give it to your friend

How to hide graph in qlikview

I want to hide a graph in qlikview, display it when I want, but not delete it.
Your help is very appreciated
Thank you
Solution on website is not showing, so have included this response.
To show/hide an item in Qlikview, there needs to be a variable in place that can be altered. To create a variable, open the Settings Menu and then select variable overview. I would suggest a name of vShowGraph, create this and then click ok.
To set the variable on screen this can be done by either an input box or by way of button/trigger set on an item. For ease of user, I would suggest using a button.
To create a button, right click on your qlikview sheet anywhere blank, select "new sheet object" and then button.
To link the button to your variable, open the actions tab on the button, click "Add", choose Action Type of "External" and Action of "Set Variable". Enter the variable name (vShowGraph in this example). In the value box enter this script
=if(vShowGraph='Show','Hide','Show')
Your variable and button are now linked, you can now click it and it will change the variable from the values Show and Hide.
To hide your graph using this variable, right click on the graph and open the Layout tab. There is a box called "Show", change the radio button from Always to Conditional and enter the below formula.
=vShowGraph='Show'
Click ok and your graph will disappear if you haven't clicked the button. click the button and it will show.
If you have made any mistakes, you can still select the graph by opening the sheet properties and opening the Objects tab.

User Control Wizard

If you add Datagridview to a form, and click on it, a small right arrow appear at the top right. When clicking on it a a menu appears (Choose data source, Edit column, Add Column, etc...)
I am building a custom control based on datagridview. Can someone guide me or tell me where to start of how to add this functionality to my user control?

Is it possible to make a statusbar like notepad in VB?

I made a notepad using vb 2008 and I am facing a problem who I'd make the Statusbar.
any idea will be great.
Note: I am using the Textbox to read and write text
Thank you
You need to add a StatusStrip control to your form.
To find it, open the Toolbox, expand the "Menus & Toolbars" section, and double-click on the one named "StatusStrip".
Double-clicking on the control in the Toolbox will automatically add it to your form, and dock it along the bottom, just like it is in Notepad.
Once the control is there, you can customize it by changing properties in the Properties window. If you want to add information to the status bar, you do that by adding sub-controls inside of it. Click the drop-down arrow next to the "new" icon, and you'll see a list of possible choices:
"StatusLabel" — displays static text
"ProgressBar" — displays a progress bar, indicating the progress of a background operation
"DropDownButton" — displays a drop-down button, to allow a choice of multiple options
"SplitButton" — displays a drop-down button that allows a choice of multiple options, but also invokes the default option by a single click on the button.

Option Group frame: can I add text boxes that are part of the frame instead of rad button options?

Ok so this maybe a simple/silly question but I don't know so here goes:
In access let's say I want to have a frame control, so I click the option group button and add it to the desgin surface. However, I am not wanting to use this as a option group with radio button selection, instead I would like to add text boxes instead the frame, so that when I reference the frame, it references every control instead of it, hence the text boxes, cbo boxes, etc.....just as it would if they were radio option selections.
So can you do this?
I want whatever controls I add inside the frame to be easily referenced (i.e. make all controls visible just by using frameExample.visible = true) so that I can build my own tab control groupings.....
can this be done?
Thanks!
EDIT:
What I am trying to accomplish is having a form that includes a collection of controls (input controls - cbo boxes, text boxes, etc), that serve as the Main record information. These are saved to a table via an INSERT statement on button_click because this form is unbound.
Next I have 8 categories that are relative per each main record (and data that goes along with it). Each of these categories could have a sub form area and a button click that bring it's relative form into the sub form area. These sub forms would be unbound as well as I would just save data via SQL statement. So i know I could accomplish this by running the insert statement from the parent form, on the main collection control's data that would create the KeyID number, then run a SQL statement that would turn around and load that KeyID number right back onto the page in a hidden text box.
Then when I click one of the sub forms and load its relative collection of controls, I could then save that data along with KeyID for each of these sub-forms/tables.
SO......
I was wondering if instead you could define these controls as a collection so that you could hide and make visible all the ones you need on button clicks and avoid the need for additional forms (subs). I know that if a user enters data into a text box, and then somewhere along the way that box becomes hidden, the data still exists in it and still ends up in the SQL statement....
So I want all these controls to exist on the same form, but I thought what is I could encapsulate them into a frame like an option group, then I could call the frame and all the relative controls would be called up (made visible) as needed.
Sorry for the long explanation but I thought it would help.
I do not think you can do it with an Option Group, but what you are describing is pretty much a subform, yesno?
Some examples of hiding the tab control from an app that went live in March 1998:
Tab driven by transparent command buttons over labels styled to look like colored command buttons:
Same approach, more buttons:
In this case, fake colored command buttons don't drive the tab, but insted show/hide the tab and a subform. In this case, the tab is actually driven by the listbox:
A view of when the tab is hidden and the subform revealed. The listbox drives navigation within the subform, which has a visible tab on it:
So, there's a lot that can be done without showing the tab control.