- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 4
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
Hi im a beginner and just need some help solving this problem. i think its simple but have tried to figure it out but im getting no where. i currently have four text boxes to which i add data to, i then click the add and want to add this … |
|
Quite commonly I see people using one of the Parse routines then catching the exception thrown if the parse fails. This is, in general, a bad practice as throwing an exception is slower than using the corresponding TryParse method. This short snippet shows the routines that I used to measure … |
|
Just came across a code of compressing file thought to share :). Code for text file only can be changed for other filetypes....It reduces nearly 97% of the file size ... [CODE]OpenFileDialog opd = new OpenFileDialog(); FolderBrowserDialog fbd = new FolderBrowserDialog(); textBox1.Text="Path + File To compress";//open file by open file … |
|
|
|
Not sure where to post this, hopefully here. Basically if I make an application that does some stuff in the background, how does an antivirus know it isn't a trojan horse or something? Will my application be flagged as a virus, or is it generally safe to assume it won't … |
|
hi everybody, i need help with windows form, i am working in one win application, so what i need, ex. i have form which is name MainForm, and i have another form which is for user login named Loginform, what i need is when i execute a project i need … |
|
I have an application that supports only Framework 4.0. Is there a way I can make it compatible with a lower Framework version of .Net ??? Please help ! |
|
I am currently creating a small application that processes a line of text into several ouput lines using a C# Windows Form What I am looking for is a way to duplicate the actions of manually copying text through Ctrl+C, or right click, Copy, by the click of a button. … |
|
i have three forms, mainform(which is the "MAIN") log-in and home form. when accessing buttons in the main form to enable it i did this. its property is set to public. [CODE](this.Owner as Main).homebtn.Enabled = true;[/CODE] after logging in homebtn is anabled, when clicked, the home form will show and … |
|
Hello, I don't know anything about C# and want to learn it. If anyone could please tell me the quickest way to learn C# in few days, I'll really appreciate. Thanks and Regards. |
|
Hey folks. Just a quick message to see if fellow coders have any recommendations for software you may use when planning programs / projects? I currently use MS OneNote but I'm just wondering what others use? Thanks |
|
A Simple method to create a short url using google |
|
hello everyone.. 1)is there a way to print the data present in the griedview? 2)for the same, do we need to export the gridview data to excel for print purpose in web application? if yes, how to export that data... thank you |
|
This is the code snippet used to get the files/folder present in a particular folder/sub directories. |
|
I have created an application that uses Microsoft.Office.Interop for Excel. I'm trying to implement both an OpenFileDialog and a SaveFileDialog. I got the OpenFileDialog to work, but I have run into a wall on the SaveFileDialog. Because when I get to the SaveFileDialog box, it lets me pick the location, … |
|
simple Code Snippets to Convert Image to Byte Array and Vise Versa |
|
i made a simple code, but i have a problem and i don't know what to do.. everything work, the programs is running and all but when i click 'Download' it's write this message: "The remote server returned an error: (404) Not Found" this is the source code: |
|
Exactly that. Using NAudio or DirectX, can someone show me how to convert a wav file to mp3. Mp3 to wav seems trivial, but unfortunately i need wav to mp3. Thank you for your help |
|
At present, my source code project is in disk E, this is its path : [COLOR="Red"]E:\WindowsApplication1[/COLOR] In this folder has a folder Files, with path : [COLOR="Red"]E:\WindowsApplication1\WindowsApplication1\bin\Debug\Files[/COLOR] I have a form with a browse button to choose file, after choose file, it will save into folder Files automatically. My chosen … |
|
Hey, I'm working on a project where we have to stream files from a server app to clients. I have it all working nicely, but we have a special client type that cannot save files to HDD, not even temporarily. I can get the byte stream from server to this … |
|
Ok, i made a code to Encrypt a file (any file), but i have a problem to do the Decrypter and the code to the Decrypter (doesn't work) [CODE]if (RestoreFile.ShowDialog() == DialogResult.OK) { FileStream fsFileIn = File.OpenRead(o.FileName); FileStream fsKeyFile = File.OpenRead(o.FileName); FileStream fsFileOut = File.Create(RestoreFile.FileName); TripleDESCryptoServiceProvider cryptAlgorithm = new TripleDESCryptoServiceProvider(); … |
|
Using the Load and Unload events of the Forms add these subs to handle a simple fade in and out effect. This is not limited to just one form. The subroutine definition can be added to any global class allowing the use on any form or sub-form. This is the … |
|
The idea is to do basic math to find the difference in size between the object and the form. To do this take the object size (int1, int2) and the form size (int1_1, int2_2) then get the difference by subtraction. The math is (int1 - int1_1, int2 - int2_2) so … |
|
hi all, i had a problem with displaying the data in textbox. My code is here [CODE] string note = "SELECT Notes,NDate FROM Ticket_Notes WHERE TicketNo ='" + tktno.Text + "' "; SqlCommand cmd3 = new SqlCommand(note, con); SqlDataReader id = cmd3.ExecuteReader(); while (id.Read()) { dnotes = id.GetValue(0).ToString(); ndate = … |
|
How do i get the data to appear line after line in notepad and with the dashes in the phone number that my code [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Friends { class WriteFriendRecord { static void Main(string[] args) { Console.WriteLine("Enter your friend's details: "); Friends.Friend f … |
|
Hi, I am trying to create a form application with console. I label my text box using, this.Test = "Assignment 8". There is a button saying press me. When button is pressed, the box that comes up needs to say Click me in the title area. I can't find anything … |
|
Hi i have a C# windows form that has two list boxes on it.The left one contains a list of 16 student module codes that are available to enrol onto. The user selects a module from the left to transfer to the right box. I have it working up to … |
|
I;m not a great fan of title bars on windows forms, so I've removed it. However I'm looking for a way for the end user to drag it to wherever they choose. Is there a way in the .Net framework? All my searches resulted in importing user32.dll, but the majority … |
|
[CODE]using System; using System.Drawing; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { private Panel panel1 = new Panel(); private PictureBox box = new PictureBox(); private Panel closeButton = new Panel(); private bool moveable; private Point currentPosition; private Image img; public Form1() { InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; … |
|
Please help me how can i creat a class and use in windows application for Studen Result card .[COLOR="red"]I want type below code in class and want to use in windows application for student Grade [/COLOR] [CODE] private string MethodGrade(float Avrage) { string Grade; if (Avrage > 91) { Grade … |