|
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
|
|
|
|
|
The tostring method on the datetime class.
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 )
|
|
|
|
|
I don't where you will be using your custom format but this will get you on the right track.
C# includes some formmating directives for all sorts of data, including dates. Here's the syntax for a date:
yyy-MM-dd HH:mm-ss aa
produces:
2007-11-12 10:00:23 AM
Cheers,
Richard
may your code be error free.
(okay, maybe two lines.)
|
|
|
|
|
|
I need a source which can check whether I have installed .Net framework 2.0 or not.
Thanks.
Nothing!! But gonzo!!
|
|
|
|
|
You need to create a precondition in your setup project that checks to see if your version of the .net framework is installed. Your software won't install unless your precondition has been met. You don't need to write any code for this, it is the right way to do what you are talking about. It is a very, very easy and common task.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
You can write C++ code to do this, but not C#, for obvious reasons.
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 )
|
|
|
|
|
You may have to explain this one to him. If he posted a question like this, it's apparent that he doesn't have the knowledge to understand the blindingly obvious.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Have you tried looking on Google or CP? There is at least one article[^] here that explains how to do this, and also gives you a reference to some C++ code that you will need to use if you are trying to do this from an installer.
|
|
|
|
|
Why am I getting this compiler error: Use of possibly unassigned field 'PropertyToPropertyConstraints'
for this code:
public struct foobar<br />
{<br />
public readonly int[,] PropertyToPropertyConstraints;<br />
<br />
public foobar(int bar)<br />
{<br />
PropertyToPropertyConstraints[0, 0] = -1;<br />
}<br />
}
I'm sure there is something fundamental and basic I'm missing here, probably having to do with how I use the array. But the compiler error is confusing.
|
|
|
|
|
well, you didn't say
PTPC = new int[x,x];
anywhere, you just started setting values.
My current favourite word is: PIE!
Good ol' pie, it's been a while.
|
|
|
|
|
I'm not sure I follow.
Where would I say this? Initialization isn't allowed in the declaration (in a struct). Are you saying I would need to do this in the public constructor itself?
It's my understanding that fields are automatically initialized in a struct. For instance, my int's are all initialized. The int's in my int array are not?
Man, this struct stuff has me all confused.
|
|
|
|
|
You were right, that was it. I needed to create the array in the public constructor. I had tried to create it in the declaration, been punished, and didn't think about creating it in the constructor, where I was assigning values. (My real code was a lot more complex than the example I used here, but I should have spotted it in the example).
|
|
|
|