I don't want user to give the back date or time.
How can I compare if the entered date and time is LESS then the current time?
If the current date and Time is 17-Jun-2010 , 12:25 PM , I want user cannot give date before 17 Jun -2010 and time before 12:25 PM.
Like my function return false if the time entered by user is 16-Jun-2010 and...
I have written a crawler in Perl awhile back and it was super simple giving the high-level capability of libwww-perl. It is so straight forward in fact, it can take the raw HTML response of one request, and create the next HTTP request for you from the FORMs on that page (as in it will parse the HTML for you).
Does anyone know any libr...
I'm considering if it is a good idea to use an ASP.Net TabContainer-Control in the way that every TabPanel contains content of a different page. For example: Next i want to implement in my application is the masterdata management. Normally i would create one aspx page for every masterdata-table (f.e. Customer -> MD_Customer.aspx). Then i...
I am working in .NET 2.0 with C# and database is SQL SERVER 2005. I am using DataGridView. I had enabled "Enable Editing" Checkbox. Eventhough, I am not able to edit any cell.Please, give me a solution.
...
What are the differences between
int size = (int)((length * 200L) / 100L); // (1)
and
int size = length << 1; // (2)
(length is int in both cases)
I assume both code snippets want to double the length parameter.
I'd be tempted to use (2) ... so are there any advantages for using (1)? I looked at the edge cases when overflow occ...
Possible Duplicates:
GOTO still considered harmful?
GoTo statements and alternatives in VB.NET
I'm a young programmer, so all my working life I've been told GOTO is evil, don't use it, if you do, your first born son will die.
Recently, I've realized that GOTO actually still exists in .NET and I was wondering, is GOTO really...
Long story short: I used reflector on the System.Security.Util.Tokenizer class, and there's loads of goto statements in there.
Here's a brief example snippet:
Label_0026:
if (this._inSavedCharacter != -1)
{
num = this._inSavedCharacter;
this._inSavedCharacter = -1;
}
else
...
I am using EventAggregator in Prism, and I want the events persisted, which means when a client subscribes a certain event, the aggregator published the previous events that missed to the client. Is there a way to support this?
I know this sounds more like a message queue or something. But the system has already heavily coupled with Eve...
I have a VB6 app which brings up a form by invoking a .NET DLL, but the problem is that this form takes almost 5 seconds to appear when the menu item is first selected in the VB6 app is selected. How can I speed this up?
It is only slow for the first time, thereafter it is at an acceptable speed, like it is a native VB6 form.
I'm t...
I am using the WPF toolkit datagrid to display some data and want to increase the thickness of the horizontal girdlines for each row, I would have thought this would be a simple thing to do but i can't find solution.
...
Whats the rationale for using signed numbers as indexes in .Net?
In Python, you can index from the end of an array by sending negative numbers, but this is not the case in .Net.
It's not easy for .Net to add such a feature later as it could break other code perhaps using special rules (yeah, a bad idea, but I guess it happens) on indexi...
hi folks, i'm using ip*works for download newsgroup message and insert them into a database... ipworks is "comfortable" to use because it automatically split nntp data return into different object (or variable). So i've "author" "date" "topic" "messagge" already splitted to my use.
However ipworks isn't free and it cost a lot for my use...
I use
System.Windows.Media.RenderCapability.Tier to show the current render mode within a diagnostics panel of my app.
If I force the app (3.5sp1) to change the render-mode through the following code
HwndSource hwndSource = PresentationSource.FromVisual(visual) as System.Windows.Interop.HwndSource;
HwndTarget hwndTarget = hwndSource.Co...
i have one independent form where i am checking read only access of an xml file ,
if the file is read only then i have to display message in the status bar of MDI form.
since i am using independent form to valid xml file, status bar of the MDI form is not displaying the error message.
now how to display message?
thanx in advance
...
I'm learning REST to implement some Services with WCF. I implemented an example with a MemoryStream. Because MemoryStream is Disposable I wrapped it in a using. When I do this I sometimes can see the xml response in the browser (IE8) and sometimes it will just show me the following Errormessage:
The download of the specified resource h...
Hi,
This is a difficult question to ask and answer, because it involves a lot of components. I would appreciate it however if any suggestions can be made.
I have a vb.net forms application that has a form containing a webbrowser control. This control i feed a URL with a flash applet. The flash applet's purpose is to start the user's we...
Hi there,
we want to use the azure appfabric for our software. But not every customer wants to buy an expensive azure account. Is it possibile to define and use an azure interface in our software but to connect the server and client local?
Mimefilt
...
Are there any .NET libraries etc. which allow adding layers (with text) to .tiff images?
Something like annotations, so that it would be possible to separate them from image afterwards.
I tried DotImage - it allows to add annotations, save them as embedded into image and load them afterwards, but no one other image viewer seems to reco...
First of all i am new to networking so i may say dumb thing in here.
Considering a client-server application using sockets(.net with c# if that matters).
The client sends some data, the
server process it and sends back a
string.
The client sends some other data,
the serve process it, queries the db
and sends back several hundreds of
it...
Edit
I've added the following code, however I get an error @ SendInput:
File I/O of a structure with field 'dwExtraInfo' of type 'IntPtr' is not valid
Public Sub DoDoubleClick(ByVal wait As Integer, ByVal x As Integer, ByVal y As Integer)
Dim inputEvents(0) As Input
Dim p As MOUSEKEYBDHARDWAREINPUT
p.mi.dx = x
p.m...