|
Never seen it before, but it's not hard to figure out...
Search The F-ing Webb
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
string message = "Hello world.";
Console.WriteLine(message);
can just as well be written:
Console.WriteLine("Hello world.");
Therefore, variables are useless and only increase the code volume.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
before my environment vs2005 C#.net and make web project now.
while i was mad my code, i need to take some arraylist array.
for example...
defind arraylist array under the partial class
------------------------------------------------
public ArrayList[,] arFood = new ArrayList[4, 2];
and i use my button click event
------------------------------------------------
arFood[iMeal, 0].Add(CommonLib.IsNullString(myListItem.Value));
but while i was compiled source printed out error message.
"System.NullReferenceException" ..
so i was debug trace but myListItem.Value was not empty ..
so my opinion, that's not initialize arraylist array.
how can i initalize my arraylist array? or it's wrong code ?
thanks for read my question...
.. knodark
|
|
|
|
|
if (arFood[iMeal,0] == null) arFood[iMeal, 0] = new ArrayList()
Why would you use an array list and not a generic list ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Maybe because he is using .Net < 2.0!
Ahh, sorry I forgot I'm the only one who is doing that!
All the best,
Martin
|
|
|
|
|
Hi,
I have implemented compare method to return 0 if objects are equal based on sort criteria.
Say i have 2 objects with name,age,date as fields. I pass two objects for sorting obj A and obj B and sort on date. In both cases date is null. The sequence of objects in container being passed is obj A first and than obj B. After sorting on date sequence changes and become obj B and obj A. I wish to have sequence as obj A and obj B in this case. Is it feasible?
|
|
|
|
|
The sorting algorithm used in the built in sorting methods doesn't preserve the order of items that are equal. If you want that, you have to implement the sorting yourself, using an algorithm that does.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Do you have any implementation with you
|
|
|
|
|
The QuickSort algorithm used is a so called "unstable sort". You want to search for a "stable sort".
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
can we use java script in windows application?
If so just brief me how to use
Thanks in advance
Praveen Kumar Palla
|
|
|
|
|
Hey Hey Hey!!!!
Java script means client side validations right...?
And Windows application always runs onto the client side
And .Net have many many validation controls for windows application.
Regards
Pankaj Joshi
|
|
|
|
|
Thanks for the reply Pankaj
My requirement is
the textbox should have validation routine that should be defined in external to the application. If anytime any change in the validation routine need not be compile and build the application.
how can i achieve this?
please help me on this.
Ex: validation is
textbox should accept positive integers including 0
praveen Kumar Palla
|
|
|
|
|
This seems little bit confusing. Because if you are changing the business logic in javascript file then you have to provide it to end-user right?
So why are you not write it in a DLL so just compile the new DLL and send to client.
and the validation of positive number in textbox is easy to achieve.
And my dear friend this is the basic rule of every windows application, If you are changing in the logic then you have to build the release and send it to end user, often called version. let me know your thoughts.
Regards
Pankaj Joshi
|
|
|
|
|
You can also see this...
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2364447&SiteID=1
Regards
Pankaj Joshi
|
|
|
|
|
Hello *,
I am tring to develop application which will connect to application and catch
their message from message loop.
Do you now how I can connect to the message loop of other application?
regards
Petr
|
|
|
|
|
Hello *,
do you know anybody how I can catch event from another application?
E.g. When Skype receive message then in task bar is shown icon which is generated
by the event.
How I can cat this event from my application?
regards
Petr
|
|
|
|
|
how can i capture screesnshot from windows service.
I want to capture the screenshot and store it in a different image file and store in a directory. i got this with a windows application using gdi but could not get it from windows service
|
|
|
|
|
What is the error you are seeing?
|
|
|
|
|
When i use the graphics of gdi i get error message the handle is invalid
Graphics gfx=Graphics.fromImage((image)bitmap);
gfx.copyfromscreen(0,0,0,0,screewidth,screeheight);
Is there any alternative??
|
|
|
|
|
has your service the permission to access the desktop? by default a server can't interact with the gui!
|
|
|
|
|
Hey Guys,
I'm working on a graphics app. There will be a form that allows the user to find/select a image from hundreds of stored art. My question is: How can I "load" hundreds of images effeciently? I know MS gives you a listviewbox to work with but it is terribly slow and cumbersome when dealing with so many images.
Popular graphics programs like PrintShop gives you hundreds of images in one area with seemingly no load time. Any tips on how to accomplish this?
Richard
may your code be error free.
(okay, maybe two lines.)
|
|
|
|
|
HEllo,
Don't use a control!
Draw it directly on your Form, by using the "OnPaint" method and the given Graphics object (e.Graphics)!
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.DrawImage(...);
base.OnPaint (e);
}
All the best,
Martin
|
|
|
|
|
If you want to show 'hundreds' of images, odds are you won't show them all at once. Caching them effectively and keeping them at the desired size is probably the main way to get good performance in this situation.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all can anyone tell me how can we convert system date into different format like dd/mmm/yyyy or mm/dd/yyyy into for example '2007-10-25T11:47:10.515625+05:30' in c#.
Please response me soon.
I will very thankful for that..
Sincerly
Vishnu Narayan Mishra
|
|
|
|