|
|
(Thx again)
But can the form catch all the keypresses, even if the keypreview property is set to false??
Thanks for your time...
Jan
|
|
|
|
|
i want to get the ip address of all computers on a network
that have this broadcast address 255.255.255.0.
is there any method or tecnique available available to get that ?
if i have to send a message to all computers on a network through
a net send command what ip address i have to mentation ?
i have two computers that have these ip addresses 192.168.0.1
and second one is this 192.168.0.96.
because when i do this on command prompt this appears.
D:\Documents and Settings\super>net send 255.255.255.0 hell
An error occurred while sending a message to 255.255.255.0.
The message alias could not be found on the network.
More help is available by typing NET HELPMSG 2273.
D:\Documents and Settings\super>net helpmsg 2273
The message alias could not be found on the network.
EXPLANATION
This message alias could not be located.
ACTION
Check the spelling of the message alias. If it is correct, then the computer tha
t is to receive your message may be busy. Try sending the message again later.
r00d0034@yahoo.com
|
|
|
|
|
|
can u tell how to do it in a program ?plz tell simple code i will be very thank full?
r00d0034@yahoo.com
|
|
|
|
|
I was just wondering if someone could tell me why an imagelist has such small storage.. Isn't it bad to reference a just a .bmp from a peice of software.. How can i make it hidden if it won't fit in a Imagelist??
Thanks
|
|
|
|
|
Hi all,
I am developing this image edit application. I want to provide undo and redo of actions - rotate, scale and crop. Any suggestions on what will be the best way to implement this ? I am more interested on the undo implementation after a crop.
Keeping a backup image in memory can be one option. But when it comes to undo-ing multiple actions, it might become inefficient
Smitha
Whenever I see an old lady slip and fall on a wet sidewalk, my first instinct is to laugh. But then I think, what if I was an ant, and she fell on me. Then it wouldn't seem quite so funny.
|
|
|
|
|
Smitha Vijayan wrote:
Keeping a backup image in memory can be one option. But when it comes to undo-ing multiple actions, it might become inefficient
I would keep two images in memory, the original and the current version. Then each time you perform an operation on it create and store some data that tells what that operation was. When you undo something, take the last operation off the stack of operations, then starting with the original image perform each operation.
You may want to limit the number of operations allowed to be undone, or come up with some other variant of that (every 8-32 operations create a new 'starting' image, etc).
James
"The elastic retreat rings the close of play as the last wave uncovers
the newfangled way.
But your new shoes are worn at the heels and
your suntan does rapidly peel and
your wise men don't know how it feels to be thick as a brick."
"Thick as a Brick" from Thick as a Brick, Jethro Tull 1972
|
|
|
|
|
Thanks James.
James T. Johnson wrote:
You may want to limit the number of operations allowed to be undone
I intend to do that
Smitha
Whenever I see an old lady slip and fall on a wet sidewalk, my first instinct is to laugh. But then I think, what if I was an ant, and she fell on me. Then it wouldn't seem quite so funny.
|
|
|
|
|
Hey what's up everyone..
I recently compiled a product using release instead of debug and tried to run it on a machine without VS.net. It gives me some errors... for some reason the exe didn't include some of the .dll's needed for the actual .exe to run.
If someone could point lme in the right direction that would be awesome.
Thanks...
|
|
|
|
|
Hey nascokeg!
Do you have .net runtime over the target machine?
|
|
|
|
|
Hey thanks for your reply... hmm.. the .net runtime?
I have windows XP on the machine but I am not sure what you are refering to?
Could you help me out? LOL you are probably thinking o man what this guy must be retarded.
Thanks very much.
|
|
|
|
|
Well, let me start by saying you cannot run .NET programs on computers that do not have the .NET runtime, it is around 23mb and can be downloaded from microsofts website[^] and it contains all the .dlls required to run .NET apps. I hope this helps you...
Why waste time learning when ignorance in instantaneous
-Hobbes
|
|
|
|
|
I am attempting to place a font over some pictureboxes on my form.
But for some reason..
In my OnPaint function:
Font font = new Font("Trebuchet MS", 24,FontStyle.Bold);
Graphics g = Graphics.FromHwnd(this.Handle);
g.DrawString("Text on the Screen", font, new SolidBrush(Color.White),0,0);
This paints behind the picture boxes on my form..
Can someone tell me how to set the zorder or something... i find it kind of weird... But i have an idea that it has to do with the handle I am grabbing..
Thanks Everyone...
|
|
|
|
|
gekoscan wrote:
Graphics g = Graphics.FromHwnd(this.Handle);
Maybe you can try:
Graphics g = pictureBox1.CreateGraphics();
That gives you the graphics object to paint ON the picture box instaed of the form.
I hope this helps!
Smitha
Whenever I see an old lady slip and fall on a wet sidewalk, my first instinct is to laugh. But then I think, what if I was an ant, and she fell on me. Then it wouldn't seem quite so funny.
|
|
|
|
|
How, usually, do you all solve this problem? I'm of course referring to inserts with an apostrophe (single quote) in them.
I have some ideas on how to solve it - either to use a Replace type method or to write a stored procedure (I'm using Access, so it should be one of those Access Query things).
Is there a standard approach which is best?
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
afronaut wrote:
Is there a standard approach which is best?
I will assume you are using C# since you are posting in this forum, however I always typically write a little function to handle this as it can be used throughout an application. Another Access Query really isn't necessary for something like this. Something like the following works well in C#:
string CleanSql(string s)
{
return s.Replace("'", "''");
}
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
We use stored procedures and set up the parameters with, for example "O'Mally", just as they are and it all works swimmingly.
Philip Painter
|
|
|
|
|
Hi,
I am using C# windows forms and I have dragged and and dropped MS web browser control on to the form.
When I navigate to a web page ex:www.hotmail.com and change the focus to another application on the desktop using ALT + TAB and come back to my application again, the web page in the web browser control would have lost focus.
I am using using the following command to navigate
object o=null;
axWebBrowser1.Navigate( textBox1.Text,ref o, ref o, ref o, ref o);
Any idea how to get back the focus
Thanks
Kiran
|
|
|
|
|
Compiled an assembly with visual studio and am now trying to get it to compile on a box with just the sdk and command-line tools.
It's missing the mshtml reference which I think is a com object. Trying to get a type library from the winnt\system32 dll file fails. How would I compile it with just the sdk then?
|
|
|
|
|
First of all, the mshtml.dll file you refer to is not the native dll we are used to with C/C++, but the interop assembly, which is located in <program files>\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll
The way to compile your code is to reference this assembly with the /reference option.
The command line is detailed here[^].
|
|
|
|
|
Hi,
I'd like to programatically display a dropdown menu from a toolbar. To be specific, I'm developing an Explorer bar, and I'd like to give it a menu. As far as I know, the only way to do that is to use a toolbar. So I have a couple buttons (File, Edit), and they both have dropdown Menus. When a user clicks on the File button, I want it to popup the File dropdown menu, just as it might if the user clicked on the dropdown arrow.
I don't see a natural way to do it within the API yet. I tried using Show(), but the only problem is that I'd need to calculate the correct location for the dropdown menu to popup. Any better solutions?
Thanks,
Arun
|
|
|
|
|
hi @ll!
I have the following problem....
I try to access the IE DOM as COM from C# -> no problem for first. Then I try to get a spezific element of the Document in the Internet Explorer (v6). For this I need to recurse through all frames. It works (its only a part of course, all the source would be too much until "X.item(ref newIDoc);" I think (or I'm sure the error is caused because) in the msdn the ".item" is descripted as follows:
"HRESULT item(
VARIANT* pvarIndex,
VARIANT* pvarResult
);"
but I don't know how to do this in C#.
object newIDoc = new object();
newIDoc = I;
mshtml.IHTMLFramesCollection2 X;
X = iDoc.frames;
X.item(ref newIDoc); //-> error
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in xcwrapper.dll
Additional information: Mitglied nicht gefunden.
Anyone any Idea?
thx anyway
mfg Manuel
|
|
|
|
|
frame = X.item(i) is a way to access the ith element of a collection. There is no point in passing the doc instance as param.
|
|
|
|
|
hi!
I see...
that sounds pretty well
(sometimes you bite in a problem like this, and it could be such easy....
anyway
that causes this problem:
Argument '1': cannot convert from 'ref short' to 'ref object'
u know what I can do here?
thx indeed
mfg Manuel
|
|
|
|