|
How can I read jpeg's metadata in IPTC format?
Pouya
|
|
|
|
|
|
If Not (e.KeyChar >= "0" And e.KeyChar < "9" Or e.KeyChar = vbBack) Then
e.Handled = True
modified on Sunday, March 8, 2009 12:49 AM
|
|
|
|
|
WTF
|
|
|
|
|
"An unhandled exception occurred and the all reply to your post should be terminated."
Have some
|
|
|
|
|
again[^]
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Your IP address has been noted and your location triangulated. As you read this, a highly trained secret agent is on his way. If you do not stop your useless posting habits, he will stand behind you and release a highly trained ninja monkey. I cannot be held responsible for the ninja monkey's actions
|
|
|
|
|
Once again, you have post a snippet of code wihtout explaining anything about a problem you're having with it, or any other type of intelligent question.
|
|
|
|
|
You are an idiot. You post this sort of drivel daily. What if your boss finds CP ? What if he realises how utterly useless, even by Indian outsourcing standards, you are ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Looking to create a global hook to intercept WM_WINDOWPOSCHANGED messages. So far all attempts to create a hook always end up not functioning properly. I create the hook then filter out messages that aren't what I'm looking for, but it always seems to make all non-system processes that are running crash.
My Code:
Public Class WM_WINDOWPOSCHANGED
Shared Event WindowMoving(ByVal handle As IntPtr)
Shared hookhandle As Integer
Shared hookhandler As HookHandler
Private Sub New()
End Sub
Public Shared Sub CreateTheHook()
'If hookhandle = 0 Then
' hookhandle = User32Imports.SetWindowsHookEx(CInt(HookCodes.WH_CALLWNDPROC), hookhandler, Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()(0)), CInt(0))
' MsgBox(hookhandle)
'End If
hookhandler = New HookHandler(AddressOf ChangeButtonHost)
hookhandle = User32Imports.CreateSystemHook(Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()(0)), hookhandler)
If hookhandle <> 0 Then MsgBox("hi")
End Sub
Shared Function ChangeButtonHost(ByVal nCode As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr)
If nCode >= 0 Then
Dim cwps As CWPSTRUCT = DirectCast(System.Runtime.InteropServices.Marshal.PtrToStructure(lParam, GetType(CWPSTRUCT)), CWPSTRUCT)
Dim winfo As New WindowInfo(cwps.hwnd)
If cwps.message = &H46 And WindowInfo.IsValid(cwps.hwnd) And winfo.ShowInTaskbar = True Then
RaiseEvent WindowMoving(cwps.hwnd)
End If
End If
Return 0 'User32Imports.CallNextHookEx(hookhandle, nCode, wParam, lParam)
End Function
End Class
Friend Class User32Imports
<DllImport("user32.dll", CharSet:=CharSet.Auto, CallingConvention:=CallingConvention.StdCall)> _
Friend Shared Function SetWindowsHookEx(ByVal idHook As Integer, ByVal lpfn As HookHandler, ByVal hInstance As IntPtr, ByVal ThreadId As Integer) As Integer
End Function
<DllImport("user32.dll", CharSet:=CharSet.Auto, CallingConvention:=CallingConvention.StdCall)> _
Friend Shared Function CallNextHookEx(ByVal idHook As Integer, ByVal nCode As Integer, ByVal wParam As IntPtr, ByVal lparam As IntPtr) As Integer
End Function
End Class>
EDIT: CreateSystemHook was my attempt at doing the hook code in C++, that also failed.
|
|
|
|
|
It's not going to work. You can't implement system-wide hooks inside managed code. You'll have to write a C++ "normal" .DLL to handle the hook, then expose an itnerface you can use to talk to managed code, like C# or VB.NET. .NET does not support the exports required of a .DLL to support a system-wide hook. It'll work for a "local" hook. That is, hooking your own application, but not system-wide. You can find Microsoft's documentation on it here[^].
|
|
|
|
|
Thanks for the response. I've looked at the MSDN docs for hooks, and created a C++ version, but I'm getting the same results.
|
|
|
|
|
|
Thats for the mouse and keyboard hooks right? Neither will work in this case.
|
|
|
|
|
Hey guys i'm building an application with a multi tab interface, i have a textbox above and a tabstrip below.
What i want is for the textbox to remember the entry of the active tabpage even after switching back nd forth b/w tabs, for example i want to able to create a new tabpage with a texbox entry "hello", and a second tabpage with a different textbox entry like say "world" but still same textbox and wen i switch b/w tabs, i want the textbox to still hold the textbox entry for each tab... Just like tabs in firefox browser... I tried creating instances of the textbox any time a new tab was created, but it did not work, all tabs still had thesame texbox entry.... Im really hoping u guyz find a solution cuz i've been tryin to solve dis prob for the past three days...
Note, am not creating a browser application and am pretty noobish.
I hope u guys get me.
Thanks in advance
|
|
|
|
|
The text box would presumably be outside of the tab control. In that case you can handle the event of the user switching tabs to update the text box.
sphlynx wrote: Im really hoping u guyz find a solution cuz i've been tryin to solve dis prob for the past three days...
...
I hope u guys get me.
It would be easier if you didn't use text-speak.
"Im" has an apostrophe "I'm".
"u" either means you've switched to Dutch or you are lazy. The word is "you".
"guyz" is incorrect. To form a plural in English you generally add an "s", never a "z".
"cuz" is just laziness. The word is "because".
"tryin" is again lazy. The word is "trying".
"dis" is more laziness. The word is "this".
"prob" is seriously lazy. The word is "problem".
Seriously, if I had a child that wrote like this I'd send them to a remedial class.
|
|
|
|
|
Thnks for d reply, tab switching is not the main thing here, wat i want is for d textbox to remember the text input entered wen tab1 is active, then wen u create a new tab, it clears the textbox and if another text is entered wen tab2 is active, it should also store it, then if u go back to tab1, the textbox should display the text input entered wen tab1 was last active and vice versa...
I dont think the use of proper english should be an issue here am not writing an essay or term paper, if u hav an answer to the question, pls kindly state it, instead of deviating from the issue at hand.
Thanks...
|
|
|
|
|
sphlynx wrote: I dont think the use of proper english should be an issue here am not writing an essay or term paper
But it does make it very difficult for me to read. The reason essays and term papers for school, college or universities require you to write in proper English is to prepare you for the real world.
For example, I recently had to scope out some work for a client. In that I had to seek some suppliers for data that was needed for the solution. One potenatial supplier was the Royal Mail. They communicated like you in emails. They lost the sale.
If I can't read what you are tying to say then I find it difficult to help you. You have to help me (understand your problem) to help you (find a solution).
sphlynx wrote: if u hav an answer to the question, pls kindly state it, instead of deviating from the issue at hand.
I'm not deviating. I am trying to help you. You will find that if you write properly more people are willing to help you. That benefits you. Therefore by pointing this out to you I am helping you. I can work around the odd typo or slight grammatical error if English is your second language, but showing an arrogant disregard to the language you are attempting to communicate in will not help you.
If you want the text box to remember what was in it when a particular tab was active then create some sort of tab state object (i.e. create your own class to put things in) with a property to hold the information in the text box. Add an object of this class to the Tag property of each tab. When the text is updated in the text box then also update the property in your object.
|
|
|
|
|
|
Hi Everyone,
I am building an app where it will be necessary to delete files from a drive.
This I have noticed will need some administrator privileges. I don't want to adjust
the UAC settings of the project. I just need this privilege at run time. I have been using
the System.Security.AccessControl class but to change the rights has not just been possible.
Can someone help.
|
|
|
|
|
If your app requires the use of the user's admin account, you'll have to add a manifest to your project. You can follow this[^] for the step-by-step.
|
|
|
|
|
I have a menu item control. Which has four buttons.On clicking each button show the
window, except the one button, which shows the show dialog windows.
After opening all windows other then show dialog window, and finally opening the show dialog window, I changes the windows states for all(i.e minimizing all windows.)
Now I am opening a window other then the show dialog window, by clicking the mouse on it(because this is presently in minimized mode).
Now I am unable to perform any action in this window.
My Question is , How should i bring the opened show dialogbox window in front of this non show dialog box window? So as to alert the user, to first perform any action on th show dialog box.
|
|
|
|
|
Your question is difficult to understand, but I'm going to take a stab and say that you might have to set the TopMost property of your dialog window to True before you show it.
|
|
|
|
|
Dave,
At which point u find the problem in understanding the question?
Thanks
|
|
|
|
|
Beginning to end. It's not your English that has the problem. Most of your description makes assumptions that the reader knows exactly what you're talking about at all times without you explaining or assigning concrete references to objects and concepts.
modified on Monday, March 9, 2009 3:11 PM
|
|
|
|