Search:
Type: Posts; User: THEROB
Search:
Search took 0.16 seconds.
-
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# -...
-
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....
-
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:
...
-
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
-
Thanks for that the PropertyGridEx was exactly what I was looking for.
Rob
-
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...
-
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...
-
Brillant - thank you so much for the reply. It works a treat.
Thanks again.
Robert
-
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...
-
Any code for this at all - I still haven't managed to write it.
Thanks
Robert
-
Thanks for the reply - do you have any code to do this?
I will try it myself as well - thanks again.
Rob
-
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...
-
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:...
-
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
-
Try doing this:
Option Explicit
Private Sub Command1_Click()
Dim sStrNew As String, sStr As String
Dim iLoop As Long
-
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....
-
I found this code somewhere:
Option Explicit
'=== bas module ======
Public Type NMHDR
-
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
-
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
-
This speeds the code up:
private string StringReverse(string ToReverse)
{
Array arr = ToReverse.ToCharArray();
Array.Reverse(arr); // reverse the...
-
This one will return a doube
private double GetNumericValue(string sVal)
{
int iFirst, iEnd;
char[] aNumbers = "1234567890.-".ToCharArray();
...
-
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,...
-
Try this:
Dim daCtrl As ComboBox
Dim blah As Control
For Each blah In frmMain
If TypeOf blah Is ComboBox Then
Set daCtrl = blah
-
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...
-
This might help:
http://www.vbforums.com/showthread.php?t=330416
-
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
-
If you don't need to do it programatically - just import in to MS Access and sort from there.
-
Thanks thats really helped me out.
Robert
-
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...
-
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...
-
5 = D. in a Z.C.
5 Digits in a Zip Code
-
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...
-
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...
-
No the sphere can be opened - light the candle - close it and drop. The 60 seconds of air time starts from the drop.
-
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...
-
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...
-
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...
-
It works sometimes - but I have seen it to fail, I will try using strconv.
Thanks for the replys
Robert
-
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),...
-
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 ...
|
Click Here to Expand Forum to Full Width
|