Search results for query: *

  1. Blake81

    Get form back in Design view after error

    I just had an error in the Designer.vb file, and now my form doesn't show any controls on it. I accidentally named one of the controls "Name" before I realized that was a bad idea. if I've changed that to something else in the designer.vb file, is there a way to "refresh" or somehow get my...
  2. Blake81

    Question Program to make thumbnails and Generic Error

    I need to make thumbnail images of all of the files in one folder and save them to another folder. I have this code mostly working, but I'm getting "A generic error occurred in GDI+" on the line in red. Public Class Form1 Dim img As Image Dim img2 As Image Dim abt As...
  3. Blake81

    DLL question...not sure where this should go

    Found this old thread that I had posted, because I'm having problems doing this again. I don't have my DLL anymore, so I'm trying to recreate it. I registered for COM Interop, but nothing happens when I try to open the COM connection in mIRC. Any suggestions would be appreciated. Imports...
  4. Blake81

    ASP page works in Firefox but not IE

    Thanks, John. I can leave out the large PNG background for now and see what happens. I don't know about the QuickTime part, but I'll look at it. It probably makes sense that media length is 0. It's not playing a file, it's a live audio stream, so length is indefinite.
  5. Blake81

    ASP page works in Firefox but not IE

    I have an ASP page and it includes a Windows Media Player and an AIM messenger client embedded. I'm not sure if this is an ASP issue, but neither of those two work in IE, but they work in Firefox. Any ideas why? Thanks. Here's the page: http://carrollscan.myftp.org/
  6. Blake81

    Fill a PNG with a gradient using path

    I'm trying to use a gradient on a PNG file that is one solid color (the shape in the PNG is), but I'm getting "Parameter is not valid". I just saw that PathPoints is read only, so I'm trying to figure out how to add points to a path. Is this possible, and how can I do it? Here's an example of...
  7. Blake81

    Need to read file containing delimiters

    Is this just a text file? If it is, then this should work, otherwise someone else can probably help you out with working with a database. Dim mystring1 as String = "aaa*b*c*d*e" ' Just given the two lines, this will show you the basic idea. Dim mystring2 as String = "sdef*t*e*r*u*i" Dim...
  8. Blake81

    Fixing ellipses drawn with GDI+ in user control

    Paszt, thanks, I'll try changing some of the values to percentages. Wayne, you can actually see that ellipse, because it's drawn in black. Just the inside is transparent.
  9. Blake81

    Compile error

    I knew I had seen the PerformClick() function somewhere before, but I hadn't used it before and couldn't come up with what it was last night. :)
  10. Blake81

    Why am i getting this error again and again in the fibonacci series program?

    :) OK, the problem I mentioned was that, for larger numbers as your limit, it was adding the next number after your limit to the listbox. Here's a quick fix. My addition is in bold (and blue, since it was hard to see the bold). Private Sub Button1_Click(ByVal sender As System.Object, ByVal e...
  11. Blake81

    Compile error

    Is Z the name of your form? Look at this example. Form1 is the name of my form, and Button1 is your "OK" button. Public Class Form1 Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.Enter Then...
  12. Blake81

    Finding white spots on image

    I just tried this when I got home from work. I haven't used the BackgroundWorker before, but it's pretty easy to use, and it makes threading really easy. Here's the code for my previous post, using a Background worker this time (which you have to drop on the form, or declare programmatically)...
  13. Blake81

    Why am i getting this error again and again in the fibonacci series program?

    Yes, that will work, and yes, you can still use vbYes and vbNo. It's working just fine in this code. Actually, the problem I was mentioning is that, running your original code, the last number in the listbox exceeds the maximum limit that you specify, in many cases. For example, enter...
  14. Blake81

    Why am i getting this error again and again in the fibonacci series program?

    You're welcome. I'm always happy when I see a post here that I can actually help with instead of asking for help. Your code also has an issue with including the next number after the limit in the listbox. I can show you the solution to that one too, if you want it. I don't know if this is a...
  15. Blake81

    Fixing ellipses drawn with GDI+ in user control

    Most of this user control works (that I've written about in other posts), but I'm still having a problem with two of the ellipses not resizing properly when I resize the control at design time. I've changed the values for width and height on everything to math expressions that should make them...
  16. Blake81

    Finding white spots on image

    I'm not sure why my attempts wouldn't work for me when I tried to say "if mycolor = Color.White", but this code works. It may not be the best way to do it, but you'll get the idea. You'll need a button, a listbox, and two labels. I just used one of the labels to show the X/Y coordinates while...
  17. Blake81

    Why am i getting this error again and again in the fibonacci series program?

    I think you've got an "index out of range" error, and I think it's in this section for the Button2_Click event: For i = 0 To ListBox1.Items.Count() If y = Val(ListBox1.Items.Item(i)) Then z = True Exit For End If Next Since it's a...
  18. Blake81

    Centering text in user control

    I'm trying to make a user control that I call a DigitalDisplay. I have most of it working, but I'm trying to make it center the text, depending on the length of the text that is entered. I'm having trouble with this, and it's either in the Text3Rect or Text3Brush, or maybe both. I'm not sure...
  19. Blake81

    Trying to make User Control

    Yep. I may be doing this the clumsy way, but this is what I have: Private Sub UserControl1_ForeColorChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.ForeColorChanged bcolor = Me.ForeColor RenderGraphics(g) End Sub RenderGraphics() is a sub with...
Back
Top