1,302 Posted Topics

Member Avatar for add4

Sorry! but is it in Windows application or web-based application? If you want to convert it to array of bytes so... [CODE=C#] System.Drawing.Image img; ....//any operation on img instance ....//any operation on img instance ....//any operation on img instance System.IO.FileStream fs = new System.IO.FileStream(imagePath, System.IO.FileMode.Open); img.Save(fs); byte[] imageAsBytes = new …

Member Avatar for Ramy Mahrous
0
538
Member Avatar for basma.lm

Handle Keypressed event of the textbox [CODE=C#] private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { char lastChar = e.KeyChar; //MessageBox.Show(((int)e.KeyChar).ToString()); if (e.KeyChar != 32 && e.KeyChar !=8) //allows space and backspace { if (char.IsControl(lastChar) || char.IsDigit(lastChar) || char.IsNumber(lastChar) || char.IsPunctuation(lastChar)) e.Handled = true; else if (lastChar < 1575)//the start of ascii …

Member Avatar for basma.lm
0
167
Member Avatar for bbman
Member Avatar for S2009
Member Avatar for Ramy Mahrous
0
289
Member Avatar for surajrai

Can you replace [CODE=C#]Thread th = new Thread(DoWrok); th.Start(strList);[/CODE] by [CODE=C#] ThreadStart thrdStrt = new ThreadStart(methodName); //void method without parameters Thread th = new Thread(thrdStrt); th.Start(params...); [/CODE] Please debug your code to know where the problem is.

Member Avatar for sknake
0
339
Member Avatar for lllllIllIlllI

[QUOTE=nick.crane;1232217]What type of database are you using?[/QUOTE] Thread name SQL in C# :)

Member Avatar for kvprajapati
0
217
Member Avatar for Ramy Mahrous

I got yesterday a question how to get average date from list of dates, and here's my answer.

1
771
Member Avatar for itshibu
Member Avatar for ebiemami

First create shared folder on HCTADMINS and set read\write permission. Let's say we called the shared folder [b]Database Folder[/b] So, connection string be [code=C#] string strconnection = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\HCTADMINS\Database Folder\c#.accdb"; [/code]

Member Avatar for Ramy Mahrous
0
467
Member Avatar for zismad

What do you mean by Clear the table layout? to reset all controls value i.e all textboxs Text property = null or to set the visibility = false You can access all TableLayoutPanel controls by [iCODE]tableLayoutPanel1.Controls[/iCODE]

Member Avatar for Ionelul
0
432
Member Avatar for sonia sardana

What do you need exactly is to run windows defragment application or you defragment the hard yourself?

Member Avatar for pritesh2010
0
198
Member Avatar for judithSampathwa

I didn't completely figure it out but did you try this? [CODE=C#] comboBox1.SelectedIndex = comboBox1.FindString("UserName"); [/CODE]

Member Avatar for nick.crane
0
138
Member Avatar for migz.natividad
Member Avatar for Ramy Mahrous
0
120
Member Avatar for ticktock

Can you please show us the exception? or try [iCODE]currentEntry.EndDateTime.Date.ToShortDateString();[/iCODE]

Member Avatar for ticktock
0
2K
Member Avatar for Isaaac

[url]http://www.c-sharpcorner.com/UploadFile/mahesh/printfile06062007133250PM/printfile.aspx[/url]

Member Avatar for Isaaac
0
265
Member Avatar for JOSheaIV

Let's start it over... [CODE=C#] string fileData = File.ReadAllText(@"file path"); checkedListBox1.Items.AddRange(fileData.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries)); [/CODE]

Member Avatar for JOSheaIV
0
3K
Member Avatar for Exaktor
Member Avatar for Exaktor

From program.cs [CODE=c#] /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1());//the name of the form :) } [/CODE] [iCODE]Application.Run(new Form1());[/iCODE]

Member Avatar for Ramy Mahrous
0
132
Member Avatar for yayaza

What's taxableIncome? please use code tags! To solve second error [CODE=c#] taxLBL.Text = Convert.ToDouble(taxLBL.Text).ToString(); [/CODE]

Member Avatar for yayaza
0
490
Member Avatar for elliot81

use generics... [CODE=C#] List<string> personsData = new List<string>(); string personData = "name,phone,number,postcode"; personsData.Add(personData); //use System.IO.File class to store personsData content... [/CODE]

Member Avatar for kvprajapati
0
132
Member Avatar for john_john

Friend.. I can suggest another design [CODE=C#] class User { //user properties, methods on the user instance } [/CODE] [CODE=C#]class UserCollection : IList<User> { //users properties, methods on the users instance like add/remove... }[/CODE]

Member Avatar for Ketsuekiame
0
123
Member Avatar for jockfaire

Add two buttons btnAdd, btnDelete.. create event handler (onClick) for both [CODE=C#] private void btnAdd_Click(object sender, EventArgs e) { TreeNode selectedNode = treeView1.SelectedNode; selectedNode.Nodes.Add("New node"); //prompt it as textbox or by any way you see.. } private void btnDelete_Click(object sender, EventArgs e) { TreeNode selectedNode = treeView1.SelectedNode; if (selectedNode.Parent == …

Member Avatar for Ramy Mahrous
0
126
Member Avatar for geoNeo_
Member Avatar for geoNeo_
0
549
Member Avatar for judithSampathwa

What the field datatype? plus can you show us how you pick it up? and save it in database?

Member Avatar for sknake
0
481
Member Avatar for krishnisilva
Member Avatar for zizi

To be aligned I'll illustrate what I got you mean you want to get distinct characters from string into array Ex. Input: RAMY MAHROUS Output: {R A M Y H O U S} correct?

Member Avatar for Ramy Mahrous
0
299
Member Avatar for Ramy Mahrous
Member Avatar for techsheaven
0
93
Member Avatar for ebiemami

It's already exist. if you go to add\remove program you'll find it + if you install the application and RErun the install file it gives you an option to uninstall the application. All in all nothing called uninstall file. uninstall option by default in install project.

Member Avatar for blindprogrammer
0
2K
Member Avatar for captainm

Man.. come on it's easy by implementing IComparer [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.sort.aspx[/url]

Member Avatar for captainm
0
1K
Member Avatar for kunwar1
Member Avatar for carelvos

Can you please try SQL authentication not Windows authentication, it may be problem of provisioning

Member Avatar for Ramy Mahrous
0
197
Member Avatar for Mitja Bonca

or SMS provider, which provides you with web service or so to call it to send SMS...

Member Avatar for Ramy Mahrous
0
86
Member Avatar for brightline

Look you should have SMS provider, which provides you with web service or so to call it to send SMS...

Member Avatar for Ramy Mahrous
0
63
Member Avatar for krishnisilva
Member Avatar for serkan sendur
Member Avatar for jephthah
1
366
Member Avatar for Cap'nKirk

Debug, because I'm pretty sure it don't enter "if" block //no condition because DialogResult.No should be DialogResult.Cancel Please try it..

Member Avatar for Ramy Mahrous
0
164
Member Avatar for Scale

I didn't get you but of you need to just compare if the 2 arrays are equal or not convert them to strings and comapre, please clarify to suggest better solutions

Member Avatar for Ramy Mahrous
0
104
Member Avatar for chandruswami

You can programatically edit it by iTextSharp [url]http://sourceforge.net/projects/itextsharp/[/url]

Member Avatar for Ramy Mahrous
0
37
Member Avatar for bhavna_816

You can't, simply when you add a column all rows before this adding have this column = null, so you can remove all rows and add a non-nullable column.

Member Avatar for Saranya_kamaraj
0
277
Member Avatar for Kelba

Welcome Kelba to C#, Try to apply OOP concepts on c# applications then get involved with business applications, read more articles on MSDN, you will gain perfect experience May ALLAH with you, friend

Member Avatar for peter_budo
0
3K
Member Avatar for blazted

I think if you changed the DropDownStyle from DropDown to DropDownList* it may help you *: from ComboBox control properties window

Member Avatar for kvprajapati
0
113
Member Avatar for RobertQQ
Member Avatar for S2009

Excuse me I've another solution :) due to being fan of SMO I'll do it using it [code=C#] public void (string databaseName, string filePath) { try { Server localServer = new Server(); //local using windows athuentication Backup backupMgr = new Backup(); backupMgr.Devices.AddDevice(filePath, DeviceType.File); backupMgr.Database = databaseName; backupMgr.Action = BackupActionType.Database; backupMgr.SqlBackup(localServer); …

Member Avatar for Ivan_86
0
12K
Member Avatar for rajeshswain
Member Avatar for majestic0110

In form properties you will find property called "Accept button" set it to the button you need to be pressed if user press "Enter"

Member Avatar for shahab_qureshi
0
132
Member Avatar for aminit
Member Avatar for Geekitygeek
0
81
Member Avatar for zigpy_siva

You're the one who should say the business requirments and ask specific questions.. anyway you may need e-commerce, Enterprise Services (COM+ as common), and Databases.

Member Avatar for venkyv
0
105
Member Avatar for c_skyscraper

Dear, if you've time to read I can send you a book about Data warehouse. About your questions Say we've business man who has super market with a lot of branches... The business man interested to know [B]net profit[/B] by year\region\product\sales persons Fact table: is th point of interest the …

Member Avatar for vinodh123
0
398
Member Avatar for gazalec

Give us more explanation. What the table you need to update its values by which table?

Member Avatar for mahmoud_wow
0
241
Member Avatar for rss

It exists by default there, and you can change the icon displayed in Add\Remove programs

Member Avatar for Geekitygeek
0
148

The End.