Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Arunkumar Koloth

@Arunkumar Koloth
About
Posts
43
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Javascript Regex validation
    A Arunkumar Koloth

    Hello, My input is something like V1V2-V3-S-V4-F1 And I need to validate the given value contain any of V1 to V9 or F1 to F9 and S. eg: if user input V20V30-V12-S10-V20-F10 I have to show a error because only 1-9 is allowed. eg2: if user input R1R2-R3-S-R5-T6 I have to show a error because only V,S,F allowed And it is not mandatory to enter V/F but S is mandatory. I think it is clear now.

    JavaScript regex javascript help question

  • Javascript Regex validation
    A Arunkumar Koloth

    Hello, I am using regex to validate some patterns in javascript My pattern is

    [VF][0-9]

    And required output is V1-V9 , F1-F9 in any order (eg:V1,V3,V2,F1,F5,F3) OR (eg: F1,F5,F3,V1,V3,V2) But it is not working can any one help me? Thanks and regards.

    JavaScript regex javascript help question

  • what is the configuration for a video sharing site?
    A Arunkumar Koloth

    can anyone tell me what is configuration for a video sharing site like you tube? Best regards.

    Arunkumar

    Hosting and Servers question workspace

  • Access to the path is denied
    A Arunkumar Koloth

    Thanks for your replay. can you explain your answer for better understanding?

    Thanks in advance.

    C# help

  • Access to the path is denied
    A Arunkumar Koloth

    Any one? Please help me. :confused::confused::confused::confused:

    Thanks in advance.

    C# help

  • Access to the path is denied
    A Arunkumar Koloth

    Hi thanks for the replay I found what is happening here

    Download(textBox1.Text, @"D:\test\test.zip");

    i have to tell destination file name and its extention!!!. now my problem is when i download larger files (50 mb ) from my server it is not downloading the file. i thing the problem is here.

    byte[] inBuf = new byte[100000];

    I thing the array is small so how can i manage it? Please help me to do this...

    Thanks in advance...

    C# help

  • Access to the path is denied
    A Arunkumar Koloth

    Hi dybs, That is a empty folder and there is no way to use the file by any other program. Please help me. Best regards,

    Thanks in advance

    C# help

  • Access to the path is denied
    A Arunkumar Koloth

    Dave Kreskowiak Thanks for your replay this is the line exception occur.

    FileStream fstr = new FileStream(strFileSaveFileandPath, FileMode.OpenOrCreate, FileAccess.Write);

    Please help me.

    Thanks in advance

    C# help

  • Access to the path is denied
    A Arunkumar Koloth

    Hello everyone This is a program for downloading a file from a url when i download a file i got a error like access to the path is denined can any one tell me why this happen This is my code.

        public static void Download(String strURLFileandPath, String strFileSaveFileandPath)
        {
            HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(strURLFileandPath);
            HttpWebResponse ws = (HttpWebResponse)wr.GetResponse();
            Stream str = ws.GetResponseStream();
            byte\[\] inBuf = new byte\[100000\];
            int bytesToRead = (int)inBuf.Length;
            int bytesRead = 0;
            while (bytesToRead > 0)
            {
                int n = str.Read(inBuf, bytesRead, bytesToRead);
                if (n == 0)
                    break;
                bytesRead += n;
                bytesToRead -= n;
            }
            try
            {
                
                FileStream fstr = new FileStream(strFileSaveFileandPath, FileMode.OpenOrCreate, FileAccess.Write);
                fstr.Write(inBuf, 0, bytesRead);
                str.Close();
                fstr.Close();
            }
            catch (Exception e) {
                MessageBox.Show(e.Message);
            }
            
        }
    
    
    
        private void button2\_Click(object sender, EventArgs e)
        {
            if (phpurl.Text == "") {
                MessageBox.Show("Invalid Url");
            }
            else if (Uri.IsWellFormedUriString(phpurl.Text, UriKind.Absolute) == false)
            {
                MessageBox.Show("Invalid Url");
            }
            else {
                Download(phpurl.Text, @"D:\\test");
            }
    
            
        } 
    

    Also this is my manifest file

    C# help

  • How to Format a string in c#
    A Arunkumar Koloth

    Thanks For the link Marcus_2

    C# help question csharp tutorial

  • How to Format a string in c#
    A Arunkumar Koloth

    Marcus_2, My project is in MySQL server so i thing it is required.. suggest me if you have any other great idea. :-O Thank you Arunkumar

    C# help question csharp tutorial

  • How to Format a string in c#
    A Arunkumar Koloth

    André Kraak,ProEnggSoft Thank you for your answer and it's works! OriginalGriff, the employee code is stored in the database and it just a field for naming(like a roll no) a employee. i have a id filed for managing employees. when admin add a employee program fetch last inserted employee code. i writed a program for increasing the count. Thanks,

    Arunkumar.t

    C# help question csharp tutorial

  • How to Format a string in c#
    A Arunkumar Koloth

    hai everyone , My problem is i have a employee code like EMPLOYEE i would like to change this to EMPLOYEE000001,EMPLOYEE000002 this format. How can i do this? with c# please help me :(( Arunkumar

    Arunkumar

    C# help question csharp tutorial

  • Php Sessions
    A Arunkumar Koloth

    You can also store sessions to database it is a good way to manage user sessions.

    Arunkumar

    Linux, Apache, MySQL, PHP question php help

  • Suggestion to do a multilanguage project
    A Arunkumar Koloth

    Hai, Everyone I developed a application for entering datas for a company now i want to add multilingual support for the application,i readed about the Form localization but it is not a practical way. Iam Planning to take translations from my database table. in future admin can add more languages. My Application have a login form. i created a combobox there named language. when a my application start the login page will display. my problem is how can i change language for all form eg:(when a user change combox index i need to change all form's language) I thing you understand what is my problem is. Can anyone Please Help me To Do it?

    Arunkumar.T

    C# question database help

  • Please Help me
    A Arunkumar Koloth

    Thanks it works

    C# csharp database help question

  • Please Help me
    A Arunkumar Koloth

    Hai again this is my class code

    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Data.SQLite;

    namespace sample
    {
    class translation
    {

        private SQLiteConnection sql\_con;
        private SQLiteCommand sql\_cmd;
        private SQLiteDataAdapter DB;
        private SQLiteDataReader dr;
    
        public void LoadTranslations(int languagecode)
        {
            string\[\] TextinTranslatedArray = new string\[200\];
            string\[\] TextinEnglishArray = new string\[\] { "Admin","User","ZHome","UserName"};
    
            for (int i = 0; i < TextinEnglishArray.Length; i++)
            {
                string sql;
                sql = "SELECT f\_text\_translated FROM t01\_text\_translation WHERE f\_text\_english='" + TextinEnglishArray\[i\] + "'AND f\_language\_code='" + languagecode + "'";
                sql\_cmd = sql\_con.CreateCommand();
                sql\_cmd.CommandText = sql;
                dr=sql\_cmd.ExecuteReader();
                TextinTranslatedArray\[i\] = dr.GetValue(0).ToString();
            }
    
            sql\_con.Close();
        }
         private void SetConnection()
        {
            sql\_con = new SQLiteConnection("Data Source=DATA.sl3;Version=3;New=False;Compress=True;");
        }
    
    
    }
    

    }

    AND WHEN I CREATE A OBJECT FOR THIS CLASS IN MY FORM I GOT SOME ERROR

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;

    namespace sample
    {
    class tr=new translation();
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }

        private void Form1\_Load(object sender, EventArgs e)
        {
    
        }
    }
    

    }

    Error is :- Error 3 { expected C:\Users\arun\Documents\Visual Studio 2005\Projects\sample\sample\Form1.cs 11 13 sample Error 4 Invalid token '=' in class, struct, or interface member declaration C:\Users\arun\Documents\Visual Studio 2005\Projects\sample\sample\Form1.cs 11 13 sample Error 5 Class, struct, or interface method must have a return type C:\Users\arun\Documents\Visual Studio 2005\Projects\sample\sample\Form1.cs 11 18 sample Error 6 } expected C:\Users\arun\Documents\Visual Studio 2005\Projects\sample\sample\Form1.cs 24 2 sample What is this error? Please Help me Arunkumar.T

    C# csharp database help question

  • Please Help me
    A Arunkumar Koloth

    Hai thank you for your answers guys i am trying to make a windows application in c#. this is my database table structure f_textinenglish,f_language_code,f_texttranslated welcome 101 welcome welcome 102 bienvenida welcome 103 welkom i have a combo box in first form when a user change language there all all labels and all forms change to the selected language. i writed program for getting translated text for each control in the form1. my question is where should i put this code for getting tranlation globally(means all form and all controls)? i thing you understand what is my problem . Please Help Me. Thank you Arunkumar.T

    C# csharp database help question

  • Please Help me
    A Arunkumar Koloth

    Hai, friends Iam new to develop a application with multiple language in c#. i writed program for getting translated texts from database. and i put it in the form1's code event but it work only for the form1 i would like to get my translation to all my form my application have and each and every message showing in message box. so where should i put this translation code? in the program.cs page? can anyone Help me by a small exmple? Please Help me :( Arunkumar.T

    C# csharp database help question

  • Error please help
    A Arunkumar Koloth

    Thankyou for your replay iam trying to create a library of combobox the code shown above is the class1.cs file. of-course there are no other file in my project. Thank you Arunkumar.T

    C# help database graphics
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups