|
Do keep in mind that the DateTime type always uses the Gregorian calendar, so you should use the Calendar class to truly get the right date if not doing this strickly for the DateTimePicker . See http://blogs.msdn.com/michkap/archive/2005/03/28/402839.aspx[^] for more information.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Thanks for replying folks, much appreciated.
The code works perfectly, thank you.
I will bear that in mind about the Gregorian Calendar too, thanks for pointing it out.
Again, much appreciated.
Scott
|
|
|
|
|
Hi all,
I was experimenting with generics and some new stuff of ASP.NET 2.0 in whidbey beta1 given during Teched 2004...everything was working fine till last night..and suddenly today morning when i opened beta1 horrible dialog box saying - "The beta period has expired- thank you for participating in our beta program, you can now safely remove Microsoft development environment from your computer" appeared...I have checked google and found that expiry date of whidbey beta1 is around 15th July 2005..so whats up???
The strange thing is - "It didnt show me any warning that my version is going to expire..." My colleagues are using the same version(teched beta1) but its fine for them...
So, Is there any way by which I can open that solution!!!!
Thanks in advance!!!
REgards
MaulikCE
i don want
|
|
|
|
|
Why not just use the Whidbey Beta 1 that's freely available on MSDN? You can download the express versions or have them mail you a DVD of the Enterprise version.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: He has a funny face. And he's my son.
Judah Himango
|
|
|
|
|
Check the date on your system. You system may be set to a date of future.
|
|
|
|
|
I want to duplicate a file.
However, exception occured when I use the Copy method twice.
e.g.
File.Copy("from1.jpg","to.jpg,true");
File.Copy("from2.jpg","to.jpg,true");
How can i solve it?
|
|
|
|
|
|
Thank you for your reply.
The exception is about the file is being used by other application.
In my algorithm, they should be copied to the same file name.
How can I solve it?
|
|
|
|
|
|
BTW, why are you copying these files to one file? The second copy operation is overwriting the first copy you did, so why copy the first file at all?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Greetings to you all
I'd Like to know if there is a simple way to do the application translation to another languages
something like the string tables in the VC++
Best Regards
Diogo Alves
|
|
|
|
|
Not translation, no, but localization and globalization, yes. Read Developing World-Ready Applications[^] in the .NET Framework SDK for detailed information. ResX files are actually better than string tables because you can store more than just strings. Even something as simple as string formatting is better in .NET because you can specify which arguments go where in a string, meaning that you can localize the format string but still specify the parameters in the same order for any language. See my article, Custom String Formatting in .NET[^], for a discussion about this.
If you're using Visual Studio .NET to develop your managed applications, developing world-ready applications could be much easier. Design your UI and all the text, the select the form and open the PropertyGrid (should already be open; otherwise, right-click and select "Properties"). Find the "Localizable" property and set it to "True", then find the "Language" property and set that to another language. You can then change your strings, control sizes and locations, and more.
A few things to keep in mind. The neutral language - the language in which you develop and that the primary assembly (the assembly with code) uses - should not be localized separately. This is also the fallback language if a satellite assembly cannot be found. This is covered in the documentation I linked first. To make your application run faster, you should put the following attribute in your AssemblyInfo.cs file (or anywhere, actually, but that source file is most common):
[assembly: System.Resources.NeutralResourcesLanguage("en-US")] Here, my neutral language would be "en-US" (English (U.S.)) because that's the language in which I developed the primary assembly. I could then switch to "German" (for an invariant locale, which means I'm just localizing the German language but not for a particular region) and change my UI. When you compile, several assemblies are produced. You must ship all to have your localized UI displayed correctly.
The localized UI is controlled by the Thread.CurrentUICulture . Windows will set the thread's LANGID (the CurrentUICulture) to the user's preferred (or the system's default) LANGID, but you can override that by setting Thread.CurrentUICulture before displaying your UI.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Please, help me
I have one problem. I don't know how to drawing ONLY one point on form.
Thanks
|
|
|
|
|
Does drawing a line from x,y to x,y+1 solve your problem?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
|
Hi
I have a functional web service. It's very simple - like adds two numbers. then when i want to use it in a c# application, i know i should add it as a web reference.. In all the examples i have seen, the Solution Explorer shows many other files under the new web reference. but when i add mine, it just shows the name of the reference. Is this a problem? Cuz i cant get the application to find the service when i try specify it with USING ... ?
Please help!
Thanks
|
|
|
|
|
Hi,
You can see all the files by taking the "Show All Files" option from the solution explorer. Then you can see the .WSDL , .DISCO files and all the other files.
If you want to access your service reference in the "using" statemen give
using XXXX.WebreferenceName;
where XXXX is the namespcace of the application to which you added the reference.
Guess this will help you.
Thanks and Regards
SGS
|
|
|
|
|
Hi, I'm trying to have interprocess communication between two programs. The first one is written in C++ (embedded for PocketPC) and the latter in C# and .NET CE (for PocketPC). I want to use memmory mapped files for IPC.
In the C++ side I use the following API:
CreateFileMapping()
CreateMutex()
MapViewOfFile()
...
What can I do from the C# side in order to communicate properly?
Thank you,
Themis
|
|
|
|
|
Hi All,
I am trying to build an application in VS.Net which uses Crystal Report 11 to build the rpt file. I have an XML and XSD file as my datasources. I want to view the report in PDF format. Now my source code looks like:
ReportDocument doc = new ReportDocument();
string fileName = Server.MapPath("MyReport.rpt");
doc.Load(fileName);
DataSet ds = new DataSet();
ds.ReadXml(Server.MapPath("MyXML.xml"));
doc.SetDataSource(ds);
ExportOptions exportOpts = doc.ExportOptions;
exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat;
exportOpts.ExportDestinationType = ExportDestinationType.DiskFile;
exportOpts.DestinationOptions = new DiskFileDestinationOptions();
DiskFileDestinationOptions diskOpts = new DiskFileDestinationOptions();
((DiskFileDestinationOptions)doc.ExportOptions.DestinationOptions).DiskFileName = Server.MapPath("MyPDF.pdf");
doc.Export();
But it gives me the error
"Query Engine Error: 'c:\inetpub\wwwroot\MyWebsite\MyReport.rpt'"
I tried out all the forums but could not find any solution. Someone told me that it is due to xsd file error. But in Crystal Report it is running perfectly OK. Can anyone help.
|
|
|
|
|
I'm getting a weird problem while reading the standard output from a process I've created while its running. The console output from the process is A, B, C, D, E but for some reason I am getting the output from standard out as A, B, C, E, D. Has anyone encountered this before?
I'm using a separate thread to read standard out and push the results to a Queue which is then read by the main application and displayed in a text window.
Writing to the Queue in the thread:
ConsoleLine = null;
while( (ConsoleLine MyProcess.StandardOutput.ReadLine()) != null )
{
ConsoleLine += System.Environment.NewLine;
lock( m_OutputQueue.SyncRoot )
{
m_OutputQueue.Enqueue( ConsoleLine );
}
ConsoleLine = null;
}
Reading from the Queue and updating application:
do
{
while( (StdStreamReader.m_OutputQueue.Count>0) && (i<5) )
{
// get output from queue
ConsoleLine = StdStreamReader.m_OutputQueue.Dequeue() as string;
//process output
if( globals.ProcessBuildOutput( ConsoleLine ) )
{
bErrors = true;
}
i++;
}
// let the app do some housekeeping
Application.DoEvents();
//Give the process some room to breath
System.Threading.Thread.Sleep( 100 );
}while( !MyProcess.HasExited );
|
|
|
|
|
Holla.
I have a little question here:
How to I pipe a processes standard input or output somewhere else?
I mean: I want to run a Console App as a process. This, of course, means that I dont want the console to display (if I wanted that, I would use Process.Start("cmd.exe","/C ConsApp.exe").
However, I have some difficultied rerouting the StandardOutput to a richTextBox.
How do I do this - it always tells me that StandardOut is read-only?!
Cheers
Sid
P.S.: Tired and confused
|
|
|
|
|
And YES, I did use a Stream. I just thought that seeing some basically working code might help?
Could you post some example code which outputs the result of "type text.txt" to a textbox, so I can see some complete code?
Cheers
Sid
P.S.: process' and difficulties. Consider my prior post corrected
|
|
|
|
|
How to obtain the server name of the one machine or the office land online SQL SERVER2000?
|
|
|
|
|
The problem has been solved with sqldmo
but How to get the password of sa user of Sql Server2000?
|
|
|
|
|
I need code to verify email in win form, help!
|
|
|
|