private void mylabel_MouseClick(object sender, EventsArgs e)
{
if(e.MouseButton == MouseButtons.Left)
MessageBox.Show("You've just pressed the Left mouse button!");
else if(e.MouseButton == MouseButtons.Middle)
MessageBox.Show("You clicked the middle mouse button");
else if(e.MouseButton == MouseButtons.Right)
MessageBox.Show("You clicked the right mouse buttom");
}
Baeltazor
Posts
-
MouseClick Issue -
How to underline/highlight particular text in a RichTextBoxMyRichTextBox.SelectionFont = new Font("Tahoma", 12, FontStyle.Underline);
-
desing label like in desing time but in runtimeDo not post the same question more than once. If you require elaboration; 1) Edit your question with your new questions, or 2) Reply to the answer for which you do not understand stating so.
-
desing label like in desing time but in runtimeDo not post the same question more than once. If you require elaboration; 1) Edit your question with your new questions, or 2) Reply to the answer for which you do not understand stating so.
Regards, Jason Pezzimenti.
If you liked the answer that I have provided, then please click the 'Good Answer' link on the bottom-right of this post. Thank you.
-
File associations and ClickOnce Application Reference filesThank you - I have searched my entire hard drive in every possible place that there would be an executable file but have not found any. I even checked the AppData folder. Nothing at all. Just a bunch of ClickOnce Application Reference icons. I also tried setting registry info for the associations on startup and it has been unsuccessful. I don't get any errors at all... It just doesn't work. I've also (originally) tried using the File Association dialog that's inside the Publish page where you publish the project and entered ProgID info and icons etc and that approach hasn't worked either. But, funny thing... The custom Icons I used in the File Association dialog in VS are showing up on the files... My app just isn't loading the content of the files that are being double-clicked.
-
File associations and ClickOnce Application Reference filesWhen I publish my C# application using Visual Studio Express, and install it, it creates a ClickOnce Application Reference file on the desktop and in the Start Menu instead of just a normal .EXE file - and this is screwing up my File Associations. Could someone kindly suggest how I could have txt files etc opened in my application when dealing with Application Reference files? Thank you
-
Loading controls from xml fileI hope i didn't make you late for anything
-
Loading controls from xml fileYAY It's working now lol Thank you so much for helping me :D :cool::thumbsup:
-
Loading controls from xml fileOops, sorry. I misread one of the statements in your answer. With the part where you wrote: lbl.Text = "Doubble click here..."; ... What I actually need is the value of the controls corresponding "Content" attribute. Because the text inside the Content attribute is not always going to be "Double click to edit...".
-
Loading controls from xml filehi all, i know hot to write to xml files, but i'm having trouble doing what i need to do and can;t find adequite info on this type of problem. Here's one xml file below:
<?xml version="1.0" encoding="utf-8"?>
<controls>
<Label Content="Double-click to edit." Location="258, 178" Size="101, 13" ForeColor="-1" />
<LinkLabel Content="Double-click to edit." Location="532, 133" Size="101, 13" LinkColor="-1" />
<LinkLabel Content="Double-click to edit." Location="424, 212" Size="101, 13" LinkColor="-1" />
<Label Content="Double-click to edit." Location="282, 89" Size="101, 13" ForeColor="-1" />
<Label Content="Double-click to edit." Location="528, 178" Size="101, 13" ForeColor="-1" />
<LinkLabel Content="Double-click to edit." Location="528, 133" Size="101, 13" LinkColor="-1" />
<LinkLabel Content="Double-click to edit." Location="528, 149" Size="101, 13" LinkColor="-1" />
<Label Content="Double-click to edit." Location="528, 164" Size="101, 13" ForeColor="-1" />
</controls>... And what I need to do once I've opened this file in my app is:
foreach(control in XmlFile)
{
// do something...
}Can somebody please help me out with this? I'd appreciate any help at all. Thank you Bael
-
Convert font to string and then back again...Hello, i have an application where my user changes font and font color for different labels etc and they save it to a file but i need to be able to convert the font of the specified label to a string to be written to file, and then when they open that file my program will convert that string back into a font object. How can this be done? I haven't found anywhere that shows how it can be done. thank you bael
-
SQL 2008 (Web Developer Membership System) - Could not find stored procedure.Yeah, with your help i managed to sort it out. If it weren't for you, i would've had to pay to get it fixed by somebody. You saved my butt! :D
-
SQL 2008 (Web Developer Membership System) - Could not find stored procedure.Thank you for your help arun$aini :)
-
SQL 2008 (Web Developer Membership System) - Could not find stored procedure.Thank you for your help and the code. It appears that there is no Command Prompt in Visual Web Developer Express 08. Can I just use the MS-DOS Command Prompt?
-
SQL 2008 (Web Developer Membership System) - Could not find stored procedure.In Visual Web Developer Express 08, in the Solution Explorer pane, if I expand the ASPNETDB and click Procedures, it contains a stored procedure that the above error claims it cannot find. ... Could you kindly suggest which commands I'd need to use in aspnet_regsql.exe?
-
SQL 2008 (Web Developer Membership System) - Could not find stored procedure.I have used it before but not in this case as I'm not sure of what to do with regards to this particular problem. The membership login/registration works perfectly on my local machine but it only fails with the above error when it's uploaded to the server. Would doing something in aspnet_regsql.exe fix this issue?
-
SQL 2008 (Web Developer Membership System) - Could not find stored procedure.Hello, I've been having this same problem for over 2 weeks now and have found dozens of sites claiming to solve this problem, but it hasn't worked for me. I've followed all steps in the documentation etc correctly. When I try to login to my site, or create a new user, I get the following error:
Server Error in '/' Application.
Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Data.SqlClient.SqlException: Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1953274
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4849707
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +204
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +175
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +137
System.Web.Util.SecUtility.CheckSchemaVersion(ProviderBase provider, SqlConnection connection, String[] features, String version, Int32& schemaVersionCheck) +378
System.Web.Security.SqlMembershipProvider.CheckS -
Don't they know what an array is?lol
Regards, Jason Pezzimenti.
If you liked the answer that I have provided, then please click the 'Good Answer' link on the bottom-right of this post. Thank you.
-
Using html agility packHi All I'm trying to use HTML Agility Pack to get the description text from inside the:
<meta name="description" content="**this is the text i want to extract and store in a string**" />
And someone a little while ago suggested I use HTMLAgilityPack. But I don't know how to use it, and the documentation for it that I've found (including the docs contained in the downloads) all have invalid links and therefor cannot view the documentation. Can somebody please help me solve this?
Regards, Jason
-
What is the best way to create background application?Why not try chucking it in the system tray?
Regards, Jason Pezzimenti.
If you liked the answer that I have provided, then please click the 'Good Answer' link on the bottom-right of this post. Thank you.