|
Ask MS means ask Microsoft employees. I can't read their minds, so I don't know why they have it adding 2 entries instead of 1. I don't work for MS, and I don't have access to their source.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
the HandleCreated event occurs when the handle gets created; this may be at any
time, i.e. before, at or well after the object has been created (depending on
which class it is and when a handle needs to be present).
So you never now when the event will occur, making it the worst event to use
for anything that is not directly related to the Control's Handle property.
I would add tab pages to a tab control when I create the tab control (e.g.
in a form's constructor or its load event). In the worst case I would consider
a GotFocus event (and add a bool to make it execute only once).
|
|
|
|
|
This is only sample code. In my real application I need to construct complex forms/controls dynamicly, depended on incoming data and I need controls' handle to be created...
|
|
|
|
|
Sure, the handles will be created in time whenever they are needed by .NET
My point is you should not let handle creation trigger your acrtivities except
for those actions that explicitly need the handle's value (i.e. you need a non-null
value from the Handle property, maybe because you want to call a win32 function
that needs such a handle). But even then, you often can work comfortably without
the HandleCreated event by first executing some operation that forces the handle
to be created, then reading Handle.
|
|
|
|
|
Hello, friends-programmers.
How to get nuber of objects in enum ?.
And how to create an array/class/variable with the name if Enumerated value ?
One nation - underground
|
|
|
|
|
|
i am using ClickOnce TEchnology of Microsoft
but the problem here is its checking for the updates for the firsttime when the deployed application starts, i don't want to do like that
i want to update my software only when i click the My Update button
please help me How to configur Clickonce publish option according to my requirement
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
In Visual Studio, go into your project settings. Go to the Publish tab. Click the "Updates..." button. Uncheck the "the application should check for updates" checkbox.
Now your app won't automatically check for updates.
To enable your app to check for updates when you click your Update button, you can use the APIs in .NET's System.Deployment dll, in particular, the methods in the ApplicationDeployment[^] class. For example, something like this:
System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CheckForUpdate()
|
|
|
|
|
what /// means in c# i know that // means comenting one line
|
|
|
|
|
It creates comments which are built into an XML file, from which documentation can be auto generated.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi there,
I would much appreciate if anyone could help me on this problem that is sligthly driving me crazy,
I've a string ... say "abc§123§§456§§§xyz"
I'd like to split it in a string[] , using '§' as separator , now the trick is that '§' is (in this case) also an 'escape' char.
(i.e. in the original string "§§" represent the '§' ... and therefore is not to be considered to be a separator for splitting).
So I am expecting a split like :
abc
123§456§
xyz
My code is (so far):
Regex regExSplit = new Regex("(?<!§)§(?!§)", RegexOptions.IgnoreCase |RegexOptions.Compiled);<br />
string[] splitResult = regExSplit.Split("abc§123§§456§§§xyz");
That split as
abc
123§§456§§§xyz
Thanks for any help
Marc
-- modified at 4:51 Monday 16th April, 2007
|
|
|
|
|
Escape char as seperator ...maybe I'm misunderstanding the question, but wouldn't you simply type a double §§ in the regex string?
|
|
|
|
|
Sorry if I was not clear enough,
if I use "§§" as a pattern the split of "abc§123§§456§§§xyz" will give
abc§123
456
§xyz
and this is not my expected
abc
123§456§
xyz
To try to make it clearer let's say that in the original string a substring like "§§" is to be understood as :
since a "§" is followed by another "§" , then in the result string this second "§" is to be kept as is and not considered to be a separator
(think of "\" instead of "§" if you prefer : "\\" means a real '\' not to be considered as a 'special' char. ... but that makes things quite unreadable in regex patterns)
Thanks
Marc
hooktrack.girollet.com
|
|
|
|
|
I tried a couple of different regexes but wasn't able to accomplish this. Perhaps this is better asked in a regex forum?
|
|
|
|
|
Thanks much to have drop an eye, and spent of your time on this topic
I'll take your advice and try the regex forum
Take Care
Marc
|
|
|
|
|
hai,
I want to be able to set the PictureBox.AllowDrop property in the designer
but it doesn't appear in the properties list.Other controls like Panel do show this property but not PictureBox. Why is this?
how can i drag a picture from one picture box to other
sree
|
|
|
|
|
You mean in the designer, or in your app ? The picture box does not support this behaviour in your app. You'd have to write it yourself.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi
I have been busy getting my skills up with C# Windows development because I been working with ASP.NET for ways too long.
I have been looking into Remoting with C# , and I would like to know is there a way I can use Visual Studio's databinding tools with the development of a Remoting site.
As in a Server tier that contains the database , with a remote layer between that and multiple client applications ?
I have worked with Java RMI before So I am not that new to Remoting or CORBA.
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Chona1171 wrote: s there a way I can use Visual Studio's databinding tools with the development of a Remoting site.
A remoting site? What do you mean by "remoting site"?
And no, Visual Studio's databinding tools don't work with remoting at all. Instead, you use remoting to get data to and from the server, then you can bind to the resulting objects as necessary.
|
|
|
|
|
Sorry what I meant to say was a remote server application
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Ok. Given that you're going to be working with a .NET remoting server, what is your question?
|
|
|
|
|
I am trying to fetch some data from the net. I want to show the progress bar to show the percentage of download.
How can i effectively set the value of progress bar,according to the download
My small attempt...
|
|
|
|
|
Well, which bit do you need help with ? How are you doing the download ? Do you know how big the file is, and how much you've downloaded ? If so, it's trivial to set a progress bar. If not, it's not possible.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Actually i am try to do one web service.
My c# application will fetch a dataset with two tables from the server. I cant tell the size of the dataset.
i just want to see a progress bar to show the progress of this operation,like download in windows
My small attempt...
|
|
|
|
|
sujithkumarsl wrote: I cant tell the size of the dataset.
i just want to see a progress bar to show the progress of this operation,like download in windows
Windows knows the size of the downlaod. How can you tell someone how close they are to finishing, if you don't know the size ? You can do a progress bar that just moves back and forth, but not one that tells people how long it will take.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|