4,588 Topics

Member Avatar for
Member Avatar for ajinkya112

Hey guys, I have two forms, form1 and form2. My form1 has a combo box and a button. Here's form1 code. [COLOR="Red"][B]Form1[/B][/COLOR] [CODE] public partial class Form1 : Form { bool s; public Form1() { InitializeComponent(); s1 = comboBox1.Text; } private void Form1_Load(object sender, EventArgs e) { } public string …

Member Avatar for Mitja Bonca
0
126
Member Avatar for virendra_sharma

Hi friends , i have some code for to find out whether the no is prime or not. but i want it in c# using the same logic. int isPrime(int n) { int c =0, s=0; if (n == 1) { return 0; } if (n == 2) { return …

Member Avatar for Momerath
0
181
Member Avatar for arjunpk

hi... can someone please explain how to create a new excel file using an excel template in c# I have no idea how to go about doing it and that is why i haven't pasted any code.... i have been developing an application as part of my college project..... and …

Member Avatar for ddanbe
0
155
Member Avatar for Parth tank
Member Avatar for vanzhyme

Please ! Could someone tell me where i can find pdf tutorial for C# in web based... i have a tutorial here but this is for console application... please help me ! ^__^ thanks in advance guys !

-1
76
Member Avatar for hery

I want to question how to embed variable value in sqldatasource session parameter in c#. This is mycode: default.aspx: [CODE] <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Ora2011 %>" ProviderName="<%$ ConnectionStrings:Ora2011.ProviderName %>" SelectCommand="SELECT ID, CATEGORY_NAME FROM (:INVENT_CATEGORY)"> <SelectParameters> <asp:SessionParameter Name="INVENT_CATEGORY" SessionField="INVENT_CATEGORY" Type="String" /> </SelectParameters> </asp:SqlDataSource> [/CODE] C#: [CODE]protected void Page_Load(object sender, EventArgs e) …

0
60
Member Avatar for vishal.patil

This is the code that I have written in C# which shows the contains in the sample.log file. [CODE] class FileRead { public void ReadData() { FileStream fs = new FileStream("sample.log", FileMode.Open, FileAccess.Read); StreamReader sr = new StreamReader(fs); sr.BaseStream.Seek(0, SeekOrigin.Begin); string str = sr.ReadLine(); while (str != null) { Console.WriteLine("{0}", …

Member Avatar for mcriscolo
0
409
Member Avatar for lianpiau

who know how to make TreeGridView in C# which want support databind. want to retrieve data from database to display in TreeGridView.

Member Avatar for lianpiau
0
1K
Member Avatar for hitro456

Hi guys I am writing an application in c# I want to create a dynamic log file which would contain all the errors or exceptions occurred during execution of the Component. Log file simply has to append all the errors or exceptions generated with error details and time and date. …

Member Avatar for ghimangi
0
226
Member Avatar for chintan_1671

I am creating new thread everytime in the for loop .. but many times the loop takes the same filename and creates new thread. Doesn't Work: [code] foreach (string s in fileEntries) { t = new Thread(() => Shrink(s)); t.Start(); } [/code] I have tried individually for each file creating …

Member Avatar for chintan_1671
0
200
Member Avatar for arjunpk

hi.... i have a small problem using the DOM parser for XML in c# [CODE] XmlDocument doc = new XmlDocument(); XmlNodeList _list = null; doc.Load(location.Text); _list = doc.GetElementsByTagName("DataSource"); foreach (XmlNode node in _list) { //some processing } [/CODE] over here i am able to get specific nodes using the getElementByTagName …

Member Avatar for arjunpk
0
294
Member Avatar for dilake
Member Avatar for adelsin

I have a Powershell script that I was hoping to either re-write or include into a C# so it may be compiled into an executable. I guess my first question is to see if anyone has any knowledge on how to directly go from powershell to C#. If not, I'll …

Member Avatar for Momerath
0
64
Member Avatar for kul1508

Hi, I am new to C# application development. I want to know,how to receive a character from a textbox? Right now I am getting a textbox output in a string buffer Instead of this I want it into a Char array Regards Santosh K.

Member Avatar for Momerath
0
78
Member Avatar for Silvanarix

I have only been diving into the C# language for roughly 3 days. I have alot of background with computers but never in a programming language. I am attempting to gain a foothold in C# by playing with it to learn a little about how it works before returning to …

Member Avatar for Silvanarix
0
71
Member Avatar for Phil++

