User Profile

Collapse

Profile Sidebar

Collapse
vishal1082
vishal1082
Last Activity: Mar 29 '17, 11:34 PM
Joined: Apr 7 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • vishal1082
    started a topic Detect Windows-wide drag event

    Detect Windows-wide drag event

    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...
    See more | Go to post

  • vishal1082
    replied to virtual key board as a form
    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
    Code:
    SendKeys.Send(Keys.Enter.ToString());
    you could have used this, sends "enter" key to the active window.
    See more | Go to post

    Leave a comment:


  • vishal1082
    replied to virtual key board as a form
    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.
    See more | Go to post

    Leave a comment:


  • vishal1082
    replied to virtual key board as a form
    he meant if you wrote the code of both of the applications?
    See more | Go to post

    Leave a comment:


  • vishal1082
    replied to can't write in textbox WPF
    in XAML
    great! works but the text looks... choppy.. like... not anti alised, i dont know.. wierd
    See more | Go to post

    Leave a comment:


  • vishal1082
    started a topic can't write in textbox WPF
    in XAML

    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
    ...
    See more | Go to post

  • vishal1082
    replied to how to Convert String into DateTime
    DateTime.Parse wont work either because he was giving just a year...
    See more | Go to post

    Leave a comment:


  • i said that, i didnt *understand* what he exactly wanted to do.. it was a guess sheesh.....
    See more | Go to post

    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)
    See more | Go to post

    Leave a comment:


  • vishal1082
    replied to how to Convert String into DateTime
    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..

    Code:
    DateTime dt = new DateTime(datetimepicker1.Value.Year, 1,1);
    this will although put month and date as 1st January
    See more | Go to post

    Leave a comment:


  • please write codes in [CODE] tags
    See more | Go to post

    Leave a comment:


  • vishal1082
    replied to reflect mouse on label to button
    nothing for transparency?
    See more | Go to post

    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:...
    See more | Go to post

    Leave a comment:


  • What exactly the exception is?...
    See more | Go to post

    Leave a comment:


  • vishal1082
    replied to reflect mouse on label to button
    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
    ...
    See more | Go to post

    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.
    See more | Go to post

    Leave a comment:


  • vishal1082
    replied to reflect mouse on label to button
    nope i have tested it on windows 2000 too, it does not change theme :) i run on Win7
    See more | Go to post

    Leave a comment:


  • vishal1082
    replied to reflect mouse on label to button
    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...
    See more | Go to post

    Leave a comment:


  • vishal1082
    replied to reflect mouse on label to button
    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.......
    See more | Go to post

    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,...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...