User Profile

Collapse

Profile Sidebar

Collapse
dotnetnovice
dotnetnovice
Last Activity: May 25 '11, 03:45 AM
Joined: Aug 25 '09
Location: Sialkot, Pakistan
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dotnetnovice
    started a topic Sending an html email with images using C#

    Sending an html email with images using C#

    Hi i am using this code to send email messages in C#...
    Code:
     private void button1_Click(object sender, EventArgs e)
            {
                try
                {
                    MailMessage mail = new MailMessage();
                    SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
    
                    mail.From = new MailAddress("");
                    mail.To.Add("abc@abc.com");
    ...
    See more | Go to post

  • dotnetnovice
    started a topic datagridview image column stretch property

    datagridview image column stretch property

    Hi i am using this code to dispaly images from database to datagridview, All code lines works well except these
    Code:
    foreach (DataGridViewImageColumn column in dataGridView1.Columns)
                {
                    column.ImageLayout = DataGridViewImageCellLayout.Stretch;
                    column.Description = "Stretched";
                }
    i get error on line 1 "DataGridViewIm ageColumn"...
    See more | Go to post

  • dotnetnovice
    replied to Php file upload outside root directory
    in PHP
    Ok i'll try relative path like you posted above thanks...
    See more | Go to post

    Leave a comment:


  • dotnetnovice
    started a topic Php file upload outside root directory
    in PHP

    Php file upload outside root directory

    Hi...
    I am trying to upload files to a folder outside the root directory (public_html) like this /home/a3142058/upload/ws.jpg My script saves the image successfully to a folder outside the root directory, but when i try to access this image in my index.php page like this
    Code:
    <image src = "/home/a3142058/upload/ws.jpg" height = "250" width = 250>
    it did not show any thing

    Looking for any help in this...
    See more | Go to post

  • How to start a program/process at system startup in c#?

    Hi...
    I want some help in registry editing Actually i am using this code

    Code:
    namespace ConsoleApplication2
    {
        class Win_start
        {
            static void Main(string[] args)
            {
                RegistryKey rk = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
                
                rk.SetValue("a",
    ...
    See more | Go to post

  • dotnetnovice
    replied to three layered structure in C#
    Yes i know there are lots of datatype flaws in my program but here i just want ensurity about three layers in the program either i have done it in correct way like getting data from GUI and passing it ti BPL in BPL i process the data and then pass it to DAL. i just need help about the structure

    Thanks
    See more | Go to post

    Leave a comment:


  • dotnetnovice
    started a topic three layered structure in C#

    three layered structure in C#

    Hi...I am new to object oriented and also to n-tier.
    I have developed a small program based on 3 tier structure. what i want is some help from professionals that either i worked well or there is a need of improvement.

    here is the Common class which contains members.
    Code:
     public class Common
        {
          public string Id;
          public string Name;
          public string Phone;
          public
    ...
    See more | Go to post

  • dotnetnovice
    started a topic C# Object Oriented Approach

    C# Object Oriented Approach

    Hi...I am new to object oriented programming and facing a problem with classes and inheritance.
    My question is how to call members of one class in to another class.

    Here is class 1
    Code:
    class Class1 
        {
            public string Id;
            public string Name;
    
            public Class2 Add;
        }
    Here is Class 2
    Code:
    class Class2 
        {
            public string Address;
    ...
    See more | Go to post

  • dotnetnovice
    replied to c# current form close problem
    Ok i will try this one
    See more | Go to post

    Leave a comment:


  • dotnetnovice
    replied to C# Combobox item selection
    Thanks GaryTexmo you have solved the problem...Thank s Again...
    See more | Go to post

    Leave a comment:


  • dotnetnovice
    started a topic C# Combobox item selection

    C# Combobox item selection

    Hello everybody...

    I am using the following code for my Combo Box.

    Code:
                comboBox1.Items.Add("ABC");
                comboBox1.Items.Add("DEF");
                comboBox1.Items.Add("GHI");
    Now what i want is when i load the form the first value of Combo Box already Selected Please help me in this regard...

    i want to...
    See more | Go to post

  • dotnetnovice
    started a topic C# ComboBox Value

    C# ComboBox Value

    Hi...

    I am using a combo box in my application and i have binded it with the data base. what the problem i want some some text in the combobox already selected and displayed in the combobob such as --SELECT-- in my combo box can any body tell how i do this..
    See more | Go to post

  • dotnetnovice
    replied to c# current form close problem
    Hi Plater how would i decide which form is open it can be any one either Form1 or Form2 My question is how would i check which form is open.
    See more | Go to post

    Leave a comment:


  • dotnetnovice
    started a topic c# current form close problem

    c# current form close problem

    Hi everybody.

    I need some help in c# forms problem which is

    i have three forms naming main form,form1 & form2. main form is the mdiparent of both form1 and form2. i also have a toolstrip in my main form which includes option close current frm and close all. what i need is when i click the close current form option the form opened state(either form1 or form2) close down.

    suppose currently form 2 is...
    See more | Go to post

  • Value Required outside the context [Very Urgent Please Help Me]

    Hi everybody!

    I have a problem and need help

    Here is the code.

    Code:
    public void GetAllValues(Person V)
           [B] {[/B]
                SqlConnection conn = new SqlConnection(ConnectionString);
                SqlCommand objSql = new SqlCommand();
                objSql.Connection = conn;
                objSql.CommandType = CommandType.Text;
                objSql.CommandText = "INSERT
    ...
    See more | Go to post
    Last edited by tlhintoq; Sep 8 '09, 10:41 AM. Reason: [CODE] ... your code here ... [/CODE] tags added

  • Reading multiple tables from database through datareader

    Hi dear fellows...i am a newbie in C# and practicing it hardly to learn it.

    Actually i am reading a table from data base through data reader and displaying it in the gridview and i am doing well the problem i want to read and display 2 tables at a time in the same grid view.

    Here is my Code in the class DBHandler.

    Code:
    public class DBHandler
    {
    
    private const String ConnectionString = @"initial
    ...
    See more | Go to post
    Last edited by tlhintoq; Sep 8 '09, 07:34 AM. Reason: [CODE] ... your code here ... [/CODE] tags added

  • How to show data in the data gridview by using data source.

    Hi everybody...

    I want to show data in the data gridview placed in my form after getting data from my data access layer class through a class...

    Here is my code in the data access layer class.
    Code:
    public class DBHandler
        {
            public List<Programs> GetAllPrograms()
            {
    
                SqlConnection con = new SqlConnection("Data source=ALIEN/SQLEXPRESS;Database=FinalProjectDB;Integrated
    ...
    See more | Go to post
    Last edited by PRR; Sep 7 '09, 07:10 AM. Reason: Added code tags. Please post code in [Code] [/Code] tags

  • Ok I will include Exception Handling in it... Thanks for comments...
    See more | Go to post

    Leave a comment:


  • Hi Gary thanks for your response but now i have tried another trick with the code now my code look like that.

    Code:
    public class DBHandler
        {
    
            private const String ConnectionString = @"initial catalog=FinalProjectDB;Data Source=ALIEN\SQLEXPRESS;integrated Security=true;";
          
         
            public void GetAllValues(Person V)
            {
    
                SqlConnection
    ...
    See more | Go to post
    Last edited by tlhintoq; Sep 6 '09, 11:09 AM. Reason: [CODE] ... your code here ... [/CODE] tags added

    Leave a comment:


  • Help on Error "Object reference not set to an instance of an object."

    Hi everybody actually i was trying to insert some records in to SQL server through C# Wndows Aplication and during that i face an error "Object reference not set to an instance of an object." and need help from senors please explain me about it and also indicate it in my code.

    Here is my code in my Class Named DBHandler!!!

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    ...
    See more | Go to post
    Last edited by tlhintoq; Sep 5 '09, 11:20 AM. Reason: [CODE] ... your code here ... [/CODE] tags added
No activity results to display
Show More
Working...