Hello, I'm doing my final project and I'm thinking about creating an application that is user based.. A user can login (See their score etc) and also register if they haven't got an account yet.. I'm thinking about doing this using SQL and I haven't really done it before, other …

Member Avatar for Mitja Bonca
0
110
Member Avatar for arjunpk

hi i'm writing a c# script to be used in ssis.... i'm trying to pull an image from a website... i'm new to c# and i'm not sure whether the data types i'm using are right... i'm posting my code here... [CODE] using System; using System.Data; using Microsoft.SqlServer.Dts.Runtime; using System.Windows.Forms; …

Member Avatar for dotancohen
0
231
Member Avatar for zack_falcon

I've constructed an inventory program that relies on a database for information. Previously, I've used Access 2007, because it is easy and n00b friendly. Unfortunately, I'm not so sure Access can handle the requirements (Multiple simultaneous users over a LAN connection). So I switched to SQL Server 2005 Express. And …

Member Avatar for zack_falcon
0
148
Member Avatar for ChrisHunter

Hi, Could anyone tell me the best way to implement a propertygrid? currently I'm doing it like this but I'm having truble setting the value of the private variable with the values returned but a single SqlDataReader: [CODE] [DefaultPropertyAttribute("ObjectTypeID")] public class ObjectType { private int _objTypeID; private int _stateType; private …

Member Avatar for lolafuertes
0
549
Member Avatar for blacklocist

Hi, I am importing data from excel (don't know yet I am going to do that) and export it back into excel. I don't want to have users to import data using excel (due to lack of intelligence) and also it would be faster and more streamline. I already had …

Member Avatar for ivy3
0
213
Member Avatar for D.Twomey

Hi guys/girls, I have an exe that has been written in C# using visual studio Is there a was I can de-compile it back into the C# code - It seems to be some what protected exe files I've created myself using Visual Studio and C# I can see the …

Member Avatar for Momerath
0
747
Member Avatar for maac2002

Hi, I'm novice by complete to webservices et al. I've created successfully a webservice and referenced it in a console application. By simplification let assume that the webservice contains a webmethod, the 'classic' CelsiusToFarenheit (string Celsius). Once referenced i can see my new namespace ServiceReference1 with the following classes inside: …

Member Avatar for maac2002
0
879
Member Avatar for rt.garg1991

I want some help in sending Email through my Gmail account. I don't want this for spamming purpose. I am developing Complaint System for my University and I want to send Email whenever any Complaint is launched. I already tried the following code but I am getting "Failure Sending Email" …

Member Avatar for rt.garg1991
0
152
Member Avatar for amiref

Hi I am beginner in C#.please tell me what is problem in this code : using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] firstName={}; string[] lastName={}; Console.WriteLine("Please type your firstName : "); for (int i = 0; i …

Member Avatar for Momerath
0
115
Member Avatar for micmo

Hi guys, I've been searching for hours now and haven't yet found a good source of C# information for what I need to do. The general gist is this: I have 1 Client app (a simple windows form which gathers data) and 1 Server console app (which holds the business …

Member Avatar for micmo
0
651
Member Avatar for Gowrishankar

Hi every one,Could you help me in creating one login page,in which the username and password get validate with the backend db(sql server)And the password is encrypted and stored in db.So I want to know how to encrypt the user inputting password and validate that one against the encryted password …

Member Avatar for afjal nathani
0
409
Member Avatar for lebna

I am creating a project for video surveillance. How do i send the live video to the client using socketing and Udp. I tried sending consecutive images to the client using tcp so that it finally looks like a video when viewed at the client side. But was not successful.... …

Member Avatar for lebna
0
2K
Member Avatar for clbembry

I installed MSCharts but when I go to install this toolbox add-on here for it: [url]http://www.microsoft.com/downloads/en/details.aspx?familyid=1D69CE13-E1E5-4315-825C-F14D33A303E9&displaylang=en[/url] It doesn't work. Am I going to have to install 2008 to use it?

Member Avatar for kvprajapati
0
54
Member Avatar for moone009

C# command prompt. I have a program that builds an xml file for me but then I need to open the command prompt and enter: 1.D: 2.cd\rplcarts\createprogram 3. createprogram.exe "XML file" then enter does anyone know how I could automate this in c#?

Member Avatar for kvprajapati
0
90
Member Avatar for ben_

I wrote this function about a year ago, it's very useful for generating safe file or folder names from text that a user inputs. One method I use this for is storing the filename in the database and then url-rewriting with global.asax. You can get an example of url rewriting …

Member Avatar for Momerath
0
4K

The End.