4,588 Topics
| |
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 … | |
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 … | |
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 … | |
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 ! | |
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) … | |
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}", … | |
who know how to make TreeGridView in C# which want support databind. want to retrieve data from database to display in TreeGridView. | |
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. … | |
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 … | |
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 … | |
how to develop a smart pen using c#.net? Regards Dilake | |
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 … | |
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. | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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" … | |
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 … | |
| 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 … |
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 … | |
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.... … | |
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? | |
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#? | |
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 … |
The End.