|
Because DateTime.Now is of type DateTime...
Try
Label1.Text = DateTime.Now.ToString();
or custom format
Label1.Text = DateTime.Now.ToString("yyyy-MM-dd"); //etc...
|
|
|
|
|
Well, the error message is clear...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Everyone gets bogged down in the beginning with small things like t hat
|
|
|
|
|
How i can connect with mysql database on the server through PDA using C#
wasim khan
|
|
|
|
|
Well.. I'm using a library you can download it from mysql website it's called:
MySql Connector Net.
It works pretty good for me and it imitates the ADO.NET structure, but I don't know
whether there's something special for PDAs.
Here is the link:
http://dev.mysql.com/downloads/connector/net/5.2.html[^]
I'm using version 5.0 and it works fine. You can try the other versions but I know nothing about them.
Hope it was useful.
|
|
|
|
|
k Thanx blackangelss
let me explore it
wasim khan
|
|
|
|
|
Hi,
if we check the parent node of the treeview then all the child node should be checked & also when we uncheck the parent node then it should uncheck the child node.code for web Application.
|
|
|
|
|
string data = GetYourQuestion();
if (!CheckQuestionIsRelatedInThisForum(data)){
throw new WrongForumException("GET OUT OF HERE...");
}
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
function checkAll(field)
{
for (i = 0; i < field.length; i++)
field[i].checked = true ;
}
function uncheckAll(field)
{
for (i = 0; i < field.length; i++)
field[i].checked = false ;
}
HTML Part
<input type="button" name="CheckAll" value="Check All" onclick="checkAll(document.myform.list)">
<input type="button" name="UnCheckAll" value="Uncheck All" onclick="uncheckAll(document.myform.list)">
|
|
|
|
|
Wrong forum. Do not post a javascript question in the C# forum
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
You just posted this a few posts down... please dont do that, else no-one will want to answer you.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Hi,
I am using ref parameters to return values...
What is wrong with this code please?
private void SecurityTypesValidity(ref string strFirst, ref string strSecond,
ref string strThird)
{
//some processing to assign the above parameters i.e:
//...
strFirst = "valid";
strSecond = "Indeed";
strThird = "super";
}
string strFirst = "";
string strSecond = "";
string strThird = "";
//error on this line ???????
SecurityTypesValidity(strFirst, strSecond, strThird);
//????
The error above is 'Argument 2 must be passed with ref keyword'
|
|
|
|
|
arkiboys wrote: SecurityTypesValidity(strFirst, strSecond, strThird);
SecurityTypesValidity(ref strFirst, ref strSecond, ref strThird);
hope it helps
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
Corrected and solved.
Thanks
|
|
|
|
|
The error message states clearly what you should do.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi there
I think everybody know about OnScreen Keyboard[^] from MS Windows(type osk in run).
I wish to make that kind of application using C# but i have the following questions:
1) Those buttons are customs controls?
2) How to have just one function which triggers the pressed keys?
modified on Thursday, October 30, 2008 5:50 AM
|
|
|
|
|
Someone who is actually researching! That deserves some help
duta wrote: 1) Those buttons are customs controls?
Those buttons won't be custom controls in the original program. However, Custom Controls would be an idea if you want to build something like that yourself. You could also use a "real" button, but those aren't flat.
duta wrote: 2) How to have just one function which triggers the pressed keys?
Drag two buttons on the screen, and double-click on the OnClick handler of button1. This will create an event-handler for button1. Next, click once on the OnClick-handler of button2, and you'll get a list of events that have been built. Choose the event of button1. Both now point to the same event.
You can also do this in code. First, create a general event-handler for the buttons;
void button1_Click(object sender, EventArgs e)
{
}
In the load-event of your form, add some code to wire-up the events;
this.button1.Click += new EventHandler(button1_Click);
You can wire the second button to the same handler;
this.button2.Click += new EventHandler(button1_Click);
This way the Click-event of button2 will point to the eventhandler as declared for button1.
Hope this helps
|
|
|
|
|
Hi,
In our project we want to use satellite assembly from GAC. Can anybody give more detials on this. It will be great.
Thanks & Regards,
Kumar
|
|
|
|
|
When creating a satellite assembly you should work with the naming convention suggested by Microsoft, The format of which is <resource_name>.<culture_identifier>.resource where the culture identifier consists of ISO language and culture strings.
Clickety
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
I need some help here guys,
I need to represent Set in the following form
[L,R]
where L is the left hand-bound of the set , and R is the right hand-bound
each of L and R are a collection of sets
for example
L= [{1},{2},{2,3}]
R=[{1,2,3},{2,3,4}]
[L,R]= [{ {1},{2},{2,3} } , { {1,2,3},{2,3,4} }]
how can i do that in an efficient way that allows me to manipulate the set (calculate subsets and super sets from L and R..etc)? (i.e, checks weather elements in L are subsets of some elements in R?
|
|
|
|
|
There's no set class in .NET. AFAIK you need to write this all yourself.
Your set is a list of lists ?
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
yes , its a list of list
i thought i may use an array of arrays but i couldn't do it right
|
|
|
|
|
Christian Graus wrote: There's no set class in .NET. AFAIK
There is HashSet in .NET 3.5 .
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Yes, but it's not very usable for normal set operations; mine's better.
|
|
|
|