473,809 Members | 2,575 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

0
1,238
thread by: Bharadwaj Nadig | last post Jan 2 '12 by: Bharadwaj Nadig
Hi, I'm developing one application in Compact framework for billing printer, and I have a multline text box and I need to restrict it to 5 lines without MaxLIne property infact MaxLine property is not there in Compact framework. Can any one please help me to solve this problem, please..
1
2,258
thread by: Anurag Arora | last post Dec 29 '11 by: Rabbit
I want to read an 1bpp pbm(portable bitmap) format image and store the bits data i.e 0 or 1 in a file so that I can perform further operation's on that data. but i think the smallest data that we can read using C# is a byte so how can i read a bit and store the data into a file for further use. Thank you in advance. :)
0
1,447
thread by: David Lopez | last post Dec 28 '11 by: David Lopez
I have a listview that displays items from a sql table, I want to store an update for those items into sql, I know how to do the store function and that is already working, but I need to know how to retrieve the values from the listview, here is my code... Note that I have the visitID what doesn't work is FindControl items protected void...
0
1,572
thread by: Vyshak Vijayan | last post Dec 28 '11 by: Vyshak Vijayan
Since the inbuilt Font Dialog returns a 'Not a True Type Font' Exception on selecting a Non True Type Font, I'm trying to create a Custom Font Dialog using Font-families which filter out non true type fonts. The Control is working perfectly but I need a size and style selectors for this dialog.
1
5,739
thread by: mrar | last post Dec 28 '11 by: mrar
hello guys! i want select next row from listview to show it content in textbox with a shortcut key i test this: private void textBox1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F8) { int index = 0; index = this.listView1.SelectedIndices; listView1.Items.Selected = true;
59
8,119
thread by: vishal1082 | last post Dec 27 '11 by: mikeil
first, i don't know what could i possibly write for the "question" field... i have a button, and i put a label over it, i did that, and transparency and other things are not a problem for me, the problem is, when i take mouse over the label, the button no more has the "effect" which comes when mouse is over it (blue colored in vista/7) so what...
0
1,188
thread by: Vyshak Vijayan | last post Dec 27 '11 by: Vyshak Vijayan
Im trying to use an External Asynchrnous list view control http://code.google.com/p/imagelistview/ I added image list view reference to the ToolBox,Added and the Control in the form.But when im tring to use it Imagelistview1.Items.Add(myitem) an Reference Error Occurs. I get an Invalid Reference error Manina.Windows.Forms --How can i...
1
1,517
thread by: simon zhao | last post Dec 27 '11 by: simon zhao
Hi guys: I develop an Add-in in C#.There is a ribbon menu and several UDFs. The problem is I can't get current Applicaion in UDF. One UDF code is like: public string GetActiveSheetName() { return Globals.ThisAddIn.Application.ActiveSheet.Name; }
1
1,720
thread by: Dawit abrham | last post Dec 27 '11 by: adriancs
I have a datagridview that has a dropdownlist and textbox. I want to assign a value to a textbox depending on the selected value of the dropdownlist. But I try this getting the error "Object reference not set to an instance of an object". I post my code here: foreach (GridViewRow gvr in cgvRequest.Rows) { ...
2
1,479
thread by: Humera Hasan | last post Dec 25 '11 by: Maraj
I am having a C# project with SQL server Database and made a setup for it.... i want to deploy this on client single system no internet no network connection single system how can SQL server DataBase will deploy without installing SQL server on system
4
2,757
thread by: boriscb | last post Dec 25 '11 by: boriscb
Hi, I am having difficulty with trying to pre-populate a dropdown list from a datareader. The list should bind with the ID from a table to display its text value. For example to display the region "Oregon" the ID=5, "Florida" the ID=12 etc... this is the code I am using that fails: ddlRegion.DataValueField =...
1
11,867
thread by: timnewport | last post Dec 24 '11 by: adriancs
//Just change the borderstyle as i did below. I used this as if the picture boxes were buttons. private void PictureBoxMouseOver(object sender, EventArgs e) { unselectBox(this.displayPanel); try { PictureBox picBox = (PictureBox)(sender);
2
1,667
thread by: Abhinav Sood | last post Dec 24 '11 by: adriancs
new in this field ...will be simple nd compact : 1 datagridview 6 buttons(new,save,cancel,edit,delete,update) 5 text boxes(all enabled = false) , 1 combo box(all enabled = false) on the click of new all textboxes and combo box are enabled. fill the data click on save ( saved in gridview textboxes are enabled=false and cleared) in...
0
1,514
thread by: Taiseer Hussein | last post Dec 21 '11 by: Taiseer Hussein
Hi, I have a project to combine multiple word doc in single one. I was able to combine them successfully using copy & paste, however I'm having two issues 1. I wanted to keep the original format, therefore I'm using oWordApplication.Selection.PasteAndFormat(Microsoft.Office.Interop.Word. WdRecoveryType .wdFormatOriginalFormatting); which keeps...
4
7,327
thread by: siilexx | last post Dec 21 '11 by: adriancs
Hello, I'm building a multi-standard player, which randomly shows JPG, GIF, SWF,... files on screen, BUT I cannot find a way to play a FLV file in my winform. Could you please advise ? Thanks for your help.
3
2,891
thread by: bhagyap | last post Dec 21 '11 by: bhagyap
this.tableLayoutPanel1.ResumeLayout(false); An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll occurred for the above line.. Please help me...
1
2,469
thread by: chaitanya reddy | last post Dec 21 '11 by: dilipkakadiya
Hi every one i want to store data in data table and send that data in xml format to web service after fetching it from sql query can any one help me plz .Here is my code string username = Request.QueryString; string password = Request.QueryString; int response; string constr = "Data...
3
1,802
thread by: Devaraj1987 | last post Dec 20 '11 by: adriancs
Hi, I have a datagrid in which i have a datagridcombo box(editable),I have populated the combobox manualy by using the following code. DataGridViewComboBoxColumn Actioncolumn = new DataGridViewComboBoxColumn(); Actioncolumn.DataPropertyName = "ZSL_Action"; Actioncolumn.HeaderText = "Action"; string...
0
1,125
thread by: nohan falon | last post Dec 20 '11 by: nohan falon
Simple way to call xml based service(api) and use it in my website using C#. i don't know how to call these xml based service.is there any smart programmer to help me .
0
1,174
thread by: endazyar | last post Dec 18 '11 by: endazyar
Hello everyone, I have created a c# project( visual studio 2008 ). The application retrieve some data from access db. I'll use setup wizard. I'm just wondering how to deploy my database inside the setup folder. How should i define my connection string and how to get the directory of setup folder from the environment? Thanks in advance.
2
3,062
thread by: ihabalaloul | last post Dec 18 '11 by: ihabalaloul
Hi, I just started with some test samples to learn C# (ver 4.0); after I created a FlowlayoutPanel container; any control I added inside is AUTO position from upper left corner then next to left. How Can I position add controls (labels, texts buttons) any where in that flowlayoutPanel. Also, I appreciate if somebody send me useful samples to...
2
45,336
thread by: kisho | last post Dec 17 '11 by: kisho
Hi there this is my scenario i have created one dataGridView control in my form. It already bounded with Customers table in database. Please follow the picture that i have uploaded; the pino column should contain Invoice NO textbox's text for every new row until user click Generate Invoice button. iam using dataGridView control for...
1
2,402
Paul Johnson
thread by: Paul Johnson | last post Dec 16 '11 by: GaryTexmo
Hi, Got a bit of a fun one - but first the code... using System; using System.Collections.Generic; using System.Text; namespace IndexedClass
8
4,897
thread by: jmcpeak | last post Dec 14 '11 by: cooldj
Here is the unmanged definition: //============================================================================ // DcamCapture() // Start to acquire one image from the camera. // --------------------------------------------------------------------------- // // pImageBuff : /O: Specify the start address in the buffer where image // data...
2
1,502
thread by: Pantelimon Fl | last post Dec 14 '11 by: arie
When i start the program, it simply freezes. I mean if i push any button, it doesn't work. Only button10 is working which is closing the form. What is the problem here? using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; //using System.Linq; using System.Text;

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.