I have a form with a data repeater control, connected to an Access database. I can display all of the fields from the database just fine, they are all text or numeric values, but rather than hold images in the database, I've decided to just store jpg filenames, which I then want to reference from within the data repeater control, and thus displaying the required image inside a PictureBox control. Each row in the database has a unique image.
...
User Profile
Collapse
-
Maximum form size restriction in Visual Studio 2008
I'm using Visual Studio 2008. The o/s is Win XP Pro.
Here's my problem:
The machine I'm working on is a PC and the monitor resolution is 1280 x 1024
The target machine on which the app will run is a media centre PC hooked up to a 42inch LCD display, on which the screen res is 1360 x 768.
I want the form to fill the entire TV screen, but my attempts to increase the form size to do this are thwarted by Visual Studio.... -
Excellent! Everything's moving along nicely now, after a couple of weeks of 'writer's block' I'm actually making leaps and bounds with the app. I'm finding using vb.net and Visual Studio to be quite a steep learning curve, but thanks to everyone who took the time to reply, and especially Plater who hung in there, I'm beginning to get the hang of it.
Many thanks. -
I'm now in the process of doing as you suggest, iterating through the datagrid to transfer values from the hidden (filename.jpg) cell into the corresponding Image display cell. The problem I'm having (again) is in getting the image text path to display as an image, instead of simply the text itself.
The bare bones of the code is this:
DataGridView1.R ows(0).Cells(2) .Value = DataGridView1.R ows(0).Cells(4) .Value
...Leave a comment:
-
Thanks. That's definitely moved me forward. I hadn't realised that I could just add an unbound column of any type to the datagridview. After adding an Imagetype column as you suggested, I thought I was close to solving this, but the answer still seems tantalizingly just out of reach.
The trouble now is that I'm having difficulty referring to the cells in the new column to assign jpg files based on a path and the filename in the corresponsing...Leave a comment:
-
But then doesn't that conflict with the text property of the data being brought in from the database? I need some way to convert a textual picturexxx.jpg value to the actual path of the jpg and display it as an image in the datagrid cell....Leave a comment:
-
Er.... no. I'd never even heard of that until just now. It might be what I'm looking for, but it's a little difficult for me to decrypt the 'help' pages at the MSDN site. Any further help with that suggestion would certainly be appreciated. One thing that occured to me was to change one of the column types of the datagrid, and to that end, I attempted to edit the attributes using the Edit Columns dialog box. All seemed to be going well at first,...Leave a comment:
-
I'm looking into the possibility of using a datagrid to achieve my goal of image and adjoining text in a scrolling box, but once again, getting the image to appear is proving tricky. Is it possible to have an image in a datagrid, as an embedded picture box control perhaps?Leave a comment:
-
I now have things ironed out, in respect of my original query, but would appreciate a bit of input regarding vb.net forms. Is it possible to have a ListBox, or maybe a ListView box, or...... anything... which could contain images? I'm not talking about simply icons here either, but slightly larger images. I'm hoping to populate such a box at run time by referencing paths to images using an Access database, to produce a scrolling box of images and...Leave a comment:
-
Thanks for your input.
Things are moving along, (slowly).
Here's what I have now:
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click
PictureBox1.Ima geLocation = "E:\Visual_Basi c_Projects\movi es_01\movies_01 \bin\Debug\thum b_pics\" & "tn_" & FilenameTextBox .Text & ".jpg"
...Leave a comment:
-
Display jpeg in vb.net form by using path stored in Access.
If someone could take pity and help me out with this before I drive myself completely nuts, then I would really appreciate it.
Here's what I'm trying to do:
I have an Access 2003 database containing a table which (amongst other things) holds the filenames of numerous jpeg images stored in an external folder. O/S is Windows XP Pro. btw.
I also have a vb.net 2008 form connected to the database. That part...
No activity results to display
Show More
Leave a comment: