Search:

Type: Posts; User: THEROB

Page 1 of 13 1 2 3 4

Search: Search took 0.16 seconds.

  1. Replies
    2
    Views
    1,267

    Re: NewEnum Collection Class Wrapper

    The C# class inherits from the KeyedCollection which implements IEnumerable - however the VB6 wrapper / stub class that calls it only has an NewEnum function.

    I am changing the VB6 code to C# -...
  2. Replies
    2
    Views
    1,267

    NewEnum Collection Class Wrapper

    I am gradually switching from VB6 to C#. I have changed a collection class to c# and have created a VB6 wrapper for it – the wrapper will enable all the other code to interact with it as usual....
  3. Replies
    3
    Views
    3,019

    Re: Raise Event from c# to VB6

    Thanks for the reply. I am trying to fire an event from c# and this to be listened to by vb6 com.

    I found out how to do it:
    just place this before the class definition:
    ...
  4. Replies
    3
    Views
    3,019

    [Resolved] Raise Event from c# to VB6

    I need to be able to raise an c# event - and that event to be listened to in VB6. However I can't find a way to do this - any suggestions?

    Rob
  5. Replies
    5
    Views
    1,483

    Re: Properties Dialog Control

    Thanks for that the PropertyGridEx was exactly what I was looking for.

    Rob
  6. Replies
    5
    Views
    1,483

    Re: Properties Dialog Control

    Thanks for the reply - I need to be able to add to the property grid dynamically - If I use a class or control they will always have the same captions - I would like to be able to have a collection...
  7. Replies
    5
    Views
    1,483

    Properties Dialog Control

    I am moving a project from VB6 to C#. In VB6 we used Smart UI to create a properties dialog box. Does anyone know how to create a properties dialog box in C#. I have been told to use a DataGrid - but...
  8. Replies
    9
    Views
    1,195

    Re: Find the amount a circle covers a rectangle

    Brillant - thank you so much for the reply. It works a treat.

    Thanks again.

    Robert
  9. Replies
    9
    Views
    1,195

    Re: Find the amount a circle covers a rectangle

    I am still very lost - following that link I couldn't find any conversion for y = sqrt(r2-x2). I have searched through the net trying to find anything to help - nothing. I have even resorted to...
  10. Replies
    9
    Views
    1,195

    Re: Find the amount a circle covers a rectangle

    Any code for this at all - I still haven't managed to write it.

    Thanks

    Robert
  11. Replies
    9
    Views
    1,195

    Re: Find the amount a circle covers a rectangle

    Thanks for the reply - do you have any code to do this?

    I will try it myself as well - thanks again.

    Rob
  12. Replies
    9
    Views
    1,195

    Find the amount a circle covers a rectangle

    Hi – I’ve got a problem I need to figure out. Given a circle of known centre and Radius. How can you find what percentage of a rectangle is covered by the circle. The rectangle dimensions and...
  13. List of api methods that need Delete or Release

    I am checking my code for memory leaks. Does anyone have a full list of api methods that need to have a delete or release after they are caled.

    The list at the moment is:

    DeleteDC:...
  14. Replies
    56
    Views
    2,395

    Re: Weight loss .....

    A friend used Paul McKenna's method to shed the pounds - they just fell off.

    You can get the video at youtube - just do a search for "Paul McKenna will make you thin"

    Good Luck

    Rob
  15. Re: Opening over 100 files and changing certain text?

    Try doing this:


    Option Explicit


    Private Sub Command1_Click()

    Dim sStrNew As String, sStr As String
    Dim iLoop As Long
  16. Replies
    0
    Views
    330

    "Open in new window" not working

    I have windows 2000 professional installed, however I have noticed that the "open in new window" option in IE 6 does nothing - also the search for files and folders does not work from the start menu....
  17. Re: Change the text of a button on a Save Dialog

    I found this code somewhere:


    Option Explicit


    '=== bas module ======


    Public Type NMHDR
  18. Change the text of a button on a Save Dialog

    Is it possible to chagne the text of the Save button to "Generate" on a common dialog save window.

    I heard it is possible using hooks - but I can't get it to work at all.

    Thanks

    Robert
  19. Replies
    18
    Views
    4,492

    Re: Buffer a Polygon

    I think it would be very hard to do in javascript - and very slow. But here is a good place to start:
    http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
  20. Replies
    9
    Views
    20,175

    Re: strReverse in C#

    This speeds the code up:


    private string StringReverse(string ToReverse)
    {
    Array arr = ToReverse.ToCharArray();
    Array.Reverse(arr); // reverse the...
  21. Replies
    5
    Views
    36,025

    Re: Extract Numbers From String

    This one will return a doube


    private double GetNumericValue(string sVal)
    {
    int iFirst, iEnd;
    char[] aNumbers = "1234567890.-".ToCharArray();
    ...
  22. Replies
    5
    Views
    36,025

    Re: Extract Numbers From String

    I use this - it seems to be faster, however, same as the others, it only works for positive integers:


    private int GetNumericValue(string sVal)
    {
    int iFirst,...
  23. Re: More For Each madness. dynamic control calling?

    Try this:



    Dim daCtrl As ComboBox
    Dim blah As Control

    For Each blah In frmMain
    If TypeOf blah Is ComboBox Then
    Set daCtrl = blah
  24. Replies
    0
    Views
    4,425

    Clean up an XML File

    This code takes in an XML file and formats it to have tabs and return characters.


    using System;
    using System.Text;
    using System.Windows.Forms;
    using System.Xml;
    using System.IO;
    using...
  25. Replies
    2
    Views
    677

    Re: how compare this two images

    This might help:
    http://www.vbforums.com/showthread.php?t=330416
  26. Re: SORTING, flat records with ; seperators

    Try this:

    Option Explicit

    Private Sub Form_Load()

    Dim sFile As String
    Open "C:\del.txt" For Input As #1
    sFile = Input(LOF(1), 1)
    Close #1
  27. Re: SORTING, flat records with ; seperators

    If you don't need to do it programatically - just import in to MS Access and sort from there.
  28. Replies
    3
    Views
    559

    Re: Finding Min X on a circle

    Thanks thats really helped me out.

    Robert
  29. Replies
    3
    Views
    559

    [Resolved] Finding Min X on a circle

    How is it possible to find the minimum X coordinate on the circle between the two lines?
    Y1, Y2, R are known. The centre of the circle is at (0, 0)

    In the picture the MinX would be –R, but the...
  30. Thread: Riddles?

    by THEROB
    Replies
    99
    Views
    15,165

    Re: Riddles?

    The first question got me thinking about how to write a Encoder/Decoder. Here is mine


    Option Explicit
    'Text1 = Text to be encoded/Decoded
    'Text2 = Output
    'cmdDecode = Command Button To Decode...
  31. Thread: Riddles?

    by THEROB
    Replies
    99
    Views
    15,165

    Re: Riddles?

    5 = D. in a Z.C.
    5 Digits in a Zip Code
  32. Thread: Riddles?

    by THEROB
    Replies
    99
    Views
    15,165

    Re: Riddles?

    Candles stay lit because the heat they produce causes the carbon dioxide, they produce, to rise. Oxygen fills the space and the cycle keeps going. However during freefall the carbon dioxide doesn't...
  33. Thread: Riddles?

    by THEROB
    Replies
    99
    Views
    15,165

    Re: Riddles?

    But because the sphere is falling - there is no convection, so the oxygen wont replace the carbon dioxide. So the candle had no oxygen to burn and hence it could go out.

    Another alternitive is...
  34. Thread: Riddles?

    by THEROB
    Replies
    99
    Views
    15,165

    Re: Riddles?

    No the sphere can be opened - light the candle - close it and drop. The 60 seconds of air time starts from the drop.
  35. Thread: Riddles?

    by THEROB
    Replies
    99
    Views
    15,165

    Re: Riddles?

    Here is a strange one, I am not sure of the answer myself:

    You have a glass sphere. There is a place in the centre of the sphere for a candle. There is enough air in the sphere to keep the candle...
  36. Thread: Riddles?

    by THEROB
    Replies
    99
    Views
    15,165

    Re: Riddles?

    MEET IN THE CLASS ROOM AT SEVEN

    Is the answer to the first riddle - just write down and remove the 5th letter like this:

    REASM NCNVE OTMLE SEHST TAOEI
    REAS NCNV OTML SEHS TAOE
    REAS CNV OML...
  37. Replies
    6
    Views
    814

    Re: Strange Instr question

    I think it is something to do with the control being sent the string from xml, which is of the form "μ" - this is µ.

    This should be changed to be µ, but sometimes it doesn't. When you look...
  38. Replies
    6
    Views
    814

    Re: Strange Instr question

    It works sometimes - but I have seen it to fail, I will try using strconv.

    Thanks for the replys

    Robert
  39. Replies
    6
    Views
    814

    Strange Instr question

    I wrote some code to remove the unit symbol of a value. I found that sometimes the Instr function returns 0 when the string is there. For example:

    a = "0 µs"
    b = " µs"

    then I do instr(a,b),...
  40. Replies
    11
    Views
    1,697

    Re: If you can solve this your a genius

    Yes but P knows he has 52, S can still have 28 which was made up from 2+26, 3+25, 4+24, 6+22, 7+21, 8+20, 9+19, 10+18 ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width