|
Hello Derek,
I email you the rough code via CP's email system, which complained about the long text, so I hope it made it to you. If not, or it gets mangled, you can email me with an address I can send it to you as an attachment.
I reduced it all down to just a few hundred lines, so it should be pretty manageable. It's strictly search and callback with keypath, entry name, data, data length, data type, and where the string was found. That should be enough to load up a listbox or listview with. RegDeleteValue is easy to call after that.
Let me know if you have any questions.
Cheers
|
|
|
|
|
How can i get the ip or the username of the user in LAN???
sorry again for my english
|
|
|
|
|
System.Environment.Username has the name of the current user, if that's what you're looking for.
|
|
|
|
|
no. what i really wanted was to get a list of the computers in a LAN.sorry for my english who generated this missunderstood.
|
|
|
|
|
How can i read a shared file over a network?
I tryed to read it as if it was local , but, normal thinng, acces denied.
sorry again for my english
|
|
|
|
|
How do I make a .net dll project availiable on the Add Reference/.NET tab?
|
|
|
|
|
Use the Browse button and browse to its location.
|
|
|
|
|
I think to make it com under the .net tab, the assembly has to be signed with a strong key and also there is a registry entry where you need to specify the location of the assembly. Anyway, I do not know the particulars.
Cheers
Kannan
|
|
|
|
|
Yeah it will appear under the com tab if you select the register for com interop configuration property but I can't find out how to do the same for .net interoperability. It can be done though since third party libraries appear under the .net tab.
|
|
|
|
|
Hi,
I have exposed a property in a UserControl.
The Property is of Collection type. ( Collection of my Userdefined type).
When I use this Control in a Form, the Forms Designer allows me to Edit the
property (MyValues) using the Default Collection Editor UI.
But the Changes made to the Collection are not persisted in the Form code
by the Forms Designer.
class MyControl : UserControl
{
MyTypeCollection m_values = new MyTypeCollection();
public MyTypeCollection MyValues
{
get
{
return m_values ;
}
set
{
m_values = value;
}
}
}
class MyTypeCollection : CollectionBase
{
Add(){...}
Remove(){...}
}
class MyType
{
int i;
bool b;
public int XXX
{
get
{
return i;
}
set
{
i= value;
}
}
public bool YYY
{
get
{
return b;
}
set
{
b= value;
}
}
}
How can I make the Forms Designer generate code for the Collection Modified at Design time.
Please someone Help me...
Zor
|
|
|
|
|
Zor,
Try to add the following attribute to your property:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
Cheers,
- xico -
|
|
|
|
|
Can anybody help in :
1) inserting a bitmap image into ms-access database
2) setting a picture box with a image from the database.
Please help me, i have been hitting on this for 2 days.
Ashok Singh
Real Programmer's do not comment their code, if it is hard to write then it should hard to understand
|
|
|
|
|
There is an article about do this with SQLServer,access is the same:
C# Photo Album Viewer
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
how to create a new process in program like createprocess api in vb,or vc++
|
|
|
|
|
Lookup the System.Diagnostics.Process class in MSDN, should give you the info you need.
James
- out of order -
|
|
|
|
|
No matter what I've tried, calling CreateControl() on a form or ctrl, does not force the creation of a handle, as the docs say. The only thing I found that does, is the usual Show() (or ShowDialog) method. The problem is, I need to modify some things before the form becomes visible, which are not callable until a handle is created (understandably).
Could someone please prove Microsoft right, and make me eat my words? Or at least verify my findings?
Cheers
|
|
|
|
|
Hello,
I am trying to do an image editing app.
It requires opening and displaying an image and then selecting a portion of the image for crop. I also want to rotate the image.
(1)How will I implement "area selection" [click and drag to mark an area] for an image ?
(2)Which will be the best control to display the image, for edit operations?
Thanks,
Tweety
It's easy to sit there and say you'd like to have more money. And I guess that's what I like about it. It's easy. Just sitting there, rocking back and forth, wanting that money.
|
|
|
|
|
Tweety wrote:
How will I implement "area selection" [click and drag to mark an area] for an image ?
Draw the image, store the co-ordinates you've dragged, and draw them onto the window ( not onto the image ), so they are lost with every refresh and do not affect the image.
Tweety wrote:
Which will be the best control to display the image, for edit operations?
Just whack it right onto your window.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Thanks CG for the help.
Christian Graus wrote:
Just whack it right onto your window.
Isn't there any image control that will scroll and show the original image ?
Tweety.
It's easy to sit there and say you'd like to have more money. And I guess that's what I like about it. It's easy. Just sitting there, rocking back and forth, wanting that money.
|
|
|
|
|
Does anyone know of a sscanf (Old C-runtime function) equivalent in C#?
Regards,
Roy
_____________
Roy H. Berger
roybrew@att.net
|
|
|
|
|
Use the System.Convert class. There's a bunch of stuff in there that will let you convert from one data type to another.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
roybrew wrote:
Does anyone know of a sscanf (Old C-runtime function) equivalent in C#?
As David said you can use the Convert class however sscanf provided more of a parsing technique than what you will probably find with Convert . You may wish to look into the RegEx (regular expressions) class as that's where the power will come from (;P). Here is a quick article to read up on if you are new to regular expressions.
C# Regular Expressions [^]
Nick Parker
|
|
|
|