8,298 Topics
![]() | |
private void btnSend_Click_1(object sender, EventArgs e) { To = txtPhoneNumber.Text.Trim() + cboCarrier.SelectedItem.ToString().Trim(); From = txtSender.Text.Trim(); Subject = txtSubject.Text.Trim(); MailServer = txtMailServer.Text.Trim(); Msg = txtMessage.Text.Trim(); try { MailMessage message = new MailMessage(From, To, Subject, Msg); SmtpClient mySmtpClient = new SmtpClient(MailServer); mySmtpClient.UseDefaultCredentials = true; mySmtpClient.Send(message); MessageBox.Show("Message has been sent to " + … | |
![]() | Hello everyone, I'm writing an application with a ListView in C# WPF. I was wondering if I was missing a reference of something, because I get this error all the time: `'System.Windows.Controls.ListView' does not contain a definition for 'Columns' and no extension method 'Columns' accepting a first argument of type … ![]() |
Hi There; I am learning how to establish a connection to mysql in c#. Here are my codes : using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using MySql.Data.MySqlClient; public partial class _06_web_form_elemanlari_08_button : System.Web.UI.Page { protected void connect(Object Sender, CommandEventArgs arguman) { try { MySqlConnection … | |
Anyone knows how to create a runtime calculator using a C#? | |
In C#, what methods take the place of the old kbhit and getch functions in C? (I'm writing a console application in Visual Studio.) | |
hello, is there currently a tool which can convert C# codes to Java (for example to be used in NetBeans)? | |
hi guys can you help me create a database login form of this code to windows form application? Because this code is made for console application. also I already know how to create a database but I do not know how I can make a windows login form for this … | |
How can i insert data from access file into listview in C#? Thanks | |
Guys hi i need some help here though i fixed the connection with the sql server i tries to see if its correct and look first at the code and i explain m prob: private void lgnBtn_Click(object sender, EventArgs e) { SqlConnection lgnConnection = new SqlConnection(); lgnConnection.ConnectionString="Data Source=.\\SQLEXPRESS;"+"AttachDbFilename=C:\\Users\\ryudo\\Desktop\\workspace\\sql_goldshop_project\\Project1\\Goldshop_Tax\\Goldshop_Tax\\gold_tax.mdf;"+"Integrated Security=True;"+"User Instance=True"; … ![]() | |
Hello I'm planning a programming project for my website. I have a device that logs information to a database. To access this database I need to use to OLEDB client. What i want to do is, to make a graphical widget to my website that shows the info of my … | |
Currently I am working on a project regarding C# and SQL and I have a problem regarding the SELECT function and I cannot find any solutions on-line. The scenario is regard searching query from C# through SQL server and display the results in a Data Grid View at C#. I'm … | |
Hi everyone! Can you help me please? I need to write sniffer for internet explorer 9.0 using hooks in c# Is it possible? I searched google.com found some information: SharpCap (packet capture framework for .NET), using .NET Socket class to listen user's activities on the web browser but I didn't … | |
hi everyone. i just want to know that how can i fetch any paragraph/line written in "p" tag in any website. i want to recieve a complete article written in any website into my c# window appication. | |
I need help in c# about file scanning in c#. I want to scan all files or from specific path in background if application is in running mode. Scanning should start after every 10 min....... | |
How exactly would I go about doing the following in C#? public class Test { public static void main(String[] args) { Test(new TestInterface() { @Override public void SomeMethod() { //create instance of the interface within parameters of a method. } }); } public static void Test(TestInterface _interface) { } } … | |
any one knows how to write this program:- given two arrays A and B . array 'A' contains all the elements of 'B' but one more element extra. write a c++ function which accepts array 'A' and 'B' and its size as arguments/parameters and find out the extra element in … | |
Greetings, I have a User Control called: Share.ascx I have a page called: News.aspx In News.aspx I created a ModalPopupExtender, then I addeda Panel and inside the Panel I added the User Control: Share.ascx so that when the Popup Extender is called the Panel with the User Control is displayed. … | |
C++ Programming The file attached contains the instructions. This is what I have done so far. It outputs the contacts from the file. I need help by tonight. Please Help!!!! I have all the tokens on the vector token. I want to create a Contact with those tokens Ex: Contact … | |
I have a condition based upon which I require that the AJAX HTML Editor gets disable. This code is not working: edNote.Enabled=false; //edNote is AJAX editor. Please suggest any other means to do this. | |
Hi all, I have to interface an IC which is giving serial output bitwise from a single pin this pin is directly connected to a microcontroller i have to read this single pin to an unsigned int. i have written a function something like that but its not working. unsigned … | |
hey guys, im building a small prediction software, the GUI is in PHP and i want to do the data crushing in C. (sequence, matrix and multiple variables isolation) i know the basics in C, but im no C expert. Is it possible to pass from C to PHP other … | |
Hi, I found this forum with some google searches and I really enjoyed reading some Q&As here. I love C++, I love C++, did I told you yet I love C++ ? I hate C#, I really hate C# !!!!. did I told you yet I hate C# ? I'm … | |
it is my first time which I want to use ethernet card to read some date from PLC my application/software . does any body has an expereince? is it possible introduce a example or any reference for this isuue? thanks a lot in advance. | |
Hello, Well I am trying to finished the following progam and I need help with 2 functions [i]reverse book(s)[/i] and [i]return book[/i]... If someone can told me points where to start I will appritieate:: below is my code, note that I don't know if the [i]customer_book_count[/i] is work since I … | |
I need to make online auction project in C#. I need help how to do this which is preseneted below in the text. Could you help with some example? The application has three types of users: Administrator, User and Advertiser. - The administrator logs in the system with their user … | |
I have a datasource on my page, the select query of which creates a pivot table. The complexity is that the columns in the pivot are determined by records in another table (the users table). So I have to use a prepared statement to build and execute the pivot query, … | |
The file contains the instructions. I need help by tonight. Please Help!!!! main.cpp: #include <iostream> #include <fstream> #include "addressbook.h" #include "addressbook.cpp" int main(){ ifstream inStream("input.txt"); string line, header, token; vector <string> tokens; getline (inStream, header); AddressBook myAddressBook; while(!inStream.eof()) { getline (inStream, line); cout << line << endl; int x=0, y=-1; … | |
![]() | Hi all and thanks in advance for your help ! I have a very simple class called circle and i wanna add the ostream << so i can have the ability in main to write cout<<a<<b<<c; the theme is i'm getting many compile errors in the same row eg iso … |
![]() | Hi again and thanks in advance !Any help would be very appreciated cause i'm having a test tomorrow and i need some help! So i wanna have a class called Bag and a subclass Set.In bag we have 2 constructors, an insert function , getsize function , getsum (which adds … |
Hello Guys, I was performing text file reading and writting operations and the job looked very simple as usual, yet it has not been solved successfully. We have got a simple text file **final.txt** which contains data like this:- **05/18/2012 02:12:66 8HRY hjhruehr737243 YES NO u34gewryge 698** i.e each value … | |
I added a tool tip from code behind onto an image. When the tool tip reaches an area of a image (determined by cordinates) it shows the tooltip. But when i call the method `tooltip.isOpen = true;` mouse pointer get stuck for a little time. How can I avoid this. | |
I need to modify the following program to store person objects instead of integers. Include a function to input person data from the keyboard in the person class (similar to the readRecord() function). Also add a non class function to display the list contents. Include a separate search function (search … | |
Hello, I have an image in one of my project folders: Lets say its in: ~/App_Themes/Default/images/SomeImage.png I want to load this image into a System.Drawing.Image, how do I do that? If I try using the FromFile method of the Image class: Image img = Image.FromFile("~/App_Themes/Default/images/SomeImage.png", true); I get a "FileNotFoundException". … | |
Could someone tell me why I get the error "Operation failed:Index and lengt must refer to a location within the string Parameter:Length". It happened at this line: TheDataGridView.Rows[j].Cells[i].Value = tmpStr.Substring(0, 709); tmpSize = g.MeasureString("Anything", tmpFont); RowsHeight.Add(tmpSize.Height); tmpSize = g.MeasureString(TheDataGridView.Rows[j].Cells[i].EditedFormattedValue.ToString(), tmpFont); if (tmpSize.Width > 710) { string tmpStr = TheDataGridView.Rows[j].Cells[i].ToString(); TheDataGridView.Rows[j].Cells[i].Value … | |
So I have been working on this dice roller for a while but am stuck. My form looks like this, a comboBox1 where you can pick numberOfSides on the dice, a textbox1 where you type the numberOfTimes it shall roll the selected dice, a button1 and a richTextBox1 to display … | |
hello everyone. i am at such a stage where i need to make a decision. i have gained enough basic programming skills withn c++ and now i want to start with something a little professional. i dont like web programming and i would love to do system programming or game … | |
Hi how can i use AT-Commands in C# ? i try with this code but it`s not work ! can any body help to me ? thanks [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO.Ports; namespace Sending_SMS { public partial … | |
I am developing a hardware troubleshooting expert system but i am facing challenges in getting pattern matching algorithims to match the solutions in my database. | |
Hey Everyone, I have run into a bit of a problem with regards to application startup... I have written a C++ application with QT libraries that uses active QT to communicate with our ERP system in our business, the requirements are that any application we use needs to communicate its … | |
Hello, After a long time am back to coding,Actually i want to create a calculator ,it will work like drag and drop the text file to the RICHTEXTBOX and i want to get the output on the TEXTBOX1. It will come like randomly " 12+13-7+8-23+7 " like this on 123.txt … | |
I am wondering that if you can make a C# program that is like C++. My meaning with that is that it doesnt require a "Runtime" to work. I ask this becuase i want to write a operating system completely in C# (yes with very few assembly involved). | |
Greetings to all, I have two functions: Function 1: ImageToByteArray: Is used to Convert an Image into a Byte Array and then Store in an Oracle Database, in a BLOB Field. public byte[] ImageToByteArray(string sPath) { byte[] data = null; FileInfo fInfo = new FileInfo(sPath); long numBytes = fInfo.Length; FileStream … | |
I have read a file with around 120k words so i try to do it fast. have seen the: int x = setvbuf(fp, (char *)NULL, _IOFBF, BSZ); assert( x == 0 && fp != NULL ); option but it takes more than a second ( 1 mb file) so now … | |
Hello, Please tell me how to use datagrid in C# windows application? How to use other controls like textbox, checkbox and combobox in datagrind and populate it from database. Thanks VIMIT | |
Hi, I'm trying to print a document in landscape, but i'm only being able to print it in portrait. I've searched for the problem but i haven't found a solution to the problem. Can you, please help? Here's the source code: public void btnImprimir_Click() { try { PrintDialog pDialog = … | |
Hi, I am trying to create a programe like this: n1 = NAttrib() n2 = NAttrib() out = NAttrib() NAttrib class can be considered as general purpose attribute. f1 = FloatAttrib(1.0) f2 = FloatAttrib(2.0) FloatAttribute class is like float type but with some extra spices. It has operator overloading functions … | |
hello there guys I have attached a picture of the error that I've been receiving in coding my tetris program, anyone here who knows how to fix this? please help me thanks in advance.  | |
So; I have to determine if there is a) 3 of a kind b)4 of a kind c)straight. I have put the 7 cards into a 1 dimensional array and sorted them but I also need a case for not being more than 4 cards. I don't need to include … |
The End.