|
Hello world!
How to change my Local IP, default gateway, Preferred DNS server, Alternate DNS server with C# codes?
TanX World...
if(Human.live)
{
Human.peaceful = false;
while(true)
{
Human.love(Human girl, Human Boy);
}
}
|
|
|
|
|
|
How to Implement Context-Sensitive Help in .NET Applications Created with C#,
|
|
|
|
|
|
i'm just wondering if there is a straight-forward xmlrpc library in the .net compact framework and if so, anybody has any experience with it?
thnx
"mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"
|
|
|
|
|
I think this library[^] is about as basic as it gets from what I remember (without writing your own).
|
|
|
|
|
Hi,
I'm currently developing a c# windows application program which allows me to crop certain part of the image when i select it. But if I got a bigger image than the currently picturebox height and width(e.g. picturebox size(400,300) Image opened size(700,300), I tried to use the StretchedImage property to make it fit into the picturebox but when i crop it crops the original size of the image not the image in the picturebox when I use
Bitmap previewImg = newImg.Clone(rect, initialImg.PixelFormat);
my rect is the rectangle that i selected using Mouse Down and Mouse Up events. Hope I could get some help on this thanks =)..
|
|
|
|
|
I get the following error message when trying to setup 1000s of tables and a list of these tables in an SQL table.
//err.Message = "Microsoft SQL Native Client: Not enough storage is available to complete this operation."
I then have to stop and restart the program about 5 times to complete the operation. Is there anything I can do to bypass restarting the program. It doesn't appear that I am running out of memory (from a separate program which monitors my memory).
Any clues / suggestions.
Michael
|
|
|
|
|
MAW30 wrote: 1000s of tables
Are you disposing all the objects you are using? Most of the ADo.NET classes has a Dispose method. Calling that when you finished using it will release the unmanaged resources immediatly.
|
|
|
|
|
Are you running out of disk space for your SQL Server file system?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Can we do following?
Class A
{
string SomeValue
{
get {return "test";}
}
[someAttribute(SomeValue)]
string someMethod()
{
...
}
}
If not, any thoughts how to achieve it? Basically i want to pass the value of Property as parameter to Attribute.
Thanks.
modified on Monday, October 20, 2008 7:48 PM
|
|
|
|
|
Attributes are determined at compile time so cannot contain a run time value.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.
|
|
|
|
|
Thanks, is there a way to achieve it?
|
|
|
|
|
I suppose you could use Reflection to get the attribute and set values on it, but I've never tried it.
|
|
|
|
|
Instead of asking about the way that you think that it should be solved, perhaps instead you should ask about what it is that you are trying to accomplish?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I am displaying the following properties inside the propertyGrid Control. What I want to do is that if i click inside the ID filed then display a Messagebox. If i click inside the Name field i want to display another Messagebox.
What I have done
GridItem itm = propertyGrid1.SelectedGridItem;
how can i get the control inside the Griditem. So I can add a click event to the label or textbox
Properties
ID
Name
Department
Age
|
|
|
|
|
I have an application that is connected to some external sources (text and image files). I refer to these sources through their full path. The sources are located in the same folder as the application (the executable).
Whenever I move the folder which contains the application and the sources to another directory, the sources are (for natural reasons) unreachable if I don't change the path in the source code.
I would like to know if there is a way to point directly to the containing folder of the application and the sources so I (or someone else) can run the application correctly from whatever directory without having to change the path in the source code or moving the folder to a specific directory.
Any suggestions are appreciated.
|
|
|
|
|
You can either use:
- Application.StartupPath
- use single dot syntax (current directory) like ".\subfolder\interestingfile.xyz"
Hope this helps,
Mika
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
Thank you so much! Really helpful
|
|
|
|
|
No problem.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
|
Just a hint. Have a look at the conversation two threads earlier.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
Member 3739527 wrote: urgent code needed
too many jokes this day
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
I am trying to build a simple windows app that copies files from a network location to my local hard drive. I have tried to use
1 - network path
File.Copy(@"\\Mycomp\C$\PROJECTS\Test.txt", @"F:\Test.txt");
2 - a mapped drive to \\Mycomp\C$\
File.Copy(@"Z:\PROJECTS\Test.txt", @"F:\Test.txt");
I always get an IOException
"Logon failure: unknown user name or bad password".
My computer is on its own workgroup and runs vista, the computer I am trying to copy from has Windows XP and is on a domain. I have full access to that XP machine, I can navigate to \\Mycomp\C$\PROJECTS just fine using windows explorer...
Any help will be greatly appreciated !!!
Thanks.
Cedric D.
|
|
|
|
|
Chances are the issue has to do with the administrator account. As far as I understand, VS runs as administrator under most Vista installations. This means that your application will run under administrator when it's run in debug mode. The local administrator has all the authority it needs on the local authority, but is completely unrecognized on the remote machine. Ensure you're running the application under the correct account.
|
|
|
|