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

Search:

Type: Posts; User: curt_c

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds; generated 56 minute(s) ago.

  1. Re: DataType set to System.String but get error stating System.Int32

    Hi,

    Several of the members of the DateTime structure are Int32 datatypes.
    Look into varDate as the source of your problem

    Curt
  2. Replies
    3
    Views
    1,548

    Re: English to Pig Latin translator

    try this



    if (letterPos == -1)
    {
    pigLatin = pigLatin + " " + restOfWord + firstLetter + "ay";
    }
    else
    {
  3. Replies
    1
    Views
    435

    Re: How to extract on screen data.

    Hi,

    I'm not sure if this applies. Just load the data into an array and copy to a range in excel




    Imports Microsoft.Office.Interop

    Public Class Form1
  4. Thread: Radiobuttons

    by curt_c
    Replies
    8
    Views
    693

    Re: Radiobuttons

    Hi,

    You could use arrays of controls. Try something like this.

    Add 2 labels to a form then do this....



    public partial class Form1 : Form
    {
  5. Replies
    9
    Views
    987

    Re: How to check which button was pressed

    This is probably a better way to test which object is the sender rather than ==

    if (object.ReferenceEquals(sender, button6 ) )
    MessageBox.Show (sender.ToString());
    else if...
  6. Replies
    9
    Views
    987

    Re: How to check which button was pressed

    Hi

    try this

    in the form designer set the click event for both buttons to the same function; in this case 'button_Click'


    this.button6.Location = new System.Drawing.Point(243, 85);
    ...
  7. Thread: Combo Boxes

    by curt_c
    Replies
    4
    Views
    681

    Re: Combo Boxes

    Hi,

    This worked for me. What event are you using?




    Private Sub CmbTruckTyp_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
  8. Re: How Can I create a TextBox with digit grouping option

    Hi,

    Just use a NumericUpDown control and set the 'ThousandsSeparator' property to true

    Curt
  9. Replies
    1
    Views
    423

    Re: Writing into Excel VBA from Dot net code

    Hi,

    I'm not sure if this is what you're looking for. If you just want run a macro in a saved wookbook try this...




    Dim ExcelApp As Excel.Application
    Dim MySheet As...
  10. Replies
    3
    Views
    1,155

    Re: Get list of connected printers

    Hi,

    After posting this I realised this would just give you a list of installed printers.

    try this

    http://www.codeproject.com/Articles/6069/How-to-Check-if-your-Printer-is-Connected-using-C
    ...
  11. Replies
    3
    Views
    1,155

    Re: Get list of connected printers

    Hi

    try this



    using System.Drawing.Printing;
    using System.Diagnostics;

    //
  12. Replies
    5
    Views
    321

    Re: Unable to open new form

    Try




    static class Program
    {
    /// <summary>
    /// The main entry point for the application.
    /// </summary>
  13. Replies
    6
    Views
    318

    Re: Allowing only number in the textbox

    Hi

    Check out this link

    http://www.vb-helper.com/howto_net_allow_only_digits.html

    Curt
  14. Re: How to check if a file is in use by other App in C#?

    Hi,

    Try this link


    http://social.msdn.microsoft.com/Forums/en/netfxbcl/thread/dead0507-06f5-43e0-9250-a78437956bc8

    Curt
  15. Re: Create Button In VB.NET Programmatically And Save It as Permanence

    Hi,

    How many buttons are you creating on your form? if there's any delay it's probably from reading the database and not form creating the controls

    Why don't you just use 2 variables to locate...
  16. Re: Create Button In VB.NET Programmatically And Save It as Permanence

    Is this what you're looking for?




    Public Class Form1


    Private myButton As Button
  17. Re: how to hide any dotnet exe is hide into taskmanager in windows 7 using vb.net?

    Hi,

    Set the 'ShowInTaskBar' property of your main form to False.

    This will prevent the application from showing up in the
    'Applications' tab in Task Manager.

    If you want to prevent it from...
  18. Re: [Code proposal] Convert byte array in ASCII to int

    Hi,

    You can use the Convert Class and the BitConverter classes



    int checkVal;

    checkVal = Convert.ToInt16(String.Format("{0:F0}", pageByte), 16) ; //base 16
    checkVal =...
  19. Replies
    3
    Views
    1,331

    Re: MDI Container + External Application?

    hi

    Use the SetParent function in the Win32 api

    or

    System.Windows.Forms.Form.Parent in .NET


    http://msdn.microsoft.com/en-us/library/Aa302340
  20. Re: How to make 3rd party Application's GUI Framework lie within the GUIFramework of

    Hi,

    try this

    http://www.vb-helper.com/howto_shell_in_mdi.html


    Curt
  21. Re: What is equivalent property of Window.document in vb.net?

    Hi,

    Are you refering to VBA?
    Or maybe you had a reference to the Word com object.

    vba ex:



    ActiveWindow.Document.Close
  22. Replies
    3
    Views
    3,046

    Re: CopyFile in VB.net

    Hi,

    try using the File Class




    Imports System.IO.File
  23. Replies
    3
    Views
    2,924

    Re: Contour Chart C#

    Take a look at National Instruments Measurement Studio

    http://www.ni.com/mstudio/gallery/19.htm

    Curt
  24. Replies
    4
    Views
    557

    Re: Creating a document using C#

    Hi,

    These examples are in VB, but it shouldn't be difficult to adapt the code to C#. I've always found it easier to create template files to work with rather than creating a new report file each...
  25. Re: Read values from a excel cell with addin formula using Excel automation

    Hi,

    You're trying to convert a range to a double.

    try this




    readRange = theWorksheet.get_Range("C1", "C1");
Results 1 to 25 of 66
Page 1 of 3 1 2 3


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center