Search results for query: *

  • Users: jdy0803
  • Content: Threads
  • Order by date
  1. J

    Called form resize calling form in InitializeComponent() of constructor

    formA calls formB like following. FormB formB = new FormB() formB.ShowDialog() When InitializeComponent() is run in the formB's constructor, formA is shrunk(resized) and become original size when formB_Load() starts. It's really weired. Can anybody give me any idea or advice regarding this...
  2. J

    does not contain a constructor ... error

    The following code is from Microsoft MSDN. public class Employee4 { public string id; public string name; public Employee4() { } public Employee4(string name, string id) { this.name = name; this.id = id...
  3. J

    Writting structure & array in file

    I have a structure and array. I want to write in a file in C#. Here is the C code. How do I do in C#? fp = fopen (filename, "wb"); if (! fp) { return -1; } fwrite (&bfh.bfType, 1, sizeof(BITMAPFILEHEADER), fp); fwrite (&bih.biSize, 1, sizeof(BITMAPINFOHEADER), fp); fwrite (imagearray, 1...
  4. J

    Bitmap generating C code

    I have a C code which create bitmap like this. long SaveBmpFile( LPCTSTR filename, BYTE *ImageBitmap, DWORD BitmapByteCount, long width, long height) { FILE *fp; BITMAPFILEHEADER bfh; BITMAPINFOHEADER bih; DWORD dwBitmapByteCountPerLine; DWORD dwBitmapByteCount; dwBitmapByteCountPerLine =...
  5. J

    Cannot implicitly convert type 'long' to 'uint'

    I comppile this code, error occurs. uint IMGWIDTH = 100; uint BitmapByteCountPerLine; BitmapByteCountPerLine = (IMGWIDTH * 3 + 3) & (~3);<=== Compile Error Cannot implicitly convert type 'long' to 'uint'. An explicit conversion exists (are you missing a...
  6. J

    Refresh label.text in Form_Load

    I made some call in the Form_Load and terminate like this. private void Form1_Load(object sender, EventArgs e) { Label1.Text = "Prepareing..."; SetGain("3"); SetIntegrationTime("500"); SetThresholdLevel("50")...
  7. J

    VB6 exe call C# exe

    My VB6 program should call some device interface program. I should make this device interface program using C#. Once VB6 program call C# execution file, C# program should run on the top most until it terminates. 1. How to make run C# program on the top most? Should it be done in VB6? or C#...
  8. J

    instance method

    What is the difference between instance method and other method? I can't figure out difference.
  9. J

    Windows Forms Application and WPF Application

    What is the major difference between Windows Forms Application and WPF Application?
Back
Top Bottom