|
Hi all,
I'm trying to write shoot date on the images from exif datas. I'm using Graphic.DrawString but it's not working. Weird thing is, when debugging it writes but when running not! My code is very simple;
Dim f As New Font(FontFamily.GenericSerif, 8.5F, FontStyle.Regular, GraphicsUnit.Point)
Dim graph As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(_img)
graph.DrawString(exifListBox.SelectedItem.ToString(), f, Brushes.Black, CSng(_img.Width) - 100.0F, CSng(_img.Height) - 30.0F)
Why it is not working when running?? Anybody has an idea?? Thanks...
Savas Cilve
|
|
|
|
|
Did you call Dispose() on the Graphics object (graph in your code) when you were done drawing with it?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Yeah I did it after your response but nothing changed
|
|
|
|
|
You might want to include the code around this code. There's something else wrong we can't see because there's not enough code to show us what else is going on.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
There is nothing around this code. But I solved this issue with adding
pictureBox.Image = _img
just after the graph.DrawString(...)
I guess my description of the issue let people think wrong
Thanks so much for your interest..
Savas Cilve
|
|
|
|
|
Yeah, if you show the picture or put it in a PictureBox, THEN make changes to the image, the changes won't be seen until you assign the picture to the PB again or redraw the screen image of the bitmap.
Changes to the bitmap image are NOT automatically updated in the controls that are showing them.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
|
BinaryFormatter.Serialize works well but BinaryFormatter.Deserialize throws an Exception
"The Assembly ProjectManagement, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null can not be found."
The Assambly lays in the same Directory like the DLL that is Serializing.
What can I do?
mfg
|
|
|
|
|
The listbox has a member "indexfrompoint" that returns the index of the item at specific coordinates. Is there a reverse function that gives the coordinates of an item with a given index?
|
|
|
|
|
of course it's a rectangle:
Public Function GetItemRectangle ( _
index As Integer _
) As Rectangle
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Sir/Madam,
Can I programically find out whether the particular table exist in the database or not.
Thanks abd Regards
|
|
|
|
|
you can do this by querying the DataSet's table-Collection with the method Contains.
e.g:
Dim ds As New DataSet
...
If ds.Tables.Contains("YourTableName") Then
...
End If
- walter
|
|
|
|
|
He said database, not DataSet .
|
|
|
|
|
your're right! sorry
- walter
|
|
|
|
|
amaneet wrote: Can I programically find out whether the particular table exist in the database or not.
Yes, however the exact query depends on the database.
For example, in SQL Server 2000 the query
SELECT * FROM INFORMATION_SCHEMA.TABLES gives you your starter for 10.
|
|
|
|
|
Hie guys. I am new to the forum but I hope it will be worthwhile to be here.
I need a project proporsal for any small system I can undertake as my college project. Others have been doing projects like Accounting systems, something to do with Intranet etc.
well I would prefer mine to be coded in VB6 if having a database the it should be SQL server database with something to do with the ineternet or intranet. please guys just send me anything. Any project that can be run in VB6.
My email is mtheprince@yahoo.com
Thanks
makedp
|
|
|
|
|
makedp wrote: I would prefer mine to be coded in VB6
My first piece of advice is not to do this in VB6. VB6 is almost completely obsolete now. It was replaced in 2002 by VB.NET (almost 5 years ago, during which time versions 1.1, 2.0 and 3.0 have been released)
|
|
|
|
|
Be creative, there sure is something you can think of to build. My advice would be to go for either C# or VB.NET, since these languages are modern and the framework is new and better supported.
WM.
What about weapons of mass-construction?
"You can always try to smash it with a wrench to fix that. It might actually work" - WillemM
|
|
|
|
|
WillemM wrote:
What about weapons of mass-construction?
"You can always try to smash it with a wrench to fix that. It might actually work" - WillemM
Its just that I dont have VB.Net as of now and need to get started. And the project as well. I can be creative but most of the projects are taken and need something new
makedp
|
|
|
|
|
Hello all!
sorry but I cannot find any specific section for vb6.so writing here.
When I run VB6 and try to start a new data project I get an error to refer to refer to datarpt.log for details - this is what the log says:
Line 2: Class {78E93846-85FD-11D0-8487-00A0C90DC8A9} of control DataReport1 was not a loaded control class.
Line 0: The file C:\bern\visbas60\Template\Projects\DataRpt.Dsr could not be loaded.
It's VB6 (brand new fresh install) - Windows XP
Any ideas?
Thanks!
|
|
|
|
|
In the listview i want to change column Header of each item.for example i want that my column header's font be "Titr" while items and subitems font be "Tahoma"
please help me
thanks
|
|
|
|
|
I want to read the contents of a ms-Word (Doc) File?
Actually i want to know how can i read the contents of a doc file.
Suppose email-id is written in a doc File and i don't know where it is
written in that doc file. What i want to do is to Retrieve this email id from
the doc file.
How can i do that? Kindly help me.
I will bw very thankful to you.
Alok Singh
|
|
|
|
|
You need to either read up on the Word file format, and write your own code to read it ( good luck ), or use Word itself, which can be controlled via COM and ( in recent versions ) .NET.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
will you tell me the step by step way how can i do read the
contents of a DOC File?
Alok Singh
|
|
|
|