Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Roy Heil

@Roy Heil
About
Posts
77
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to detect UTF-8-based encoded strings
    R Roy Heil

    There is an Articles section, where you can submit articles and tips.

    Roy.

    Visual Basic csharp html design sales

  • Closest Ancestor
    R Roy Heil

    You say it doesn't work, but you don't explain how it doesn't work. Does it error, or just give the wrong answer? From what I can see, you check to see if root = NULL, which is good. But then you compare the values of root->right->data and root->left->data against n1 and n2. But what if root->right or root->left is NULL? Then it's data will be undefined, and the compare will fail. If it doesn't error out at this point, it may just go on to the else condition, which is fine. But as I said, I don't know how it is failing.

    Roy.

    Algorithms data-structures question

  • Sort a Custom Class Collection in VB6
    R Roy Heil

    You could implement the IComparable interface in your class, and then define the CompareTo function. Put your comparison logic in this CompareTo function. Then all you would need to do is call the Sort method on your collection. MyNewCol.Sort()

    Roy.

    Visual Basic algorithms

  • OK folks - have a good laugh!!!!! [modified]
    R Roy Heil

    I believe that what you did was, Ctrl K Ctrl H, which inserts a comment token. All you have to do to remove is it another Ctrl K Ctrl H.

    Roy.

    Visual Basic help question

  • looking for good ideas
    R Roy Heil

    Could you try something like this: Read each xml file one by one, and as each file is handled, write a "handled" file in the directory. Once ALL xml files are handled, rename the "handled" files to "finished" files. Hope this helps. Roy.

    Roy.

    Visual Basic tutorial csharp data-structures xml help

  • Quick Hit-Testing
    R Roy Heil

    I've never done any gaming programming, so my idea may be way off, but... I assume that the circles are objects that maintain data about themselves. Could you have the circle objects keep track of what ray would intersect them? That way all the calculations would be done at the time of movement, and at the time the gun is fired, all that needs to be done is to check each circle to see if the shot qualifies as a hit.

    Roy.

    Algorithms testing beta-testing question

  • Please help, HSC student stuck with code [modified]
    R Roy Heil

    Tj. wrote:

    i have made the form stretch to accomodate for buying new items, but it doesnt show in the schools screens due to their resolution. this is why i thought of a prent child form.

    Instead of using parent/child forms, have you considered using a tab control with two or more tab pages? (I don't work with VB 6.0, so I can't give you specifics)

    Roy.

    Visual Basic help html com hosting

  • A truely ReadOnly comboBox ?
    R Roy Heil

    I'm sorry but...? Why display a list of options, and then not allow the selection of any? :confused:

    Roy.

    Visual Basic question

  • How many Visual Studio users are there?
    R Roy Heil

    led mike wrote:

    Help... I know not of what you speak

    They speak of "The Hitchhiker's Guide to the Galaxy" by Douglas Adams. The reference is to the question of Life, the Universe, and Everything. The answer is 42, but we don't know what the question is.:confused:

    Roy.

    The Lounge csharp visual-studio question

  • Pluto bounces back
    R Roy Heil

    I never liked Pluto as a planet anyway, so I'm just as happy it was demoted.

    Roy.

    The Lounge com tools question announcement

  • update DATE error....?
    R Roy Heil

    Can you do something like this? Date= " & "'" & Now.ToShortDateString & "'" & _

    Roy.

    Visual Basic help database sales question announcement

  • C# Newbie: What is the ":" for?? [modified]
    R Roy Heil

    The : in the class declaration indicates that your class will inherite from some other class. In the example you gave: public class SampleClass: ExcelReport, IReport SampleClass inherits from the class ExcelReport, and the interface IReport.

    Roy.

    C# question csharp performance tutorial career

  • how to close an application from another form?
    R Roy Heil

    Really? Application.Exit() should have closed the application, not just Form2. Hiding Form1 should not make a difference. Form2 isn't a separate application that you are spawning from the Form1 application, is it? Roy.

    C# question tutorial

  • string split error ? help please ... [modified]
    R Roy Heil

    It is difficult to know for sure what your problem is, as you did not include all your code. For instance, what is the value of splitter, and what does your loop look like? Try stepping through your code and examining the value of dateopened, houropened, and whoopened. I think you will find that they all contain the same thing, an array with all the dates, all the hours, and all the whoopened. You might try modifying it like this: stringarray = s.Split(splitter); Console.WriteLine(Convert.ToString(stringarray[i*3])); Console.WriteLine(Convert.ToString(stringarray[i*3 +1])); Console.WriteLine(Convert.ToString(stringarray[i*3 +2])); This is assuming that the first iteration of the loop, i is zero. I hope this helps. Roy.

    C# help question

  • how to disable only close buuton
    R Roy Heil

    btnClose.enabled = false Roy.

    Visual Basic tutorial

  • a question about checkboxes ? help please ...
    R Roy Heil

    The best way of doing this is to use radio buttons instead of checkboxes. That is what radio buttons are for. Roy.

    C# question help

  • Hiding controls in design view
    R Roy Heil

    The only way I have seen this work, is to go ahead and place all your panels on the form, one on top of the other. Then when you are not working on the panel that is currently on top, right-click on the panel, and select "send to back". Repeat this until the panel you want to work on is on top. I hope you don't have too many panels ;). Roy.

    Visual Basic design help question

  • Help with code
    R Roy Heil

    If txtPosition1.Text <> "" And txtPosition2.Text <> "" & txtPosition3.Text <> "" And _ The problem is with one of your ands. You mistakenly used an &, which tries to do a bitwise and instead of a logical and. (Mixing up your C/C#/C++ with your VB?) This type of thing is hard to catch. Your brain sees what it wants to see. Roy.

    Visual Basic help tutorial

  • Only Select One Checkbox
    R Roy Heil

    Why do you need to use a check box? This type of functionality should be done with radio buttons. Roy.

    C#

  • Different exception handling behavior when running application in standalone mode instead of from visual studio
    R Roy Heil

    Try this. Instead of wrapping your Application.Run in a try..catch, write a new exception handler. (If I recall correctly, you wanted the application to end after an exception? That is the reason for the Application.Exit(). If you don't want this, go ahead and remove it.) Good luck. static void Main() { Application.ThreadException += new ThreadExceptionEventHandler( MyExceptionHandler); Application.Run(new Form1()); } private static void MyExceptionHandler(object sender, System.Threading.ThreadExceptionEventArgs e ) { MessageBox.Show(e.Exception.Message); Application.Exit(); } Roy.

    C# help csharp visual-studio
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups