Click here to Skip to main content

Comments by Kim Togo (Top 200 by date)

Kim Togo at 27-Jun-14 7:23am View
   
Great! :-)
Kim Togo at 20-Jun-14 7:56am View
   
That is much better.
Kim Togo at 20-Jun-14 6:59am View
   
My vote of 1.
"System.Threading.Thread.Sleep(20000);" it freezes the whole UI!
 
It will make the UI unresponsive for 20 sec.
Kim Togo at 18-Jun-14 8:20am View
   
Good answer, it is worth to mention that the code from OP does not work because SqlDataReader is created without any relationship with a SqlCommand object.
 
"SqlDataReader reader = new SqlDataReader()"
Kim Togo at 10-Jun-14 4:39am View
   
Yes. See this char => ?
That is a question mark.
Kim Togo at 10-Jun-14 4:29am View
   
Is this a question about WinForm, WPF, ASP.NET ?
Kim Togo at 13-Jan-14 5:36am View
   
Okay, then use Solution 1 by Christian.
Kim Togo at 20-Aug-13 2:17am View
   
Glad you can use it :-)
Kim Togo at 8-Aug-13 2:25am View
   
Yes, this is an old post.
But generally, you use "AT" command to control the usb 3g modem, and voice has to transferred in an other way. "AT" command is used via Serial Port (COM).
But perhaps the manufacturer of the usb 3g modem has som SDK you can use ?
Kim Togo at 12-Jul-13 8:23am View
   
Thanks Sushil :-)
But you do not need to delete your solution if it works.
Kim Togo at 12-Jul-13 7:59am View
   
Yes I can.
 
Change:
Second = new Thread(new ThreadStart(this.Invoke(new Action(() => comboBox1.Items.Add("Hello from Thread"))););
 
To:
Second = new Thread(() => this.Invoke(new Action(() => comboBox1.Items.Add("Hello from Thread"))));
Kim Togo at 12-Jul-13 3:20am View
   
Reason for my vote of 2 \n Must agree with the others here.
yield keyword is NOT a new thing i C#.
Kim Togo at 29-Jun-13 13:13pm View
   
Cool :-), I know the feeling.
Kim Togo at 27-Jun-13 9:57am View
   
Deleted
Cool :-), I know the feeling.
Kim Togo at 26-Jun-13 12:45pm View
   
You have to be more specific.
Do you want to query a sql database for data and populate a List in C#?
Kim Togo at 18-Dec-12 3:15am View
   
Nice. The only down side I can think of, is code readability and maintainability.
Kim Togo at 18-Dec-12 3:12am View
   
Correct - Case statement has to be a constant expression.
Kim Togo at 29-Nov-12 4:03am View
   
Hi Earloc
I very much appreciate your help.
 
And about "I would check if the DragDropEffect your are setting is supported by the Lync-Drag operation (e.g. by examining the AllowedEffects-property of the DragEventArgs)."
 
My problem is, that no Drag events are generate in my WPF application. But in WinForm it works.
Kim Togo at 29-Nov-12 3:10am View
   
In my WPF I have set "AllowDrop" to true, and have hookup all events on "DragEnter", "DragOver", "DragLeave" and "Drop"
 
In my "DragOver" event, I have set e.Effects = DragDropEffects.Copy and e.Handled = true.
But still no "DragEnter", "DragOver" events is triggered, WHEN I do a Drag & Drop from Microsoft Lync.
 
If I do a Drag & Drop from Internet Explorer, it works as expected.
Kim Togo at 18-Sep-12 2:12am View
   
Good approach with LINQ, makes it easy to read.
You can change the
this.Controls.Cast()
to
this.Controls.OfType<Panel>()
 
Then it will only return Controls of type Panel.
Kim Togo at 18-Sep-12 2:04am View
   
Thanks Wes
Kim Togo at 18-Sep-12 2:03am View
   
Great to hear.
But writing all the code for you, will not make you a better coder.
The best way to learn to code, is to do it your self. But I am glad I could help.
Kim Togo at 23-Jul-12 5:01am View
   
Can you please give more information.
What type of mobilephone?
Is connection made through USB cable, serial cable, Bluetooth etc ?
Kim Togo at 7-May-12 5:40am View
   
Probably. It depends on the Mobile provider.
Some providers has a Web interface, others have a special interface.
Kim Togo at 10-Apr-12 5:39am View
   
You are welcome :-)
Kim Togo at 13-Feb-12 2:09am View
   
That is good.
Yes it might work. I somethings use DateTime.ToString("s").
The Sortable ("s") Format Specifier
The custom format string is always "yyyy'-'MM'-'dd'T'HH':'mm':'ss", disregards local culture settings on the computer.
Kim Togo at 6-Feb-12 1:55am View
   
Do you mean SMTP Relay ?
Where you receive an e-mail and process it and sent it to another SMTP server?
Kim Togo at 1-Feb-12 2:14am View
   
You want to split the string for every 40's chars?
Kim Togo at 1-Feb-12 2:13am View
   
Unclear...?
Kim Togo at 22-Jan-12 8:11am View
   
Thanks
Kim Togo at 22-Jan-12 8:08am View
   
I have misread the question from OP.
I thought the Android phone should detect the accident and sent the accident to a web service...
Kim Togo at 22-Jan-12 8:00am View
   
You can try a terminal program (like PuTTY), where you manually can type in AT commands and see for you self what AT commands that are not working.
Kim Togo at 22-Jan-12 7:50am View
   
My 5 Espen. Good points. Windows XP is over 10 years old now. Service Pack 3 for Windows XP is mandatory :-)
Kim Togo at 21-Jan-12 11:15am View
   
That sounds like a nice project :-)
Kim Togo at 21-Jan-12 6:04am View
   
You can try to experiment with file access control in Windows Explorer, and have another user login that do not have the same access. When you found a combination that works. Use File.GetAccessControl to readout what types of access list is need.
Kim Togo at 21-Jan-12 4:36am View
   
Under FileSystemRights Enumeration link,
There is a FileSystemRights.Delete that "Specifies the right to delete a folder or file."
Kim Togo at 21-Jan-12 3:52am View
   
Repost - See http://www.codeproject.com/Questions/317868/Why-the-data-are-not-updating-in-table
Kim Togo at 20-Jan-12 3:09am View
   
You can use Math.Abs(...), see updated answer.
Kim Togo at 17-Jan-12 13:35pm View
   
Well explained SA, my 5.
Kim Togo at 17-Jan-12 13:19pm View
   
Windows Firewall ?
"Netsh" command-line utility perhaps?
Kim Togo at 17-Jan-12 13:17pm View
   
What kind of errors/exceptions are you getting ?
Kim Togo at 17-Jan-12 12:53pm View
   
I do not see the point in that.
Using a dedicate database is much better.
Kim Togo at 14-Jan-12 10:08am View
   
You are welcome.
Kim Togo at 14-Jan-12 3:00am View
   
From OP: please tell me just 1 manufacture how to generate and read barcode
Kim Togo at 10-Jan-12 2:11am View
   
From OP:
thanks for your reply
i want write a web service that can send sms via gsm modem but i dont use sms gateway thanks
Kim Togo at 10-Jan-12 2:02am View
   
Use Supriya Srivastav and Jaganathan B solutions and you have a working method! :-)
Kim Togo at 10-Jan-12 2:01am View
   
Yes correct! :-)
The only problem here is SQL injection.
Use SqlCommand.Parameters to solved the problem.
Kim Togo at 10-Jan-12 1:59am View
   
There is no need for a DataReader her.
A SELECT statement with one column will do it.
Kim Togo at 10-Jan-12 1:57am View
   
Will not work correct.
The WHERE statement of [Password] ignores upper and lower case.
Kim Togo at 7-Jan-12 2:51am View
   
Yes it is. But you are asking the wrong question.
You have to provide with more details, like. What type of email system, IMAP4 access to email account etc.
Kim Togo at 7-Jan-12 2:45am View
   
