473,549 Members | 2,980 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

16
4,672
thread by: lenniekuah | last post May 21 '10 by: ThatThatGuy
I am trying to using C#Net2008 to create XML File. -------------------------------------------------- The User are prompted by folderBrowserDialog control to select the folder to store the XML File. But the variable which contained the folder path generated this error message: Coding that generate the error: XmlTextWriter XmlWriter =...
1
2,013
thread by: koneyji | last post May 21 '10 by: tlhintoq
I need to read a file from a text box and create a new file using file.create command and the new file should have.enc extension. I tried but can't get it to work. the program goes like this BinaryReader br = new BinaryReader(File.Open(textBox1.Text, FileMode.Open)); BinaryWriter bw = new BinaryWriter(File.Create()) // in this line i...
5
3,115
thread by: mattb123 | last post May 20 '10 by: mattb123
Hi, I'm a vb.net developer getting the hang of c# and I've gotten stuck on trying to compare types. In the following block, I'm populating an object from a DataTable. The table's data types aren't always the right type so as I loop through I want to compare types and optionally try to convert to make the data match the object property types. ...
8
2,076
thread by: rsbrothers | last post May 20 '10 by: Curtis Rutland
I have 6 check boxes in parent windows form and 6 labels in child windows form. If I click the checkbox1 in parent windows form I want that checkbox1 is clicked message in child windows form. Like that if all the checkboxes are clicked then i want checkbox1,checkbox2,....checkbox6 clicked in child windows form.
2
2,368
thread by: preimol | last post May 20 '10 by: Curtis Rutland
Hie people I have a database named person that has a table called emp and a field by the name Names.Iam using VS 2005 how do I insert,delete and update the database. this is my code- private void button1_Click(object sender, EventArgs e) { string connetionstring = null; string sql = null;
2
2,599
thread by: sarvesh48 | last post May 20 '10 by: Plater
I have a Application which Session Expire in 30 minutes. How can i stop Session Expire of Application ?
3
1,258
thread by: clflyer | last post May 20 '10 by: Plater
Visual Basic has a function IsNumeric. It returns True if the argument is a number, false if not. in VB code it would look like this: Dim txt as string = me.Textbox1.Text if IsNumeric(txt) MsgBox("Its a number."); else MsgBox("Its not a number.");
1
2,571
thread by: nivass | last post May 20 '10 by: nivass
Hi I am new to C# and have loaded the image in the picture box using menustrip and have displayed some text using picturebox_Paint and label. now i tried to save the image (with image and text) using save event from the menustrip. in the saved location the file shows as no preview available and when i tried to open the file it shows out of memory....
3
3,359
thread by: Dresse | last post May 19 '10 by: Dresse
Hello I'm wondering what the easiest solution is for logging each sale that has been made. I just need to keep track of the total cost per sale and at the end of the day I want to make a report that counts all the sales made today and makes a total. Currently i'm just writing data to a textfile, so when I press a button I get an overview...
5
3,565
thread by: zuraberadze | last post May 19 '10 by: ThatThatGuy
I can't connect C# to MS Access 2007 to insert data into DB. please help me. it can't see the type of db. thx
2
1,512
thread by: lenniekuah | last post May 19 '10 by: GaryTexmo
I am having problem trying to convert VBNET2008 coding of creating XML File using C#NET2008. VBNETCoding version Do While DataReader.Read 'XML Element format xmlWriter.WriteStartElement("row") For i = 0 To (DR.FieldCount - 1) xmlWriter.WriteStartElement(DR.GetName(i))
4
25,359
thread by: clflyer | last post May 18 '10 by: GaryTexmo
I have a small problem. I'm pretty much a newbie to C# coming out of VB.Net. I have a windows form that has a GroupBox named grpSoldTo. I want to be able to clear all the textboxes and comboxes that are in the GroupBox. I know how to do it in VB.Net but when I try something similar in C# I get the following error: Cannot implicitly convert...
1
1,758
thread by: pkm377 | last post May 18 '10 by: tlhintoq
I have a button. When user clicks it, it should execute some queries and depending on result it should show a messagebox asking for confirmation. Now depending on user's response it will do something. How it can be performed in asp.net using c# in web applications
1
1,432
thread by: islandgal | last post May 18 '10 by: tlhintoq
-- -- Table structure for table borrower -- DROP TABLE IF EXISTS borrower; CREATE TABLE borrower ( brw_num int(11) NOT NULL default '0', brw_lname varchar(15) default NULL, brw_fname varchar(15) default NULL, brw_initial varchar(1) default NULL, brw_areacode varchar(3) default NULL,
4
5,163
thread by: libishkb | last post May 18 '10 by: libishkb
I am trying to call a fortran dll from c# code. But i get the following error message.An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B). Could any one please tell me where I am going wrong? The codes are given below. Fortran code ! lwing.f90 ! ! FUNCTIONS/SUBROUTINES exported from...
4
11,958
thread by: jbro | last post May 17 '10 by: GaryTexmo
hello, I'm trying to figure out how to add a ToolTip to a RectangleF, so when the user moves the mouse over the rectangle a tooltip with information regarding that rectangle will pop up. I hope someone out there knows how to do this. For example this is what I have: private void Form1_Paint (object sender, PaintEventArgs e) { Graphics...
0
1,614
thread by: MightyPolo | last post May 17 '10 by: MightyPolo
Hello, i have a question on my mind. Iam developing application which uses twain layer to scan images. So far everything worked fine, but today while testing i got Attempted to read or write protected memory error. Basicly what i do: - set capabilities via imported dll calls of twain.dll - call acquire call via imported dll calls of...
4
12,383
HaLo2FrEeEk
thread by: HaLo2FrEeEk | last post May 17 '10 by: Plater
I'm writing a program that has a certain specific type of input file. This input file contains information about the program that created it. The information is always at the same offset in the file and is always the same number of bytes (4), but I only want to allow files that were made by certain programs. An example would be: 4D 53 88 5C...
1
1,691
thread by: ReiCerebrus | last post May 17 '10 by: Plater
Hi. I need to create a class Toolbar : Windows.Worm.UserControl (Framework 2.0) and to place it into HTML page. This page must work in IE6+. I found some examples and created my toolbar, but IE doesn't want to display it. Site with examples: http://feishunji.blog.51cto.com/237830/45990
5
8,273
thread by: gyanendar | last post May 17 '10 by: Plater
Hi All, Can it be possible to change the Treeview link line(line connecting parent & Child node) style.Default its coming as dotted line .I want to make it solid line. I am using WIN-FORM. Please suggest. -Gyanendar
6
3,294
HaLo2FrEeEk
thread by: HaLo2FrEeEk | last post May 17 '10 by: Curtis Rutland
I cannot seem to even think of a way I might do this. Basically I have 6 lists with various pieces of information about the data I'm processing. I need to sort one of the lists (the one containing the date/time information) and have the rest of the lists sort the same exact way. So let's say I have these 2 lists: List<int> dates = new...
5
2,818
thread by: mazman73 | last post May 17 '10 by: GaryTexmo
I have a cell in a Layout Panel in a C# project that contains text that represents a countdown. Every second the text updates to show the time remaining. The background color of the cell is dark green and the text is white. The problem is that everytime the text changes (every second) the background of that cell flashes white for an extremely...
2
1,577
thread by: superhero | last post May 17 '10 by: superhero
Hi guys, i'm writing a simple code which is about polynomials using link lists in C#. the problem i have is that whenever it creates a new struct (node) in the for loop it gives it the same address as the previous node was given. so how do i fix it ? here is my struct : struct poly { public int coef; public int pow; public poly* link;} ;...
3
1,369
HaLo2FrEeEk
thread by: HaLo2FrEeEk | last post May 17 '10 by: HaLo2FrEeEk
I've got a program that requires that the user pick a file or folder on their computer. Currently the user clicks Open Single in the File menu and an openFileDialog comes up; to open a folder the user clicks Batch from the File menu and an folderBrowserDialog comes up. I'd like to expand this to allow the user to simply drag a file or folder...
4
2,569
thread by: s207044707 | last post May 17 '10 by: jkmyoung
HI I need to create a programm that stores 10 users, and three numbers for each user, and calculate average for each user based on the three numbers entered e.g. if user 1 entered 6, 8 ,10, then average =(8+10)/2=80.0%.Then how to select 8 and 10?

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.