|
Lol, be both thought of "06120", this really scares me
But you need to subtract 1 from the AddDays() function, because 1/1/yy is already one day passed.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I'm not sure this is the best solution, but it works for me:
string strdate = "06120";
DateTime date = new DateTime(Int32.Parse("20" + strdate.Substring(0, 2)), 1, 1);
date = date.AddDays(double.Parse(strdate.Substring(2, 3))-1.0f);
Console.WriteLine(date.ToString());
Don't forget to add some exception-handling. Also I added the "20", since your format only has the last two digits of a year given.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
How come this gives me a compile time error?
internal bool Foo
{
get { return this.foo; }
protected internal set { this.foo = value; }
}
Error 1 The accessibility modifier of the 'xxx.Foo.set' accessor must be more restrictive than the property or indexer 'xxx.Foo'
|
|
|
|
|
Unlike the assumed implication, protected internal means "protected or internal," not "protected and internal." That is, something that is protected internal will be accessible to either anything in its assembly or anything that is a subclass of it, not only to things that are subclasses within the same assembly. Therefore, protected internal is less restrictive than internal, hence the error.
Try:
<br />
protected internal bool Foo<br />
{<br />
set { this.foo = value; }<br />
protected get { return this.foo; }<br />
}<br />
That may work better.
Stephan
|
|
|
|
|
Hi all,
I have installed the software google desktop in my pc now i want to display the results found by google desktop in my own form i.e. i want to pass the query to this software and then get the documents found by it and the summary of the document
how can i achieve this using C#...
looking forward for help
Regards,
|
|
|
|
|
I want to konw it also,hi hi.
|
|
|
|
|
hahahaha well i already knew that but i really needed it so i thought y not just give it a try...anyways have fun byee
|
|
|
|
|
I have a wsdl for a Java Webservice and the .NET wsdl tool will not generate a proxy class. I guess the problem was that the wsdl was referencing xsd that the tool did not understand. Changing the return type to String made it to get the proxy. But when I send message the Soap wrapper adds an element by the parameter name after the Soap body. I tried the Use and Parameter Style set to 'Encoded' and 'Bare' resp. but that only make the element to be called 'String'. I am not sure why this happens and how to prevent it. Any help is appreciated.
Thanks,
Vishy
|
|
|
|
|
Hi all
I have a form with a datagridview and a couple of fields on it. These are bound to a dataset.
When I select a record in the datagridview, the correct information shows up in the fields.
Now I want to give the user a visual indicator that data on the form has changed.
To do this I have put a panel at the top of the form. The idea is :
if the data has not changed the panel is green
If the data has been changed by the user, the panel goes red.
This is causing problems.
I had the event to change the colour in the textchange event. Problem: when i move to the next record, the text changes and I get a red flag when the user has not changed data.
I can work around this using the keypress event for text fields, the click event for checkboxes as these are not triggered when the text for the next record is displayed.
What do I do with the dropdown boxes to get the same effect?
Also just noticed : If I use the mouse and select and cut the data from the text field, the keydown event (obviously) is not triggered.
Rowchange OR rowchanging does not get triggered until I select the next record in the datagridview
Can anyone suggest a simple way to implement what I thought would be basic functionality?
I realy would like my users to know when a single field has been changed as they change it
Thanks
|
|
|
|
|
Which library should you use for editing, playing ect. media files in Windows Vista?
Will DirectShow be discontinued in DirectX10?
Will .NET 2.0 be included in Win Vista?
Programming is like Mathematics… you take ONE step at the time!
|
|
|
|
|
.NET 2 is included in Vista. It's called WinFX, and actually is a superset of what's currently inside the .NET framework.
For media files like that, WinFX has APIs in the System.Windows.Media and many 3d APIs with video and animation support contained within the System.Windows APIs.
DirectShow is already discontinued; it's functionality has been rolled into the Platform SDK since last April.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Goof around music jam with my brothers (with video)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Actually...WinFX is the implementation of codename Avalon. It is solely applicable to windows form development and is appended to the 2.0 framework. WinFX, however, is NOT a new name for .NET 2.0. The pieces of code that will integrate WinFX development into Visual Studio is codename Orcas.
|
|
|
|
|
theRealCondor wrote: WinFX is the implementation of codename Avalon
Nope, the implementation name of Avalon is Windows Presentation Foundation. WinFX is the framework encompassing all managed development, including the .NET 2.0 framework and all related developer tools such as XamlPad and others.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Goof around music jam with my brothers (with video)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
KiloDunse**DK** wrote: Which library should you use for editing, playing ect. media files in Windows Vista?
This is a question to ask on one of the Microsoft forums. This isn't a C# programming question.
KiloDunse**DK** wrote: Will DirectShow be discontinued in DirectX10?
Don't know.
KiloDunse**DK** wrote: Will .NET 2.0 be included in Win Vista?
Yes.
-- modified at 15:18 Thursday 1st June, 2006
|
|
|
|
|
Hello,
Im writing this app that constantly read data from a target. When the target sends me a response, i only received a partial data of that response. however when i use debug/break mode to step through it, i receive the complete data. Any idea about that?
Is there a code equivalent to a break?
Thank you,
Donkaiser
|
|
|
|
|
Just log your data to a file. You can check your file after receiving data.
|
|
|
|
|
Are you reading from an asynchronous stream, like a socket? These things behave differently depending on external factors, so you may get different results when debugging. If this is the case, you need to be a little more careful about what's in the buffer and when you've reached the end of a message.
|
|
|
|
|
if (dataisfunky)
{
System.Diagnostics.Debugger.Break();
}
|
|
|
|
|
When I type in the combo box it would find the nearest value and fill in the combo box with that text but still allow me to continue typing if I want to find a value that isn't the first match.
Example:
New York Knicks
New York Mets
New York Yankees
If I typed "New" it would find the Knicks and fill in my combo box with "New York Knicks" but would allow me to keep typing cause the value I do want is the "New York Yankees", once I tab off the control it will select the value that is the closest match ande once the user starts typing the drop down list displays the values. Is this possible? I hope that makes some sense.
i have search through the net and i cannot find one that behaves like the one i described above.
if any of you have seen or wrote articles about this please refer me.
thanks
regards paula
|
|
|
|
|
|
in addition to the link provider by the above poster, you can have a look at this
http://www.codeproject.com/cs/combobox/csautocomplete.asp
Also if you are using Visual Studio 2005 then you can easily set the Autocomplete property of combobox to custom source.
|
|
|
|
|
Hi everyone,
I need to cast object "param" passed from method parameter to an array of integer(space is an array)
Is there any way of doing it?
Please help, if you have time.
Thank so much
Thread compact = new Thread(new ParameterizedThreadStart(Program.AccessData));
Console.WriteLine("Thread compact starting...");
compact.Start(space);
public static void AccessData(object param)
eric
|
|
|
|
|
int[] theArray = (int[])param;
---
b { font-weight: normal; }
|
|
|
|
|
|
Hi people ! Any of you know who to add a link to exe file into Windows menu "Programs\StartUp" without using registry key ?
Thnaks a lot !!!!!
|
|
|
|