What?
An UserControl - http://msdn.microsoft.com/en-us/library/system.windows.forms.usercontrol.aspx
"Provides an empty control that can be used to create other controls."
Kim Togo at 7-Jan-12 2:44am View
   
Help full links. My 5.
Kim Togo at 3-Jan-12 3:03am View
   
Thanks SA. And Happy New Year!
Kim Togo at 3-Jan-12 2:59am View
   
My 5 for all the good advice :-)
Kim Togo at 3-Jan-12 2:58am View
   
Thanks!
Kim Togo at 3-Jan-12 2:22am View
   
Kim Togo at 24-Dec-11 16:26pm View
   
What type of program, database, type of OS?
Kim Togo at 13-Dec-11 4:18am View
   
Deleted
This is a repost of
http://www.codeproject.com/Tips/294991/Read-Registry-using-Csharp
 
Please delete this tips and stick to the other tip :-)
Kim Togo at 10-Dec-11 3:51am View
   
What type of media is it?
VoIP/SIP, Mobile phone or ??
Kim Togo at 10-Dec-11 3:47am View
   
+5 for the good answer.
Kim Togo at 7-Dec-11 3:17am View
   
Total correct SA my 5.
Only convert DateTime to string when needed to show in UI controls.
And when it has to be showed in UI, then please please follow the Regional settings.
Kim Togo at 16-Nov-11 3:54am View
   
This is a repost of http://www.codeproject.com/Answers/284688/C-or-cplusplus-connection-with-mysql-for-insert-op
Kim Togo at 14-Nov-11 3:00am View
   
Check the examples code in TcpClient.
Kim Togo at 10-Nov-11 3:44am View
   
You are welcome :-)
Kim Togo at 10-Nov-11 3:10am View
   
Okay then :-)
Then you need to install MySQL server, just has you self did. And for your own program, you have to copy the .exe file.
Kim Togo at 10-Nov-11 2:54am View
   
No. You have to understand the basic in LAN network and IP protocol.
If you have 4 computers, and they are all on the same local area network (LAN). Then they probably have an IP address.
On the computer here the MySQL server is installed, write down the IP address (To see the IP address, rund CMD.EXE and type "IPCONFIG")
 
If the MySQL server has IP address "192.168.1.100", then use this IP address on the "new MySQL_Connection" options.
Kim Togo at 10-Nov-11 2:40am View
   
Do not do that. Create you own protocol, perhaps and XML document, where you will have all the information you need.
 
You cannot stream/serialize all types of objects.
See Serialization (C# and Visual Basic) and How to serialize an object to XML by using Visual C#
Kim Togo at 10-Nov-11 2:27am View
   
On the other computer, copy your program .exe file and mysqlcppconn.dll file or if you have compiled it with a static .lib file "mysqlcppconn-static.lib" you only need the .exe file.
 
when you create a MySQL_Connection object, you then specify IP address where the MySQL server is running, a valid username and password.
 
Example:
sqlConnection = new MySQL_Connection("192.168.1.100", "myusername", "mypassword");
Kim Togo at 10-Nov-11 2:07am View
   
Where the MySQL is installed is up to you.
If you have 4 computers, then 1 computer can have the MySQL server installed and the other 3 computers can access the computer where the MySQL server is running.
 
All users are accessing the same MySQL server.
Kim Togo at 10-Nov-11 1:27am View
   
What has "Respones.Redirect" to do with C++ and MySQL?
Kim Togo at 13-Oct-11 2:49am View
   
Yes you can. But you have to finde the right tools to do it. Search the here on codeproject and google :-)
Kim Togo at 2-Oct-11 11:17am View
   
Haha thanks :-)
Must confess that the original text is her:
 
http://www.codeproject.com/Lounge.aspx?msg=3485467#xx3485467xx
Kim Togo at 1-Oct-11 13:13pm View
   
My 4 for a simple answer.
Kim Togo at 1-Oct-11 13:12pm View
   
Thanks Simon.
Kim Togo at 1-Oct-11 13:12pm View
   
Thanks Espen.
Kim Togo at 1-Oct-11 13:11pm View
   
My 5 for at good answer that will help OP to solve the problem :-)
Kim Togo at 14-Sep-11 12:26pm View
   
Deleted
Thanks Raja.
Kim Togo at 14-Sep-11 12:22pm View
   
You are welcome :-)
Kim Togo at 13-Sep-11 5:47am View
   
Perhaps this can help you?
 
http://www.codeproject.com/KB/system/everythingInAD.aspx
Kim Togo at 13-Sep-11 4:21am View
   
Okay, now I understand.
 
Check the example on this MSDN link.
 
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.columns.aspx
 
In this example, there is 4 column and a example is showed on how to add data to all columns.
Kim Togo at 13-Sep-11 3:32am View
   
Sorry, I do not understand what you want.
But I can see that you use the same variable "department" for all 3 information's?
Kim Togo at 13-Sep-11 3:05am View
   
Google is your friend in need.
 
But there are many articles here at codeproject.
 
http://www.codeproject.com/KB/IP/#UDP
 
http://www.codeproject.com/KB/IP/multicast.aspx
 
Kim Togo at 13-Sep-11 2:45am View
   
Thanks Mehdi.
Kim Togo at 30-Aug-11 7:51am View
   
Deleted
Reason for my vote of 3
Good, but it will fail if no Element of "Node" is found.
The .FirstOrDefault() will return NULL.
Kim Togo at 29-Aug-11 14:24pm View
   
And yes. Why make it more complex, when the answer is very simple.
Kim Togo at 29-Aug-11 14:21pm View
   
Thanks
Kim Togo at 23-Aug-11 2:55am View
   
Deleted
MySql.Data.dll file is not a part of MySql installation MSI file. You have to download MySql Connector/Net to get the file.
Other then this. Good work :-)
Kim Togo at 20-Aug-11 11:35am View
   
The last link is cool, my 5 :-)
Kim Togo at 13-Aug-11 11:19am View
   
Spot on.
Kim Togo at 13-Aug-11 3:18am View
   
What errors do you get ?
Kim Togo at 12-Aug-11 1:57am View
   
If you find yourself needing to use the goto statement. Reconsider.
Kim Togo at 12-Aug-11 1:54am View
   
What have you tried so far?
What options have you tried to solve your problem?
Kim Togo at 12-Aug-11 1:50am View
   
You are welcome.
Kim Togo at 10-Aug-11 12:51pm View
   
What type of media: Cellphone, VOIP, TAPI what?
Kim Togo at 10-Aug-11 9:36am View
   
Please do NOT repost questions.
Kim Togo at 10-Aug-11 9:35am View
   
This is a repost of http://www.codeproject.com/Questions/239073/code-behind-file-and-the-class
Kim Togo at 9-Aug-11 11:32am View
   
And check out you fellow students question. B-)
http://www.codeproject.com/Answers/238358/using-C-Cplusplus-program-add-a-user-to-MySQL
Kim Togo at 9-Aug-11 11:29am View
   
There are may good articles here at CP :-)
Kim Togo at 9-Aug-11 11:28am View
   
Good links. My 5.
Kim Togo at 9-Aug-11 2:13am View
   
Good thread from stackoverflow.com. My 5.
Kim Togo at 8-Aug-11 15:39pm View
   
My 5 Espen. Nice.
Kim Togo at 8-Aug-11 11:26am View
   
@govardhan4u.
Please use "Add Comment" and not "Add solution".
Kim Togo at 8-Aug-11 11:26am View
   
From OP:
 
The issue is solved.

Thanks a lot
Kim Togo at 8-Aug-11 8:35am View
   
Good article. My 5.
Kim Togo at 8-Aug-11 8:32am View
   
Yes, the new TPL in .NET 4 is amazing. My 5.
Kim Togo at 8-Aug-11 8:31am View
   
Right on. 5.
Kim Togo at 8-Aug-11 8:12am View
   
Good link SA. My 5.
Kim Togo at 8-Aug-11 8:10am View
   
Nice example. My 5.
Kim Togo at 8-Aug-11 8:08am View
   
Good answer SA. My 5.
Kim Togo at 8-Aug-11 8:07am View
   
My 5 for the answer.
Kim Togo at 8-Aug-11 2:23am View
   
Thanks :-)
Kim Togo at 8-Aug-11 2:23am View
   
Thanks SA
Kim Togo at 8-Aug-11 2:23am View
   
Thanks Manfred.
Kim Togo at 8-Aug-11 2:22am View
   
But the ValueUpdatedEventHandler delegate is defined as public. That makes ValueUpdatedEventArgs less accessible.
 
Then change ValueUpdatedEventHandler to internal.
Kim Togo at 8-Aug-11 2:18am View
   
Good answer. My 5.
Kim Togo at 8-Aug-11 2:18am View
   
Thanks
Kim Togo at 5-Aug-11 11:17am View
   
What type of media to send SMS?
GSM modem, Webservice.
Kim Togo at 4-Aug-11 3:53am View
   
Good answer.
Kim Togo at 2-Aug-11 3:54am View
   
Thanks
Kim Togo at 1-Aug-11 6:15am View
   
There are simple example on MSDN on how to use XElement for creating and reading.
Kim Togo at 1-Aug-11 6:14am View
   
What solution? Use XElement to create your XML file from the data in TreeView and use XElement to read the XML file and populate TreeView.
Kim Togo at 1-Aug-11 2:36am View
   
My 5.
Kim Togo at 1-Aug-11 2:36am View
   
Thanks
Kim Togo at 30-Jul-11 11:08am View
   
Right on :-)
Kim Togo at 30-Jul-11 11:07am View
   
Please use "Add Comment" and not "Add a Solution" when replying to a solution.
Kim Togo at 30-Jul-11 11:06am View
   
From OP
 
Thank you very very much if I send you my game can you create reply for that?
Kim Togo at 29-Jul-11 6:48am View
   
To change permissions on database for a specific user. Then you use GRANT sql.
Kim Togo at 29-Jul-11 5:23am View
   
You are welcome.
Kim Togo at 29-Jul-11 5:14am View
   
Have you tried to use Google ?
What type of SMTP server: Exchange, Domino, Postfix etc...
Kim Togo at 28-Jul-11 8:41am View
   
Thanks
Kim Togo at 28-Jul-11 7:30am View
   
Good. But in the connection you have specified "MYSQL ODBC 3.51 Driver".
Check out http://www.connectionstrings.com/mysql#p31
Kim Togo at 28-Jul-11 7:26am View
   
The newest version MySql ODBC can be downloaded her:
 
http://dev.mysql.com/downloads/connector/odbc/
Kim Togo at 28-Jul-11 7:25am View
   
For "version 2" example change
querylog.bindValue(ipname);
 
to
 
querylog.addBindValue(ipname);
Kim Togo at 28-Jul-11 7:18am View
   
Strange.. Have you tried the other versions of binding-values? - Hmm. I think it has something to do with ODBC driver ( and the ODBC driver v 3.51 for MySql is really old one, you can download a version 5.1.8 now ).
 
Try "version 2".
 
"VALUES (?, ?, ?, ?)" and
 
querylog.bindValue(ipname);
querylog.bindValue(datetime);
querylog.bindValue(serv);
querylog.bindValue(hostname);
Kim Togo at 28-Jul-11 7:10am View
   
Change "VALUES (ip_address, date_time, service_status, logged_user)" to:
 
"VALUES (:ip_address, :date_time, :service_status, :logged_user)" and
 
querylog.bindValue(":ip_address",ipname);
querylog.bindValue(":date_time",datetime);
querylog.bindValue(":service_status",serv);
querylog.bindValue(":logged_user",hostname);
 
Look, I have added a : tag as described in the link to approaches-to-binding-values.
Kim Togo at 28-Jul-11 6:52am View
   
See approaches-to-binding-values
 
There is some good examples on how to :-)
Kim Togo at 28-Jul-11 3:39am View
   
You can do a:
 
QSqlQuery query = db.exec("create table person (id int primary key, firstname varchar(20), lastname varchar(20))");
query.exec("insert into person values(101, 'Danny', 'Young')");
 
or
 
QSqlQuery query(db);
 
query.exec("create table person (id int primary key, firstname varchar(20), lastname varchar(20))");
query.exec("insert into person values(101, 'Danny', 'Young')");
Kim Togo at 28-Jul-11 3:00am View
   
See updated answer. "How to:..."
Kim Togo at 28-Jul-11 2:32am View
   
Any where you like. XML files are just text files.
Kim Togo at 28-Jul-11 2:31am View
   
Please post your connection string.
Kim Togo at 28-Jul-11 2:29am View
   
Good links.
Kim Togo at 28-Jul-11 2:29am View
   
Good link.
Kim Togo at 28-Jul-11 2:28am View
   
Good answer. My 5.
Kim Togo at 28-Jul-11 2:24am View
   
Please use "Add Comment" and not "Add a Solution" when replying to a Solution.
Kim Togo at 28-Jul-11 2:23am View
   
From OP
 
thank you for the reference! :)
Kim Togo at 28-Jul-11 2:23am View
   
From OP
 
thank you for the reference! :)
Kim Togo at 28-Jul-11 2:21am View
   
Thanks SA
Kim Togo at 28-Jul-11 2:13am View
   
Right on. 5.
Kim Togo at 28-Jul-11 2:12am View
   
And 5 to you :-)
Kim Togo at 27-Jul-11 8:10am View
   
Wiki CAPTCHA
Kim Togo at 27-Jul-11 8:03am View
   
Reboot your computer and enter BIOS (press DEL or F12) and look and search for something that has to do with CPU/Cores/Hyper-threading etc.
 
But it ALL depends on what type of computer/manufacturer you have.
Kim Togo at 27-Jul-11 7:08am View
   
Perhaps you have to "enable" all cores or "Hyper-threading/cores" in the BIOS ?
Kim Togo at 27-Jul-11 3:18am View
   
I do not think that WP7 is a fail. When Nokia starts to sell WP7 handsets, I think the marked share will change.
Kim Togo at 27-Jul-11 2:37am View
   
From OP:
 
Thank you for your response. Actually, I do want the application to show data by itself without any user interaction.
 
Having it as a tooltip or double clicking the system tray icon requires user interaction. For example, when the user is watching a movie, he would still like to get a notification when his favorite map is currently active on the server. Of course, there will be options to enable/disable these notifications so that it won't be a "shove a notification in your face" kind of application. :)
Kim Togo at 27-Jul-11 2:28am View
   
What does not work? It cannot compile, it has runtime error ?
Kim Togo at 27-Jul-11 2:21am View
   
Then check is username and password is correct at the SQL Server.
Kim Togo at 27-Jul-11 2:19am View
   
What string are you trying to and to what.
A date/time string to database?
Kim Togo at 27-Jul-11 2:08am View
   
Good catch SA :-)
Kim Togo at 27-Jul-11 2:03am View
   
You do not need to check if row exists before deleting.
If ExecuteNonQuery returns more then 0 ( deleteCmd.ExecuteNonQuery() > 0 ), then the record was deleted.
Kim Togo at 26-Jul-11 9:37am View
   
You are welcome.
 
Yes, I find this CP article very useful.
C# Event Implementation Fundamentals, Best Practices and Conventions.
Kim Togo at 26-Jul-11 8:57am View
   
Good advice.
Kim Togo at 26-Jul-11 8:22am View
   
Code dump. Where to look?
Kim Togo at 26-Jul-11 8:18am View
   
Is this not a JavaScript question ?
Kim Togo at 26-Jul-11 1:52am View
   
What value has obj.connection().ToString() ?
Kim Togo at 25-Jul-11 2:47am View
   
Thanks, and yes you are right about database connection.
Kim Togo at 24-Jul-11 8:26am View
   
Thanks
Kim Togo at 24-Jul-11 8:22am View
   
Thanks
Kim Togo at 24-Jul-11 7:44am View
   
WMI is great tool. 5
Kim Togo at 24-Jul-11 7:43am View
   
Thanks.
Kim Togo at 23-Jul-11 2:03am View
   
B-)
Kim Togo at 21-Jul-11 5:18am View
   
Good catch.
Kim Togo at 20-Jul-11 7:19am View
   
There is no method called "mysql_insert(..., ...)" in mysql.h file.
The method "mysql_insert(..., ...)" must exists in another class or file.
Kim Togo at 20-Jul-11 7:10am View
   
Good links! My 5 and Bookmarked.
Kim Togo at 20-Jul-11 7:09am View
   
Thanks
Kim Togo at 19-Jul-11 11:42am View
   
Good links. My 5.
Kim Togo at 19-Jul-11 11:39am View
   
Good advice. My 5.
Kim Togo at 18-Jul-11 14:01pm View
   
That is true. My 5.
Kim Togo at 18-Jul-11 13:59pm View
   
Then please use "Improve question" and write down what the error is.
 
But the SQL syntax is still wrong.
Kim Togo at 18-Jul-11 13:57pm View
   
Good spot! :-)
Kim Togo at 18-Jul-11 10:28am View
   
Thanks
Kim Togo at 18-Jul-11 10:28am View
   
Good points.
Kim Togo at 18-Jul-11 10:27am View
   
Thanks
Kim Togo at 16-Jul-11 11:38am View
   
You are welcome.
And about "TopMost" question. MSDN says: A topmost form is a form that overlaps all the other (non-topmost) forms.
 
When there is more applications that has "TopMost", my guess is that the last application that calls "TopMost" IS the most "TopMost" application.
Kim Togo at 15-Jul-11 3:38am View
   
Thanks SA.
Kim Togo at 15-Jul-11 3:25am View
   
Thanks SA
Kim Togo at 14-Jul-11 18:31pm View
   
Good answer and good advice. My 5.
Kim Togo at 14-Jul-11 18:26pm View
   
Good answer. My 5.
Kim Togo at 14-Jul-11 18:25pm View
   
My 5 for the good answer and advice.
Kim Togo at 14-Jul-11 18:24pm View
   
Good answer SA. My 5.
Kim Togo at 14-Jul-11 13:45pm View
   
And CloseReason.UserClosing says:
"The user is closing the form through the user interface (UI), for example by clicking the Close button on the form window, selecting Close from the window's control menu, or pressing ALT+F4."
 
Then it covers all "UserClosing" events.
If it is only the Alt+F4 you want to prevent. Then look at Solution 2
Kim Togo at 13-Jul-11 14:37pm View
   
What type of media to send SMS.
 
GSM modem/unit, Mobilephone/cellphone or via mobile carrier ?
Kim Togo at 13-Jul-11 14:36pm View
   
Good links. My 5.
Kim Togo at 13-Jul-11 11:37am View
   
Good call. My 5.
Kim Togo at 13-Jul-11 11:02am View
   
And the question is?
Kim Togo at 13-Jul-11 11:00am View
   
What you will achieve with this?
Start cmd.exe and do what?
Kim Togo at 13-Jul-11 10:59am View
   
@Member 7929774
Please use "Add Comment" and not "Add your solution here".
Kim Togo at 13-Jul-11 10:58am View
   
From OP:
 
I want to interact with dos prompt from my .net application(i.e. send the command and receive the output), Please tell me how to do this?
Kim Togo at 13-Jul-11 9:35am View
   
1.
How do you retrieve the message id ?
 
2.
When you save the message id in the database, then you must have the entire email ?
 
3.
You want to display the stored email from the database in Microsoft Office Outlook?
Kim Togo at 13-Jul-11 9:31am View
   
Thanks. That is my all time favorite control.
Kim Togo at 13-Jul-11 6:59am View
   
I think you cannot. It depends on what type of email system that is used.
Microsoft Exchange, IBM Lotus Domino, Google GMail etc...

Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid