Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
64% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
4
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
1 Commented Post
2 Endorsements
Ranked #630
Ranked #1K
~30.8K People Reached
Favorite Tags
Member Avatar for beginnerinneed

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 …

Member Avatar for hreylorbe
0
8K
Member Avatar for Momerath

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 …

Member Avatar for Mickey_1
0
556
Member Avatar for abelLazm

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 …

Member Avatar for skatamatic
0
844
Member Avatar for FELIGO
Member Avatar for pseudorandom21

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 …

Member Avatar for skatamatic
0
359
Member Avatar for ToniSoft

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 …

Member Avatar for ToniSoft
0
111
Member Avatar for apanimesh061

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 !

Member Avatar for CsharpChico
0
181
Member Avatar for goldenpete

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. …

Member Avatar for goldenpete
0
112
Member Avatar for kapojian

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 …

Member Avatar for CsharpChico
0
150
Member Avatar for KushMishra

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.

Member Avatar for CsharpChico
1
156
Member Avatar for scrivomcdivo

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

Member Avatar for CsharpChico
0
112
Member Avatar for CsharpChico
Member Avatar for jaskiratj

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

Member Avatar for shiva07
0
91
Member Avatar for samueal

This is the code snippet used to get the files/folder present in a particular folder/sub directories.

Member Avatar for CsharpChico
-1
482
Member Avatar for ctsmith84

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, …

Member Avatar for CsharpChico
0
602
Member Avatar for sandeepparekh9
Member Avatar for CsharpChico
0
275
Member Avatar for IDC_Sharp

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:

Member Avatar for IDC_Sharp
0
73
Member Avatar for Romil797

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

Member Avatar for CsharpChico
0
361
Member Avatar for khocmedemmua

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 …

Member Avatar for crishlay
0
357
Member Avatar for bleedi

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 …

Member Avatar for CsharpChico
0
733
Member Avatar for Razer_90

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(); …

Member Avatar for hirenpatel53
0
168
Member Avatar for zinnqu

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 …

Member Avatar for CsharpChico
1
2K
Member Avatar for lxXTaCoXxl

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 …

Member Avatar for lxXTaCoXxl
0
220
Member Avatar for niths

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 = …

Member Avatar for CsharpChico
0
181
Member Avatar for shyla

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 …

Member Avatar for CsharpChico
0
202
Member Avatar for computerbear

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 …

Member Avatar for computerbear
0
1K
Member Avatar for Lizbeth

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 …

Member Avatar for CsharpChico
0
265
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
117
Member Avatar for CsharpChico

[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; …

-2
596
Member Avatar for yousafc#

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 …

Member Avatar for CsharpChico
0
98