I need to able to detect if the mouse is currently in a drag state, as in if it's dragging a snippet of text or a file. This could not only be from my own app, but any other application running in Windows - even explorer itself.
I want to show a form on the edge of the screen if the object being dragged is a compatible object to be dropped in my app, for example - my app won't accept .lnk files, so I don't want to show the form if...
User Profile
Collapse
-
Detect Windows-wide drag event
-
good job but this worries me, user may see the Alt+Tab menu while typing and it loses and gains focus again and again, and instead of using the Imported API's
you could have used this, sends "enter" key to the active window.Code:SendKeys.Send(Keys.Enter.ToString());
-
SendKeys.Send(K eys.Enter.ToStr ing()); will send the "Enter" key for example to the currently Active form., though i dont understand how will you manage to keep focus on your main form instead of your keyboard form when someone *clicks* a button for a keypress on the keyboard form since both are in different exe.Leave a comment:
-
-
great! works but the text looks... choppy.. like... not anti alised, i dont know.. wierdLeave a comment:
-
can't write in textbox WPF
i made a custom skinned textbox in App.xaml, here's the XAML:
...Code:<Style TargetType="{x:Type TextBox}"> <Setter Property ="Background"> <Setter.Value> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" MappingMode="RelativeToBoundingBox"> <GradientStop -
DateTime.Parse wont work either because he was giving just a year...Leave a comment:
-
i said that, i didnt *understand* what he exactly wanted to do.. it was a guess sheesh.....Leave a comment:
-
i made a application like that, i used XML's with text in different languages, but i dont understand, you are using images instead of text and want to.. "translate" text in images? if thats the way then as tlhintoq said just make different resource files with images in different languages and then use the resource file according to language (the same way i did with XML's -- was easy)Leave a comment:
-
Please write your codes in [code] tags
A DateTime object cannot contain just a year, if you just wanna store a year, then you can probably just use a int variable to do that, and if (not recommended) you want to store only year in DateTime object do something like..
this will although put month and date as 1st JanuaryCode:DateTime dt = new DateTime(datetimepicker1.Value.Year, 1,1);
Leave a comment:
-
-
-
i m not expert in WPF but if its same as WinForms, then on Line 32 you are not loading you are just adding a value to a array, and if that gives error.. its strange... i dont know what is problem, you could try using List class in System.Collecti ons.Generic and add values then use its ToArray() and insert the values in your myFiles[] string array, again i dont know if List class is available in WPF.
Code would be something like this:...Leave a comment:
-
-
after being stuck on this part for about 2 weeks and support from all of you guys, i m happy to say that i m screwed, no, jokes, anyways i am successful to be able to draw the text correctly, neatly and nicely by drawing a bitmap of the label and make the background of bitmap transparent (a little little problem here), here's the codez:
...Code:using System; using System.Collections.Generic; using System.ComponentModel; using
Leave a comment:
-
it looks like it is some paypal API?, normally these API's have well-built documentation for them, the code is though surprisingly easy to understand though its built on a website not WinForms.Leave a comment:
-
nope i have tested it on windows 2000 too, it does not change theme :) i run on Win7Leave a comment:
-
as u saw in application, that *button* is in the form displaying all the events on that date.. each button will contain time, discription, title and reoccurence of events, only for now i write the "Sample"s.
Anyways i thought of "another" idea that no one suggested me in this whole post... take a screenshot of label using DrawToBitmap and paint the image! howz that?, keeps the quality of text from label too, so i...Leave a comment:
-
so? there's nothing? :(
i used Graphics class, TextRender class and a Label together...
See the difference? WHY is there so much difference? same font, same color, same style.......Leave a comment:
-
if the DLL was built in Debug mode in Visual Studio then maaaaaaaaaybe yes, there are some decompilers (i dont wanna link/name here), they decompile the exe/dll to codes, though there are 2 problems:- They rename all the declared variables cause the built project dll/exe does not contain variable name information.
- They are not free. (maybe anyone of them i dont know any)
Though i *think* using decompilers is sort of illegel i dont know,...Leave a comment:
No activity results to display
Show More
Leave a comment: