473,748 Members | 2,670 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

3
2,262
xarzu
thread by: xarzu | last post Aug 19 '12 by: PsychoCoder
Tab Split String Not Working. Please Help. I wrote a C# program that reads code one line at a time. Each line has data seperated by tabs. Here is what my C# code is supposed to do. The line is supposed to be split into a string array by using the "Split" string methodIt is supposed to be spit read in text one line at a time and I use...
1
1,821
thread by: Brian Connelly | last post Aug 19 '12 by: Rabbit
I am grabbing data from three entities and want to grab a field value in each of the entites and place it in an arraylist. What I would like to do is loop through the arraylist for all the values and do something for each value only once. If the value in the array list is repeated, I want to not do anything for it and continue till the end. ...
0
1,195
xarzu
thread by: xarzu | last post Aug 19 '12 by: xarzu
How To Modify An Element in the Dictionary Class? ======================================= C# has this cool Dictionary class that you can use like a Hash Table. Is there a way of changing the value of an indexed element without resorting to removing it like this? int value = runningcount; ...
2
1,854
thread by: Brian Connelly | last post Aug 19 '12 by: Brian Connelly
Below are two code samples. I am practicing with Menu navigation and have two themes where if theme 1 the Menu is horizontal and theme 2 it is vertical. The code looks like this: if (!Page.IsPostBack) { string selectedTheme = Page.Theme; HttpCookie preferredTheme = Request.Cookies.Get("preferredTheme"); if...
1
2,144
thread by: anamikamaggie | last post Aug 17 '12 by: Aimee Bailey
hi i want to read info from file.but its going into infinete loop.could help me in this here is the code #region filecreation and writing data to file FileInfo fi = new FileInfo(@"c:\\csharppgms\\stdinfo.txt"); StreamWriter sw1 = fi.AppendText(); std: Console.WriteLine("enter student...
2
2,935
thread by: rsreddyk | last post Aug 17 '12 by: frenchmarlohe
I have c# code something like below. void ExecuteSomething() { TransactionOptions transactionOptions = new TransactionOptions(); transactionOptions.IsolationLevel = System.Transactions.IsolationLevel.ReadUncommitted; transactionOptions.Timeout = TimeSpan.FromSeconds(TransactionTimeOutInSeconds); using (TransactionScope...
-
-
thread by: sonujangid7 | last post Aug 17 '12 by: sonujangid7
Moved:
11
4,655
thread by: Yaridovich | last post Aug 16 '12 by: Yaridovich
Hello everyone, I'm having a bit of trouble with something. What I'm trying to do is create a new Access table by combining other already existing Tables. For instance, let's consider Table1 (with columns A, B and C), Table2 (with columns A, D and E) and Table3 (with columns A, F and G), where Table1.A = Table2.A = Table3.A. From these, I want...
1
1,993
thread by: vijayvijayvijay | last post Aug 16 '12 by: Rabbit
I want to send SMS through my C# application. can u give me full app?? Can any one help me out? Thanks,
1
1,258
thread by: raj123 | last post Aug 16 '12 by: ariful alam
how to make a calender showing holidays in c#.net
7
3,605
thread by: amvigill | last post Aug 15 '12 by: amvigill
Hi, I have two drop down lists inside of two different fields in a detailsview, the first one determines the values of the second one. When i select a value from the first ddl autopostback erases all data already in the detailsview and reverts the first dropdownlist back to the first selection. Also when i select from the list (change...
3
5,898
shahhussain305
thread by: shahhussain305 | last post Aug 15 '12 by: shahhussain305
Hay, I tried to get the Urdu Fonts from MySql Database using C# in Visual Studio 2010 in Windows Forms Application. When I get the value from table into my variable it shows the characters in ???? symbols. wherein PHP it is working very good without any problem. But in PHP i have used the following code: <?php class CRUD { var $con; ...
1
2,079
thread by: Balajisankar | last post Aug 15 '12 by: Aimee Bailey
How to get line number on mouse position in Microsoft word document using winWordControl within windows form? Thank you for valuable help.
4
5,407
thread by: Ronio | last post Aug 13 '12 by: ariful alam
Im working on a project in which i have to upload a file. I have tried WebHttpRequest class and WebClient class to do this but could not succeed. So, if i programmatically fill and click the choose file dialog then it can be done otherwise not. Im using C# for this project.
5
3,860
thread by: Yammyrammy | last post Aug 13 '12 by: Frinavale
Hello, In my class I'm trying to display the elapsed time as my label on a windows form. I've been reading up on all the different articles online and have tried these three methods all with the same result: 1. Using the System.Timers class 2. Built in Timer sub-class 3. Defining directly inside of my class the StartTime, etc. variables....
2
2,024
thread by: ahmed haredy | last post Aug 13 '12 by: Frinavale
struct info { string name, ID; double GPA; }; static void Main(string args) { info student=new info ; Console.WriteLine("Enter the data : ");
0
1,800
thread by: ta1234 | last post Aug 11 '12 by: ta1234
I need to convert ToolStripMenuItem to MenuItem, but i cannot find any casting. what i need to do is to get a toolstripmenuitem and add to it new DropDownItem and then somehow return the whole new toolstripmenuitem with the new dropdownitem as a menuitem, i tried to go on a foreach loop over the dropdownitems and manually add the dropdownitems...
1
1,991
thread by: MItsugou5820 | last post Aug 11 '12 by: messyleon
how do I stop and restart a Thread in C# once it reaches a certain location on a form then restart the thread once it goes outside of the location boundries? I am trying to stop an animation thread (a bullet) once it reaches a block on a panel. And Ideas?
1
1,581
thread by: akshitshah | last post Aug 8 '12 by: Frinavale
I have one exe file which creates a instance of process and call other dependent exes. Now the problem is when any of depended exe fails due to some exception. It waits for the user input because of this my main exe waits till that process ends. My question is there any way my main exe can come to know that other exe has some exception so my...
0
1,392
thread by: ucu13 | last post Aug 8 '12 by: ucu13
Hello, I want to order the x axis to show from the newer date to old one. exemple: now show: 05.08.2012-> 06.08.2012->07.08.2012 on x axix i want to show: 07.08.2012->06.08.2012->05.08.2012 on x axis some ideas pls
1
2,506
thread by: WesleyN | last post Aug 8 '12 by: WesleyN
I've created a solution who exported Access reports (graphics/tables) to a Word- and a PDF-format. Therefor I use PDFSharp and PDFFocus. The PDF document is okay. But the Word-document looks good. Only the size of the Word-document, it has to send by e-mail, is much too big (17MB). I have to open the Word document again to change the...
1
2,192
thread by: amit shelke | last post Aug 7 '12 by: Rabbit
i need to read autocad file through any programming language (mostly C#) and read the objects parameters like length,breadth,height,volume etc if any one have worked on this pls help me...
0
1,206
thread by: sanjay1983 | last post Aug 7 '12 by: sanjay1983
Hello All, Please help me to get information of Laptop/Tablet Battery with property "BatteryCycleCount". I am play with the below APIs but not found any significaint solution. protected static extern IntPtr SetupDiGetClassDevs(ref Guid gClass, string strEnumerator, IntPtr hParent, uint nFlags); protected static extern...
1
1,237
thread by: sanagasetti | last post Aug 7 '12 by: Mudassir
I have a Gridview ,in that one of the Column is DropDownList .I have 10 Records in my Grid and my DropDown Values are like this 1,2,3....10.This is the format to store my DropDown values ,if i delete 4th Row ,then my DropDown Values are Changed like 1,2,3,4....9.This is my task ,but i'm getting this format 1,2,3,--,5...10.Any one Can help me to do...
5
7,408
thread by: Mahak Dhawan | last post Aug 4 '12 by: mikee1504
hi...please provide me help in making connection of ldap with asp.net(c#). as i am a newbie so please give the full source code. thanks in advance... :)

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.