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
M

Mbah Dhaim

@Mbah Dhaim
About
Posts
172
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help For "Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on."
    M Mbah Dhaim

    Read from one of my favorite articles by Sacha Barber about threading Beginners Guide To Threading In .NET Part 1 of n[^] Beginners Guide To Threading In .NET Part 2 of n[^] Beginners Guide To Threading In .NET Part 3 of n[^] Beginners Guide To Threading In .NET Part 4 of n[^] Beginners Guide To Threading In .NET Part 5 of n[^] hope it helps

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# com help

  • Error..
    M Mbah Dhaim

    then try to follow this link ORA-01722: invalid number[^] hope it helps

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# help

  • Error..
    M Mbah Dhaim

    that because you dont specify return field name for time in try change your query in "to_char('timein',...) as timein" hope it helps

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# help

  • Digital dashboard using C# or VB and other technologies
    M Mbah Dhaim

    Sciencez wrote:

    1. What technologies do you recommend?

    i'll recommend you to learn how to exchange data using serial port communication

    Sciencez wrote:

    1. Can you provide the source code?

    no i can't

    Sciencez wrote:

    1. Do you have some source code in C# or VB to access a port?

    yes, i have

    Sciencez wrote:

    1. Which platform (i.e. a Windows form or I'net browser application) would you recommend and why?

    windows form, because for me it easy to develop now, what have you done?

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# csharp question algorithms help

  • [Message Deleted]
    M Mbah Dhaim

    this your code

    try
    {
    if (!question.ToUpper().Contains("C#")){
    throw new WrongForumException("You are in wrong forum.");
    }
    if (question.ToUpper().Contains("URGENT")){
    throw new NotYourSlaveException("We are not your slave dud.");
    }
    SomeBodyWillTryToAnswerYourQuestion();
    }
    catch (Exception ex)
    {
    Console.WriteLine("Nice try, but "+ ex.Message +" raised");
    }

    hope it will open your mind.

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C#

  • Error: Unable to cast object of type 'System.DateTime' to type 'System.String'.
    M Mbah Dhaim

    I also had experienced this, so i change the Get[Type]() methods such as GetString(index), GetInt16(index) etc with GetValue(i) or DataReader indexer it self, but it must be checked first if return value is DBNull. In your case replace your code in line that gives error with

    KIDYA wrote:

    strRow += (string)dr.GetString(i); // Gives error here

    if (!Convert.IsDBNull(dr[i]){
    strRow +=dr[i].ToString();
    }

    or

    if (!Convert.IsDBNull(dr.GetValue(i)){
    strRow +=dr.GetValue(i).ToString();
    }

    hope it helps

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# database help

  • SQL Server 2008 in C# Console Appications
    M Mbah Dhaim

    bigjoe11a wrote:

    MyCmd.ExecuteScalar();

    Replace with MyCmd.ExecuteNonQuery(); hope it helps

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# database csharp sql-server sysadmin tutorial

  • Help with client-server application that send images to a client [modified]
    M Mbah Dhaim

    Raquel Barata wrote:

    I need to do an client-server application

    then you need to start code it.

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# sysadmin help

  • a windows application is to call a webservice which will call a stored procedure
    M Mbah Dhaim

    yes it is. 1. create a web service application 2. in a method from your web service call your stored procedure using System.Data.DbCommand inheritance (i.e SqlCommand for SqlServer) by set it's CommandText property with name of your stored procedure, CommandType = CommandType.StoredProcedure and create it's related parameters (see SqlParameter class as sample) 3. Create a windows application (windows form or console) 4. Add Web reference from your web service address to your windows application, usually it will create a class refer to your web service object 5. call the method in step 2 from created web service class in your windows application hope it helps

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# database help

  • Split text file by Fixed Length
    M Mbah Dhaim

    I will try to resume all answers in the following steps 1. Open file that you want to parse 2. Use StreamReader to read the file 3. Read line using StreamReader.ReadLine(); 4. If Step 3 has data, continue to next step, other wise go to step 9 5. from result in above step replace all unnecessary characters with space, in your sample data replace "==" and '=' to space 6. split result from step 5 using method [yourstring].split in your sample use space as split character 7. post result from step 6 to database 8. repeat step 3 until 7 9. close your StreamReader 10. if there are errors occurred after you doing all steps, ask about them to this forum and read correlated documentations you need happy coding... :)

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# tutorial

  • what does this error mean
    M Mbah Dhaim

    have you read yesterday replies? :doh: :doh: :doh:

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# help

  • My Ado.Net code is on a Public Holiday
    M Mbah Dhaim

    Vuyiswa Maseko wrote:

    My Mistake, Thank you.

    you're welcome this day i learn that referenced type will not destroy although its parent destroyed. thank you very much.

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# database csharp sharepoint graphics

  • how do you keep user info in program?
    M Mbah Dhaim

    calendarw wrote:

    are you create a centralize controller for keeping that in static method?

    yes usually i create static class to hold data that will be accessed in other objects, like "session" in webserver

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# question

  • My Ado.Net code is on a Public Holiday
    M Mbah Dhaim

    DataSet is referenced type, as you see in your BLL and PL in finally part you destroy your object (DAL and BLL) : finally {obj = null}, your dataset in PL will be lost reference too. remove finally part of your code. hope it helps

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# database csharp sharepoint graphics

  • My Ado.Net code is on a Public Holiday
    M Mbah Dhaim

    Vuyiswa Maseko wrote:

    if (ds.Tables[0].Rows.Count > 0){

    change that code to if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0){ hope it helps

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# database csharp sharepoint graphics

  • Tramsfer file accross a network
    M Mbah Dhaim

    see this link[^] hope it helps

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# sysadmin question

  • new in this industry
    M Mbah Dhaim

    it means your binding source doesn't have column/property named UserId. hope it helps

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# design docker help

  • Icon in a textbox
    M Mbah Dhaim

    try using your own user control that contains textbox and image control, add event begin and end progress to trigger visibility of your image control hope it helps

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# sysadmin

  • Open form from another form
    M Mbah Dhaim

    in main entry of your application use this

    using (SqlServerForm sqlServerForm = new SqlServerForm())
    {
    if (sqlServerForm.ShowDialog() == DialogResult.OK)
    {
    Application.Run(new frmMain());
    }
    }

    piticcotoc wrote:

    and if selected the appropriate server+database

    set the dialog result of sqlserverform to OK to close the form hope it helps

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# database csharp sql-server sysadmin help

  • Open form from another form
    M Mbah Dhaim

    1. In main entry point use your MainForm in Application.Run(new YourMainForm) 2. In your main form load event call your Sql Server Form Setting with showdialog and verify the settings 3. Close your Sql Server Form Setting. hope it helps

    dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

    C# database csharp sql-server sysadmin help
  • Login

  • Don't have an account? Register

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