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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
C

codeadair

@codeadair
About
Posts
50
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • I can't get latest value by ref parameter. WHY? [modified]
    C codeadair

    No,i can't. i need to do this. i should return the latest data from database if the info already exist. and the info may have different status, i should throw out the hint.

    MSN:msnadair@hotmail.com Skype:skyadair

    C# com design business question

  • I can't get latest value by ref parameter. WHY? [modified]
    C codeadair

    There are two layers in my project. one is business layer,and the other is UI layer. In UI layer, i invoke the method 'SaveInfo' of business layer. by the way ServiceActivator.GetService. But i can't get 'newInfo' in UI layer. and if i remove 'throw ex;' in 'SaveInfo' method. i could get it. i don't know why. do you know? how could i get newInfo if i want to throw Exception to UI layer. pls. ths. 'SaveInfo' in Business layer: public void SaveInfo(ref StudentInfo info,ref List detailList,string strType) { try { ... info = newInfo; detailList = newDetailList; throw new MyException("Information already exist."); ... } catch(Exception ex) { throw ex; } } the invoke code in UI layer: try { ... mMyDs.SaveInfo(ref curInfo,ref curList,"Add"); ... ] catch(MyException mex) { textBox1.text = curInfo.Name; } catch(Exception ex) { }

    MSN:msnadair@hotmail.com Skype:skyadair

    modified on Tuesday, May 12, 2009 8:52 PM

    C# com design business question

  • objOleDbDataAdapter.Fill(objDataSet, tableName); with sybase
    C codeadair

    HI,all. Today, when i want to get data from sybase table. i have puzzled with a strang thing. just like the title. when the program runs to the point, my program dipped into it. the program will not run to the next statement and also with no error threw out. what is wrong? how could i get data from sybase table as i getting from oracle. by the way,i could do insert,update,delete operating in my program.and one thing else,when i use oleDbDataReader to read data from sybase table, another problem happens,when i do "myReader.Close();".the same thing happens,the program will not go to next statement. Here is my part codes: public int LoadDataSetFromSYBASE(string sql, string tableName, ref DataSet objDataSet) { this.sybase_Connect(); int iCount = -1; OleDbDataAdapter objOleDbDataAdapter = new OleDbDataAdapter(sql, this.sybase_con); try { iCount = objOleDbDataAdapter.Fill(objDataSet, tableName); } catch(Exception e) { throw (new Exception("Error in LoadDataSetfromSYBASE method. " + e.Message)); } finally { this.sybase_Disconnect(); } return iCount; } public void LoadDataFromSYBASE(string sql,object obj) { using (OleDbConnection connection = new OleDbConnection(sybase_ConnectionString)) { OleDbCommand command = new OleDbCommand(sql, connection); connection.Open(); OleDbDataReader reader = command.ExecuteReader(); reader.Read(); obj=reader[0]; reader.Close(); } }

    MSN:msnadair@hotmail.com Skype:skyadair

    C# help question database oracle com

  • Module Test
    C codeadair

    Dear all, I want to find a functional Board to test Contact&Contactless Module. The board should have the function as lists: Contact Test Item Open/Short(Diode to GND/Vcc test) Leakage Test(input high current) Leakage Test(input low current) Dynamic current consumption test ATR-Functional test Contactless Test Item Input capacitor test Modulation Voltage Test Functional Test if you could give me some manufactures, i will appreciate you! or if you could give me some websites from which i could find something relate, i will appreciate you too. Above all, Merry Christmas to all of you.

    MSN:msnadair@hotmail.com Skype:skyadair

    The Lounge com

  • Contact/Contactless Module Test
    C codeadair

    Dear all, I want to find a functional Board to test Contact&Contactless Module. The board should have the function as lists: Contact Test Item Open/Short(Diode to GND/Vcc test) Leakage Test(input high current) Leakage Test(input low current) Dynamic current consumption test ATR-Functional test Contactless Test Item Input capacitor test Modulation Voltage Test Functional Test if you could give me some manufactures, i will appreciate you! or if you could give me some websites from which i could find something relate, i will appreciate you too. Above all, Merry Christmas to all of you.

    MSN:msnadair@hotmail.com Skype:skyadair

    Hardware & Devices com

  • Industry Control and Programme
    C codeadair

    I am going to dive into industry control using PC program. And now what i need, i think it is some books suggested from u. Some websites or BBS and heart words maybe Thanks very much!!!! By the way. I am now using VB.NET

    MSN:msnadair@hotmail.com Skype:skyadair

    Visual Basic csharp com

  • Drawing Data Storage Question
    C codeadair

    Hello! Everybody. Connecting series of coordinate data forms Undee graphic. The Problem is how i store these mass data? Write to DB or Text File or else? Could you give me some suggestions? Looking forward to your answer!

    ICQ:258-235-734 MSN:msnadair@hotmail.com

    Visual Basic question database com graphics help

  • Data storage [modified]
    C codeadair

    I get it.Thank you ICQ:258-235-734 MSN:msnadair@hotmail.com

    Visual Basic com question

  • Data storage [modified]
    C codeadair

    i am now storing every dot data item into MS-Access table fields. each dot data stored in each field. So it takes a long time when i am storing these dots. and when i read out the data. i have thought to store those data by string.But it is so much data that i can't find a data type field of Access datatable. ICQ:258-235-734 MSN:msnadair@hotmail.com

    Visual Basic com question

  • Data storage [modified]
    C codeadair

    Hi!Everyone! Connectting millions of dots to a chart. And how will you store these dot data so that i could open the chart again? Best Regards ICQ:258-235-734 MSN:msnadair@hotmail.com -- modified at 3:22 Monday 17th July, 2006

    Visual Basic com question

  • [Message Deleted]
    C codeadair

    All i want to say to these fucking men.It is all of you don't understand the simple love in China. And don't take your bestial love to us. ICQ:258-235-734 MSN:msnadair@hotmail.com

    The Back Room

  • [Message Deleted]
    C codeadair

    [Message Deleted]

    The Back Room

  • [Message Deleted]
    C codeadair

    [Message Deleted]

    The Back Room

  • [Message Deleted]
    C codeadair

    [Message Deleted]

    The Back Room

  • Doing something when I press "Enter" key
    C codeadair

    That's Right ICQ:258-235-734 MSN:msnadair@hotmail.com

    Visual Basic help

  • how to deal with point data?
    C codeadair

    Hello,everybody! Very happy you could read my Question.Thank you very much if you could give some suggestion. Connectting mass points one by one forms an undee chart. I want to redraw the undee chart next time. Must i stroe these point data to database? If i do so,i should read out these mass data from database when i want to redraw the undee chart. I do think it is an assheaded idea. ICQ:258-235-734 MSN:msnadair@hotmail.com

    Visual Basic question database com tutorial

  • Mscomm and draw chart
    C codeadair

    Dave Kreskowiak wrote:

    ScaleTransform doesn't do anything until you draw something. It sets up a transform for any drawing done to the surface after the call the ScaleTransform.

    Yes.I think so. And i have to redraw bitmap if i want to transform the graphic.So bitmap doesn't look very useful this time. ICQ:258-235-734 MSN:msnadair@hotmail.com

    Visual Basic help com debugging question

  • Mscomm and draw chart
    C codeadair

    Dave Kreskowiak wrote:

    Where did the Graphics object (g) come from??

    Graphics object (g) is a form variant.look here: dim bmp as bitmap=new bitmap(800,600) dim g as graphics=graphics.fromimage(bmp) Maybe you could read my another forum question named "graphics.scaletransform() method".it describes the question clearly. Thank you for you reply heartly! ICQ:258-235-734 MSN:msnadair@hotmail.com -- modified at 23:47 Monday 3rd July, 2006

    Visual Basic help com debugging question

  • graphics.scaletranform() method
    C codeadair

    Hello Everyone! I am programming graphic program.i use doublebuffer technology to draw graphic to bitmap object.Using e.Graphics().DrawImage(bmp, 0, 0) to draw bitmap object to panel in panel paint event.It's really good idea.Thanks to Dave Kreskowiak. I do need to zoom in\out the graphic.and i use e.Graphics.ScaleTransform(xscaletran, yscaletran) in panel.paint event to do it.But problem happens.pen size changed too. i think i know something about it.The method graphics.scaletransform just draught\extrude the graphics physically. Do i have to redraw bitmap to zoom in\out the graphic? Thanks for all replies! Best regards! ICQ:258-235-734 MSN:msnadair@hotmail.com

    Visual Basic graphics com help question

  • Mscomm and draw chart
    C codeadair

    Dave Kreskowiak wrote:

    Draw to a Bitmap object that same size as the panel. Set the BackgroundImage property of the panel to the Bitmap. now, when you draw on the Bitmap, just call Refresh on the Panel.

    Yes.I just do as you day. But i find a problem.when i use g.ScaleTransform(xscaletran, yscaletran) method.And then refresh the panel:me.panel1.refresh. it will take no effect.why?Have i need to redraw all datas? ICQ:258-235-734 MSN:msnadair@hotmail.com

    Visual Basic help com debugging question
  • Login

  • Don't have an account? Register

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