Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Tron

Page 1 of 21 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: C# Windows Service With Timer Not Sending Data

    So it is only posting once, correct? If so this is because you only started the timer once and it completed its task. So in your timerElapsed() method you need to either reset the existing timer or...
  2. Re: How to access a class instance from different forms

    You can create a second constructor for the Form2 class. Pass Class1 as a parameter into your new constructor.
  3. Replies
    2
    Views
    392

    Re: Advice On Altering a 5 Gig .CSV File Via C#

    Look at System.IO.FileInfo

    You can read the file line by line using:
    System.IO.StreamReader

    You can create a new file line by line using:
    System.IO.StreamWriter
  4. Replies
    2
    Views
    293

    Re: Action while a button is pressed

    Look at the MouseDown and MouseUp events.
  5. Replies
    2
    Views
    422

    Re: c# listbox path issues

    Does this make any difference?

    string MyPath = (string)listBoxAdv1.SelectedValue;
  6. Replies
    1
    Views
    327

    Re: How to Determine the Active Form

    Try the Form Class GotFocus event. You could also try the Form Class ActiveForm property.
  7. Re: Why can I save the error information into the table of SQL server ?

    Try something like this in your SaveMessageErrSQL() method.



    if (objConnect.State != System.Data.ConnectionState.Open)
    {
    objConnect.Open();
    ...
  8. Re: Why can I save the error information into the table of SQL server ?

    The datatype for an image in SQL Server is

    varbinary(max)

    Can you change the DB table schema?
  9. Re: need to retrieve data and convert to int for IF statement

    SqlDataReader has lots of methods. Change GetString() to the method providing the data type you want.
  10. Re: need to retrieve data and convert to int for IF statement

    You can check for a NULL value too.

    string field = reader.IsDBNull(0) ? string.Empty : reader.GetString(0);
  11. Re: Why can I save the error information into the table of SQL server ?

    But I think you are closing the DB before you are writing to the error table.


    ClsConnection.objConnect.Close();
    string sConError = "Save Messager Customer 1: " +...
  12. Re: Why can I save the error information into the table of SQL server ?

    Is your DB Connection closed?
  13. Thread: UserControl re

    by Tron
    Replies
    1
    Views
    439

    Re: UserControl re

    You would want something like BeginUpdate() and EndUpdate() for your control.
  14. Replies
    1
    Views
    989

    Re: xmldoc SelectNodes() problems

    Try something like:


    XmlNode xmlRoot = xmlDoc.DocumentElement;

    XmlNodeList nodes = xmlRoot.SelectNodes("/DosageProposals/Dosage/Structure/UnitTexts/Singular");
  15. Re: First picture repeating in next rows in crystal reports problem what wrong code

    If you want only one image to appear, this should work.



    foreach (DataRow dr in dt.Rows)
    {
    dr["Image"] = imgbyte;
    imgbype = null;
    }
  16. Replies
    8
    Views
    875

    Re: Json data call error

    Check out http://www.tomasvera.com/programming/using-javascriptserializer-to-parse-json-objects/

    The issue must be in your JavaScriptSerializer.
  17. Replies
    8
    Views
    875

    Re: Json data call error

    if ((dict != null) and (dict.data != null))
    {
    foreach (var club in dict.data)
    {
    .....
    }
    }
    else
    {
    ...
  18. Replies
    8
    Views
    875

    Re: Json data call error

    Looks like either "dict" or "dict.data" variable is null.

    Test the value before running your for loop.

    if ((dict != null) and (dict.data != null))
  19. Replies
    1
    Views
    391

    Re: Creating a loop around a checkedbox

    Something like this will read until there is no more data to read.

    If you are looking at toggling on and off the actual read process you'll probably need to fire off a worker thread that checks...
  20. Replies
    0
    Views
    552

    DataContract and WebMessageFormat.Json

    I have endpoint that is returning a list of objects. Within that object is a string data member that happens to hold a string that is already in JSON format. WCF is serializing my object. Because...
  21. Re: Converting C to C# - question about typedef voids

    This thread may help explain structures and PInvoke().

    http://forums.codeguru.com/showthread.php?541025-RESOLVED-Wrapper-from-C-to-C&highlight=Pinvoke

    Can you post a function prototype from one...
  22. Replies
    2
    Views
    525

    Re: how make a button to open an image?

    Check out OpenFileDialog class and PictureBox control:




    OpenFileDialog ofd = new OpenFileDialog();
    ofd.InitialDirectory = ".";
    ofd.Title = "Select Document Image";
    ofd.DefaultExt = "tif";...
  23. Replies
    1
    Views
    461

    Re: Can't add DataRow to DataTable

    Please share the code that updates the columns within the row with data.
  24. Replies
    8
    Views
    2,912

    Re: Wrapper from C++ to C#

    Depending on the members of NET_DVR_VICOLOR, NET_DVR_VILOST_V30 and NET_DVR_HIDEALARM_V30 this line of the structure may be the most tricky.



    public NET_DVR_SHELTER[] struShelter = new...
  25. Replies
    8
    Views
    2,912

    Re: Wrapper from C++ to C#

    I think you may want to change this:


    [DllImport("TruVNetSDK.dll")]
    public static extern bool NET_DVR_GetDVRConfig(int lUserID, uint dwCommand, int lChannel, IntPtr lpOutBuffer, uint...
Results 1 to 25 of 505
Page 1 of 21 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center