CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Luthv

Page 1 of 26 1 2 3 4

Search: Search took 0.52 seconds.

  1. Replies
    12
    Views
    7,301

    Re: Program hangs with Doevents

    you can also try to put sleep command within the loop to ease the CPU load
  2. Replies
    4
    Views
    12,102

    Re: Cyber cafe control system

    Also check out cybera at http://sourceforge.net/projects/cybera/
    It's an open source cyber cafe management system written in VB6
  3. Replies
    2
    Views
    4,021

    Re: serialize a graphicspath

    You can use BinaryFormatter and adapter class derived from SerializableAdapter class to workaround that. Have a look at the second post from the last for an example on how to do this.

    In short,...
  4. Replies
    3
    Views
    2,146

    Re: Help - Low Level CBTProc Hook

    This is an old post I made for VB 6 but I think it still holds true for C# RegisterShellHook
  5. Thread: Resizing polygon

    by Luthv
    Replies
    2
    Views
    6,045

    Re: Resizing polygon

    You need to recalculate but it is a simple task to do using the matrix class


    using System.Drawing.Drawing2D;

    private void ScaleTwiceAsBig()
    {
    Point[] myPoints;
    ...
  6. Re: Winsock problem, probably a sign of the upcomming end of the world!!

    I couldn't offer any help what so ever, but i would really like to hear how the story ends, or if it's ever have an ending :p

    And to think that I would start my own socket project in the next...
  7. Replies
    3
    Views
    1,289

    Re: using foreach and arraylist

    Look for IsVisible method in System.Drawing.Drawing2D.GraphicsPath class, you can create new instance of this class then use method like AddEllipse to add your shape to the path then call the...
  8. Replies
    1
    Views
    2,315

    Re: Client area of windows Form

    Just find the the real mdiclient control from the form controls collection and use its clientsize property


    foreach (Control ctl in this.Controls)
    {
    if...
  9. Replies
    11
    Views
    1,296

    Re: window forms in c#

    You can also use UserControl instead of form if you want something like the visual studio option dialog
  10. Replies
    1
    Views
    890

    Re: how to trap enter key??

    private void comboBox1_KeyDown(object sender, KeyEventArgs e)
    {
    if (e.KeyCode == Keys.Enter)
    {
    Debug.WriteLine("enter");
    }
    }

    but beware...
  11. Replies
    2
    Views
    1,756

    Re: How to read text from PDF files with .net

    Google for "C# PDF library", seems like there are some open source pdf libraries out there. Here's one http://itextsharp.sourceforge.net/
  12. Re: Hot to have a transparent background in an ownerdrawn picture

    If you only want to draw icon with its transparent background then why not use DrawIcon method instead of DrawImage?
  13. Re: Hot to have a transparent background in an ownerdrawn picture

    I don't know if I understand your question correctly but perhaps you can use something like in this example here
    http://www.bobpowell.net/transcontrols.htm
  14. Re: little gliche in complex mouse tracking program

    First of all I would suggest you break down your code into classes, this way it would be much easier to localized the problem, don't put all your codes into one form.

    In my attached class I've...
  15. Replies
    1
    Views
    922

    Re: Typeconverters for Abstract Classes

    This is not exactly what you needed but perhaps it would give some pointers:
    http://www.urbanpotato.net/Default.aspx/document/2001
  16. Replies
    5
    Views
    9,297

    Re: GDI+ DrawImage(Bitmap, ...) stretch problem

    Nope, .Net 2.0 have the same problem, so I guess you better use StrectchDIBits with some P/Invoke rather than relying on the .NET interpolation
  17. Replies
    5
    Views
    9,297

    Re: GDI+ DrawImage(Bitmap, ...) stretch problem

    Hi,

    Try nearestneighbor interpolation mode if you're using .net 2.0


    g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
  18. Re: c# - passing an array of structs to a native DLL

    I don't have visual studio handy so this might not 100% correct


    [StructLayout(LayoutKind.Sequential)]
    public struct SID_SEARCH_RESULT_DATA
    {
    public ulong ulFieldID;
    public ushort...
  19. Replies
    5
    Views
    1,098

    Re: design pattern problem

    you could also delegate IsOperator check to the implementation class so the base abstract class doesn't need any modification when new implementation is added, and the only list you have will be the...
  20. Replies
    1
    Views
    670

    Re: Checking if Control is held

    Just handle the KeyDown event and check e.Control parameter value to see whether the control key is pressed or not
  21. Replies
    3
    Views
    963

    Re: window form's combo box

    reset the selectedindex property to -1 before changing the datasource, this way the previously selected item will not be shown
  22. Re: Getting a programs ui to run at the login prompt

    Running an application on start up usually involves placing a command in windows registry, it doesn't have any direct relation with the application being developed in VB or C#.

    So one thing that I...
  23. Re: How to raise event trapping mouse wheel scroll?

    I've just remember one thing, you can use ScrollableControl class to support mousewheel, and it already has Mousewheel event built in



    public partial class UserControl1 : ScrollableControl...
  24. Re: How to raise event trapping mouse wheel scroll?

    I assume that in you placed these labels and text in your user control right? If that's the case then the usercontrol will never gain focus since it will always give focus to it's child control....
  25. Re: How to raise event trapping mouse wheel scroll?

    The user control needs to have focus before the mousewheel message is processed. Try clicking in the usercontrol to set the focus to it, and set the break point on if (Mousewheel != null) line
Results 1 to 25 of 649
Page 1 of 26 1 2 3 4





Click Here to Expand Forum to Full Width

Featured