|
C# would not support that but VB.NET has support for that. Your best bet would be to go in for overloads.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Current versions of C# do not support optional parameters. This functionality will not be released until Visual Studio 2010 and .NET 4.0 comes out.
|
|
|
|
|
How can we find if an excel workbook has other data in it except text?
Because i am trying to write data in excel having picture objects or macros the excel sends its own error messages and crashes
Kindly help if there is a way.
|
|
|
|
|
Please read the forum posting guidelines here[^], particularly item 3.
Hi, is not a good choice for the subject of your message.
"Problem writing images to Excel", or something similar is far better. Many people will simply ignore posts with a subject like yours, therefore cutting down on the chances of your getting a useful response.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Henry Minute wrote: Many people will simply ignore posts with a subject like yours
while others jump at the occasion.
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
hi
i am working on a project that need to transaction between a database on server and application on client.
but i dont know how set the connection string and anything else to need to be set for this goal.
please tell me a solution or website or toturial sample for this problem.
thank you.
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
|
oh i think that you didnt understand my means
i want to set a connection string and anything else on server for connect to a database on the server via application that runs on clients pcs. i test the usuall connection string like webserver connection string that used for asp.net or localhost connection string that used in local application but these technique does not work.
if you know some information about server settings for work with database please help me.
thank you again.
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
mr.mohsen wrote: webserver connection string that used for asp.net
No such thing, but, whatever...
You don't "set" the connection string on the server. A connection string describes how and what a client should connect to to get at a certain database.
Since you don't make any mention of which database engine your trying to connect to, and/or how you're providing credentials to login, how the database is setup to accept credentials, ..., it's impossible for anyone to tell you what the connection string might look like.
So, have a look at http://www.connectionstrings.com[^].
|
|
|
|
|
A few quick guidelines:
1) A subject in the forum message should be a quick hint of your problem.
2) Typos normally tend to discourage serious experts from paying heed to your query. You ought to pay a little attention to ensure that your query is clean.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Hey buddies ........ I just started to make local area chat ............ I can send and recieve stream of data but how do i know whether the connected client(s) are disconnected or not while chatting?
One other thing I want to ask is ................. How can I send Images with each other in this clients ..... and to display one image from one client to another clients picture box? ................
I appreciate your help. Thank you.
|
|
|
|
|
If they disconnect, the socket dies.
Sending an image is the same as sending text really, but if you previously only sent text you'll need a way to keep text and images apart (just stick an int in front of them or something like that)
|
|
|
|
|
Thank you for your help .....
harold aptroot wrote: If they disconnect, the socket dies.
so .... is there a method or something to know which socket dies(i mean which user disconnected)? I think it looks silly question.
Thank you agian
|
|
|
|
|
Of course, when you're trying to use a socket and it throws an exception, then that's the socket which died
|
|
|
|
|
|
Hi,
use a static integer variable to count the active clients in your main thread of server. each time a client connects count 1 up. and decrease if the clients disconnects.
bye
|
|
|
|
|
Yes, I thought in that way but .... I want to know when they are disconnected ... my question really here.... How do I know when one client is disconneted.
Thank you man.
|
|
|
|
|
here, when i Click a button then connect to Database server and program run properly
|
|
|
|
|
In button click event, write connection string. this will lead to connect to your database. which database you are using?
|
|
|
|
|
Rahad
Will you PLEASE go and buy a book on C# and database programming, work through it and come back when you can ask an intelligent question.
|
|
|
|
|
Dont you go round encouraging him now!
var question = (_2b || !(_2b));
|
|
|
|
|
I did check his history before I became 'encouraging', there seems to be a rash of teach me programming, build my database type post today.
|
|
|
|
|
Hi, I've written the WorkbookEvents_SheetCalculateEventHandler event to trigger for recalculation in Excel.
public event Excel.WorkbookEvents_SheetCalculateEventHandler SheetCalculate;
SheetCalculate = new Excel.WorkbookEvents_SheetCalculateEventHandler( ThisWorkbook_SheetCalculate);
The function Workbook_SheetCalculate(object Sh) triggers when there is a formula change in the excel sheet.
My aim is to read the function result from the Sh object.
for example, if A1=15, A2=17 and A3=SUM(A1,A2)
Workbook_SheetCalculate fires as soon as there is change in A1 or A2. I need to read the function result,32. Please guide me to get the value.
Thanks in advance.
|
|
|
|
|
Hello
In my application i am having a datagridview with a combobox column
and the data in the combobox is binded with a company table in database.
and the display member field is binded with column "Company Name" and
the Value field is binded with column "Company Id".
When i click on the save button i like to save the selected display
member and also the value field.
Plz tell me how i can do this...
Thanks in advance...
|
|
|
|