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.

  1. Replies
    3
    Views
    361

    Re: English to Pig Latin translator

    try this



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

    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
  3. Thread: Radiobuttons

    by curt_c
    Replies
    8
    Views
    427

    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
    {
  4. Replies
    9
    Views
    674

    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...
  5. Replies
    9
    Views
    674

    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);
    ...
  6. Thread: Combo Boxes

    by curt_c
    Replies
    4
    Views
    487

    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...
  7. 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
  8. Replies
    1
    Views
    295

    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...
  9. Replies
    3
    Views
    577

    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
    ...
  10. Replies
    3
    Views
    577

    Re: Get list of connected printers

    Hi

    try this



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

    //
  11. Replies
    5
    Views
    250

    Re: Unable to open new form

    Try




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

    Re: Allowing only number in the textbox

    Hi

    Check out this link

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

    Curt
  13. 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
  14. 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...
  15. 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
  16. 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...
  17. 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 =...
  18. Replies
    3
    Views
    773

    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
  19. 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
  20. 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
  21. Replies
    3
    Views
    1,781

    Re: CopyFile in VB.net

    Hi,

    try using the File Class




    Imports System.IO.File
  22. Replies
    3
    Views
    1,861

    Re: Contour Chart C#

    Take a look at National Instruments Measurement Studio

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

    Curt
  23. Replies
    4
    Views
    509

    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...
  24. 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");
  25. Thread: Time Format

    by curt_c
    Replies
    1
    Views
    355

    Re: Time Format

    Hi,

    The problem is midnight is 00:00. There is no 24:00.

    You could use the string replace function if the first 2 characters of the time string = "00"

    Curt
Results 1 to 25 of 65
Page 1 of 3 1 2 3



HTML5 Development Center

Click Here to Expand Forum to Full Width