dcsimg

Search:

Type: Posts; User: passel

Page 1 of 13 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    3
    Views
    124

    Re: Uploading a Vector Image to a Form

    From what I've read, to use a Webview you need to create XAML islands in your Windows Forms' to host the UWP control and that support started with Windows 10 version 1903.

    Our work has a strict...
  2. Replies
    11
    Views
    296

    Re: Capturing an image of two controls

    My wife has been in the hospital, and while sitting in the hospital room today thinking about something to do to pass the time, I decided to start working on a version of a jigsaw program myself, so...
  3. Re: Your first BASIC computer? Has your software survived?

    We use Wang PCs (80186) for Document processing in the early 80s.
    I found it somewhat amusing that since I just getting started with programing for a living in the early 80s that my Uncle mentioned...
  4. Re: Change directory and issue command with ffmpeg.

    Use /k instead of /c
  5. Replies
    11
    Views
    296

    Re: Capturing an image of two controls

    If you have an irregular shape, then you need a mask that matches that shape to keep the part of the image you want to capture.
    If you have a white version of the irregular shape with a black...
  6. Re: Right Triangle Solve for 3rd Point Coordinate

    Since you need two sides and an angle, or two angles and a side, given only two coordinates, which gives you one side, I have to assume the side given is the hypotenuse of the right triangle. Given...
  7. Replies
    10
    Views
    261

    Re: Keep getting this error at the end. :( :(

    As for you original problem, it would seem to indicate perhaps you aren't that familiar with VB6 to begin with, so using legacy VB I/O is doubly wrong.
    You use Put for Binary and Random access files...
  8. Replies
    17
    Views
    498

    Re: Picture1.Picture = Picture1.Image problem

    Perhaps you misunderstood my context. It was in regards to what you draw when AutoRedraw is false.

    When AutoRedraw is False, anything you draw has no effect on the .Image backing store. How long...
  9. Replies
    5
    Views
    186

    VS 2019 Re: Scaling a pdf

    Yes, that should work.
    The first parameter after page, should scale the X (normally defaulted to 1) (i.e. a percentage of X is applied to X) and the fourth parameter should scale the Y (a percentage...
  10. Re: Dynamic buttons with different events each buttons

    I'm sort of guessing of the top of my head here, as I haven't done this, but I would investigate since you would have to have five existing methods that you want to tie to the five buttons created,...
  11. Replies
    5
    Views
    186

    VS 2019 Re: Scaling a pdf

    I just did a search using "pdf addtemplate" and the very first link looked like it would be useful.

    I would assume you get the current scale, as that poster did, then multiply that scale by .98,...
  12. Replies
    17
    Views
    498

    Re: Picture1.Picture = Picture1.Image problem

    That's true. I thought about verifying my statement in regards to win10 since the desktop is a fully composited screen, meaning all the window elements are drawn in offscreen buffers and then...
  13. Replies
    17
    Views
    498

    Re: Picture1.Picture = Picture1.Image problem

    When you move the form (and the "windows" on the form, i.e. buttons and pictureboxes, etc.), windows saves itself some work, because it copies the screen area of the form and moves it. So, your...
  14. Replies
    17
    Views
    498

    Re: Picture1.Picture = Picture1.Image problem

    Yes, I guess I didn't think of that as a layer, but the background color is certainly the bottom layer, and is visible when you have a transparent gif.
    I've taken advantage of that myself in some...
  15. Replies
    17
    Views
    498

    Re: Picture1.Picture = Picture1.Image problem

    The picturebox has three levels of drawing.
    The .Picture is the lowest level, so would normally serve as a background image.
    The .Image is a back buffer, controlled by the AutoRedraw boolean.
    If...
  16. Replies
    3
    Views
    204

    Re: How to change to next row

    You say Counter is counting the pieces in the For....Next loop, but it isn't inside a For...Next loop, so is the For...Next loop you're referring to outside the Sub, calling the click event...
  17. Replies
    12
    Views
    410

    Re: Multi condition in VB?

    A quick test


    Private Sub Command1_Click()
    Dim s As String
    s = "Some random string with ALU in it"
    If InStr(s, "ALU") > 0 Then
    MsgBox "Its there"
    End If
    End Sub
  18. Replies
    12
    Views
    410

    Re: Multi condition in VB?

    Your string comparison looks a bit like VB.Net.
    Assuming you are using VB6, you would want to use Instr or possibly a regular expression, although I'm not competent in using regular expressions.

    ...
  19. Replies
    11
    Views
    476

    Re: double post issues

    Does VBForums have an auto-logout now?
    I know it logs you out if you don't select the "remember me" option when you log in. It has done that since I joined.
    I haven't noticed any auto-logouts, but...
  20. Replies
    11
    Views
    476

    Re: double post issues

    As stated, the Moderators don't have that option.

    If you can get in the habit of hitting the "Go Advanced" button at the start of replying to a thread, then you will never double post either since...
  21. Thread: Close Please

    by passel
    Replies
    17
    Views
    467

    Re: Setting Control Tag from Background Worker

    You can get an object unavailable exception anytime two threads try to access an object at the same time. It doesn't have to be GUI controls, but GUI controls would typically be the most common...
  22. Replies
    20
    Views
    884

    Re: DRAW line between two point

    I would probably do it one of two ways.
    Either at the end after all the lines have been drawn, go back and draw a green circle for the originating point "on top" of the red dot.

    Or, more likely,...
  23. Replies
    3
    Views
    181

    Re: Blank form when ran or debugging

    Yeah, the image is rather blurry, but it doesn't look like what you're looking at in the IDE is Form1, but your startup form is probably Form1 so that is what you're seeing. Perhaps go to the project...
  24. Re: PDFSharp - Using a variable instead of the color name?

    XBrushes is just a wrapper for the GDI+ Brushes class if you're using winforms, or whatever the class is that wpf uses for the same thing if you're writing a wpf application.
    So, the colors that...
  25. Re: How do I make my combo box allow user select more than one name

    As for the question, the combobox doesn't support multi-selection.
    You can write you own custom version of a combobox to implement that if it is really necessary.
    But usually, if you want...
  26. Re: How do I make my combo box allow user select more than one name

    The question wasn't removed. It was moved to the VB.Net forum, which is where the question should have been posted.
    You don't need to post it again since it has been moved for you.
  27. Replies
    4
    Views
    460

    Re: Multiplication symbol

    I was going to suggest . but since you use that for hex, perhaps using ' (apostrophe), or ~, but ' would be easier to type.
    I don't think there is a good alternative if you can't use *, so it...
  28. Re: PDFSharp - Using a variable instead of the color name?

    The third parameter is an XBrush.
    So you could create a combobox with a bunch of XBrush objects, set to the brush color you want.
    As for a variable, you should just be able to declare a variable of...
  29. Replies
    20
    Views
    884

    Re: DRAW line between two point

    I haven't used data bases, so am not experienced with how to access the data from them.
    If you need to know how to access the data in the database, then you should start a new thread and ask a...
  30. Re: I don't understand this Exception Text

    Right. The cast causes the exception. If you didn't cast, there wouldn't be an exception at the point of the division, as VB.Net doesn't raise an exception for the divide by 0, it returns a NaN...
  31. Re: I don't understand this Exception Text

    Depends. Since the value is an Integer, and if you're doing a divide the result will be a float type, you may need to convert it like:
    CInt(val / sin)

    I assume because it has to pass the result...
  32. Re: PDFSharp - Using a variable instead of the color name?

    I guess you could look at the code for PDFSharp.
    The values for the colors would be in XKnownColorTable.cs
    Its the same colors that GDI+ uses, so you could probably use the ColorDialog to select...
  33. Replies
    12
    Views
    266

    Re: Rename multiple files in one directory

    The code was an example of how to use the SubString function, it wasn't code to solve your issue.
    This forum doesn't usually have people write the code that you want.
    The forum is for helping...
  34. Re: I don't understand this Exception Text

    Since you're passing a variable in, if the variable happens to be 0 for some reason, and you're using it to divide, that can also generate an overflow operation.
  35. Re: Displaying X amount of integers following an integer entered by user in textbox

    I'm a bit confused by the requirements as stated.
    You mention doing nine numbers after the users input, but later mention looping through 24 numbers after the users input.

    The only way I can...
  36. Re: [RESOLVED] Rotating image in a User Control

    Ok. If you want to rotate to any angle in the future, then there are at least four better ways to do it.
    Using the Windows api you can use 1. plgblt or 2. SetWorldTransform.
    SetWorldTransform can...
  37. Replies
    20
    Views
    884

    Re: DRAW line between two point

    Ok, I see.
    Well, what I described should work.
    I would just put the drawing part of the code in a Sub that can be called to draw a route, and then just call it with the various radius lines that...
  38. Re: Rotating image in a User Control

    When I click on it with the left mouse button I don't see it do an initial jump.
    When I click on it with the right mouse button, it may not seem to rotate around the center of the piece, but that is...
  39. Re: Your first BASIC computer? Has your software survived?

    That would have been an 8088 (16-bit processor, 8-bit external bus), not an 8086.

    I looked at an IBM PC in 1981 when it first came out, thinking I would buy one. But when I found out it was an...
  40. Re: Rotating image in a User Control

    Must be a problem with the code.:rolleyes:
    What do you think?
    The code I use doesn't do that. Do you think it is similar?

    Perhaps it isn't the UC that is moving, it is the drawing of the image...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width