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.07 seconds.

  1. Replies
    2
    Views
    23,579

    Re: Ensure that MessageBox is ALWAYS on Top

    Hi,

    Use can use the old VB6 style Msgbox. try

    MsgBox("Always on Top!", MsgBoxStyle.SystemModal, "On Top")

    SystemModal keeps it on top.

    Curt
  2. 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
  3. Replies
    3
    Views
    6,837

    Re: English to Pig Latin translator

    try this



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

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

    by curt_c
    Replies
    8
    Views
    2,078

    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
    {
  6. Replies
    9
    Views
    2,944

    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...
  7. Replies
    9
    Views
    2,944

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

    by curt_c
    Replies
    4
    Views
    1,078

    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...
  9. 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
  10. Replies
    1
    Views
    739

    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...
  11. Replies
    3
    Views
    4,050

    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
    ...
  12. Replies
    3
    Views
    4,050

    Re: Get list of connected printers

    Hi

    try this



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

    //
  13. Replies
    5
    Views
    889

    Re: Unable to open new form

    Try




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

    Re: Allowing only number in the textbox

    Hi

    Check out this link

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

    Curt
  15. 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
  16. 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...
  17. 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
  18. 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...
  19. 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 =...
  20. Replies
    3
    Views
    5,589

    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
  21. 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
  22. 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
  23. Replies
    3
    Views
    8,354

    Re: CopyFile in VB.net

    Hi,

    try using the File Class




    Imports System.IO.File
  24. Replies
    3
    Views
    10,765

    Re: Contour Chart C#

    Take a look at National Instruments Measurement Studio

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

    Curt
  25. Replies
    4
    Views
    1,037

    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...
Results 1 to 25 of 67
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured