Type: Posts; User: crackersixx
Search took 0.01 seconds.
September 11th, 2008, 02:52 PM
You can do this, but you will run into problems when the "external" compiled method needs to access data from your parent application.
You can tell the compiler to generate a dll in memory that...
August 22nd, 2008, 12:51 PM
Here's a printing snippet I use in some of my code:
In some Print button, do the following:
//Setup and print the document
PrintDocument document = new PrintDocument();
August 5th, 2008, 11:50 AM
Edited to show a bit more:
public static class Logger
private static string fileName = "output.txt";
public static void Write(string inString)
July 30th, 2008, 01:50 PM
To store images you can do something like:
byte bytes = File.ReadAllBytes(fullPathToImage);
// insert image into table
SqlCommand insert = new SqlCommand("insert into sometable...
July 30th, 2008, 12:13 PM
Maybe using a TableLayoutPanel to contain your controls will work for you.
July 30th, 2008, 12:08 PM
If you are running some service on the Linux box that you can access.
a webserver with a page/webservice you can query that runs the script
telnet - might be painful
Or you could...
July 30th, 2008, 12:02 PM
Your first example will work on the KEY UP event.
(provided you fix your IF statement to include two = signs)
private void Form1_KeyUp(object sender, KeyEventArgs e)
July 30th, 2008, 11:57 AM
My mail server at work allows this just fine as I use this ability to send email alerts from some of my applications, such as "firstname.lastname@example.org".
my hosting provider for my domain (and...
July 30th, 2008, 11:32 AM
Since you dont have a specific question, you can start by reading about working with files in c#:
and possibly the datagrid control:...
July 30th, 2008, 11:08 AM
Most mail servers will let you do exactly what you just tried. Yours apparently doesnt.
Unless you have another mail server to try, or the ability to install and host a new mail server, you are...
July 10th, 2008, 02:19 PM
In the "New Project" dialog, under "Visual C#" you should have an "Office" subsection.
There you will find project templates for creating Office add-in's. (Excel, Word, etc.)
July 10th, 2008, 12:00 PM
You could use a picturebox control.
Load the image into the picturebox, setting the transparency.
Bitmap bmpPicture = (Bitmap)Bitmap.FromFile("arrow.png");...
Regardless of your reasons, or whether or not you "should" be doing things as you are, there is a faster method for bulk importing of massive amounts of data.
SqlBulkCopy Class in...
//Open excel file
DataSet dsRecords = new DataSet();
string strConn = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=ExcelDocument.xls;Extended Properties=Excel 8.0;";
OleDbDataAdapter daExcel =...
Running inside the browser? No...
Launched via the browser, and requiring (or not) an Internet connection, sure:
If you are familiar with Datasets, an easy solution would be to use the built-in XML functions there.
April 15th, 2008, 12:52 PM
Creating a thread for your methods that run a long time is the proper way.
April 11th, 2008, 04:00 PM
If you write in c# you are forcing them to install it. (if they need to run your app).
You cannot guarantee the person has .Net framework, and at this point, a vast majority of people do not.
February 29th, 2008, 02:08 PM
The protocol for this functionality is called FXP.
You can read about it here:
February 29th, 2008, 10:24 AM
What the OP is doing with his code will work fine provided a couple things:
* Don't set DocumentText in the constructor. Use Form_Load or your own method.
If you set DocumentText in the...
February 14th, 2008, 03:28 PM
There are reasons to reload an application.
Especially for an application that checks for updates before it is run (such as a clickonce deployed app). If I have users logged in and using my...
February 8th, 2008, 12:51 PM
Create a DLL project in C++ that contains your method(s).
Use DLLImport to call your methods from your C# code.
February 8th, 2008, 10:04 AM
Just a suggestion, but maybe you can try using a webbrowser control rather than the picturebox. Then set the webbrowser.documenttext to something like:
February 7th, 2008, 11:41 AM
Are you generating the HTML that is shown in the browser control?
The job of the browser control is to display your HTML. If your HTML is wrapped in tables with fixed width <table width="600">...
February 7th, 2008, 10:15 AM
Don't expect the user to fix the issue, when the user types an singlequotes into a field that goes into a databse, you need to replace the singlequote with two singlequotes.
For example: a user...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.