User Profile

Collapse

Profile Sidebar

Collapse
KodeKrazy
KodeKrazy
Last Activity: Nov 20 '08, 01:43 PM
Joined: Mar 17 '08
Location: West Palm Beach
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • RESOLVED! Many Thanks!
    See more | Go to post

    Leave a comment:


  • VS2008 VB.NET - Problem with System.Diagnostics.Process.Start

    I can use System.Diagnost ics.Process.Sta rt to launch .txt, .bmp, .jpg, etc., but if I try to launch an .exe, from the same folder, I get the "The system cannot find the file specified." error.

    For example:
    This works: System.Diagnost ics.Process.Sta rt("C:\swr\test .txt")

    This does NOT: System.Diagnost ics.Process.Sta rt("C:\swr\engi ne.exe")

    Any help is greatly appreciated!...
    See more | Go to post

  • KodeKrazy
    replied to VB.NET 3.5 Problem With LINQ to SQL
    in .NET
    It's very peculiar. I thought maybe I had the SQL Data Class built wrong but I can place EXACTLY the same LINQ statement 5 lines down, inside another For Next loop and it does not give me the error. I have tried renaming it (on both instances) everything from a single letter to dbMonkeys, it works no matter what in the other loop, but not the first one.

    I even tried closing VS2008 and reopening the project. Not sure what to try...
    See more | Go to post

    Leave a comment:


  • KodeKrazy
    replied to Tell if lock screen is up!
    in .NET
    Try this. You may have to tweak it a bit as I converted it to .NET from some old VB6 snippet I used previously in an app that required it. Also, you may get an error on the "Switch Screen" part, if you do, it means the desktop is locked.

    KK

    Code:
    Public Class Form1
    Inherits System.Windows.Forms.Form
    Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles
    ...
    See more | Go to post

    Leave a comment:


  • KodeKrazy
    replied to tooltip on listbox
    in .NET
    Drop a "ToolTip" component on to your form, view the properties of your ListBox control, and all of the Tool Tip properties are accessible. To set the message at RunTime: Me.ListBox1.Too lTip1.Text = (Whatever you want your Tool Tip to display when the user mouses over the control)

    KK
    See more | Go to post

    Leave a comment:


  • KodeKrazy
    started a topic VB.NET 3.5 Problem With LINQ to SQL
    in .NET

    VB.NET 3.5 Problem With LINQ to SQL

    Can any one explain to me why I am getting the error "UGroup is not declared." on the attached bit of code? I have hundreds of similarly formatted methods that work perfectly! Thanks in advance!

    KK

    Code:
            
            Dim linqUsers As New linqUserDataDataContext
            Dim UGroups = From UG In linqUsers.Users Select UG.UserGroupID, UG.Description
    
            For Each UGroup In UGroups
    ...
    See more | Go to post
    Last edited by KodeKrazy; Aug 13 '08, 02:54 PM. Reason: Clarification

  • KodeKrazy
    started a topic Acessing forms dynamically
    in .NET

    Acessing forms dynamically

    Not sure exactly what I should be asking other than is there a way to get the code below (with modifications) to work. What I want to be able to do is to pass the name of the Form and the name of the ComboBox control to the Sub and have it add the "default" text at the top of the DD List based on which tool the user is currently using. Subsequently it will add the rest of the values from the database to the list.

    Any help...
    See more | Go to post

  • VB-APP: LINQ to SQL class, IBindingListView properties and AutoFiltering DGV columns

    Code:
    Public Sub fillItemSearch()
            Dim ProdDBfill As New linqFillItemSearchDataContext
            frmSearchItems.dgvSearchItems.DataSource = ProdDBfill.fillItemSearchDGV.ToList
        End Sub
    I have a LINQ to SQL class called linqFillItemSea rch. On the SQL Server 2005 there is an sp called fillItemSearchD GV which simply creates a View containing the columns that are needed to populate the dgv. The dgv is bound @ design...
    See more | Go to post

  • KodeKrazy
    started a topic Moved to .NET

    Moved to .NET

    This post relocated to .NET forum
    See more | Go to post
    Last edited by KodeKrazy; May 15 '08, 07:00 PM. Reason: Relocating to .NET forum

  • AutoCAD 2009 uses the Ribbon in a "Vertical" mode. (See http://www.blog.cadnau seam.com/2008/03/06/autocad-2009-the-prequel-part-11-docked-vertical-ribbon/)

    Is there a property that can be set to do this, or do I need to create a User Control to do this?

    KK
    See more | Go to post

    Leave a comment:


  • KodeKrazy
    started a topic Office 2007 Ribbon Control in VB App

    Office 2007 Ribbon Control in VB App

    Is it possible to set the orientation of the Ribbon Control to "Vertical" so that the bar goes down the side of the form, instead of across the top? What is the property name to accomplish this?

    KK
    See more | Go to post

  • KodeKrazy
    replied to Explicit Data Typing
    Still getting the error, still don't know why...
    See more | Go to post

    Leave a comment:


  • KodeKrazy
    replied to Explicit Data Typing
    Not sure why it is putting all the space in the word "Value" but it's not there in my code. Just an FYI... kk...
    See more | Go to post

    Leave a comment:


  • KodeKrazy
    replied to Explicit Data Typing
    Code:
    Option Infer On
    Option Strict On
    
    Imports System.Collections.Generic
    Imports System.Data
    Imports System.Data.Linq
    Imports System.Data.Linq.Mapping
    Imports System.Data.Linq.SqlClient
    Imports System.IO
    Imports System.Linq
    Imports System.Linq.Expressions
    Imports System.Reflection
    
    Public Class clsLINQ_Procs
      Private DB As CatDataClassesDataContext
    ...
    See more | Go to post

    Leave a comment:


  • KodeKrazy
    started a topic Explicit Data Typing

    Explicit Data Typing

    When I try to use LINQ to SQL, I get the following error:

    "Data type(s) of the type parameter(s) in method 'Public Sub InsertAllOnSubm it(Of TSubEntity As TEntity)(entiti es As System.Collecti ons.Generic.IEn umerable(Of TSubEntity))' cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error."

    Where do I need to specify the data types explicitly? In my
    Code:
    DB.Items.
    ...
    See more | Go to post

  • First: NOTHING is "Automatic" when programming. You have to define virtually everything, hence the name "Programmin g". <GRIN>

    Second: Have you tried using the My.Computer.Fil eSystem object. It contains all of the functionality you will need to accomplish the task @ hand...

    Alternatively, you could have the application set a registry key (it may already do this) containing the path to itself,...
    See more | Go to post

    Leave a comment:


  • KodeKrazy
    started a topic CSV to DGV to SQL

    CSV to DGV to SQL

    I have an app that reads a CSV file (catalog), extrapolates the available data, and then writes it to a DataGridView (unbound) so that the user may add/edit some of the missing/erroneous values prior to posting it to the SQL DB (existing table). After doing some research, I find that I probably should have written the data to a DataSet/DataTable before populating the DGV with the data. HOWEVER, I have already written several hundred lines of code...
    See more | Go to post

  • KodeKrazy
    started a topic Single Class or Several Small Classes?

    Single Class or Several Small Classes?

    I would like to get the opinions of the members of this forum on whether you think it is better to write a single class with all the functions, declarations, etc. or do you consider it better form to group similar functions/subs into smaller classes? Why? What are the advantages/disadvantages of both methods?
    See more | Go to post

  • KodeKrazy
    replied to Microsoft.Office.Interop.Excel Help
    One thing I noticed while debugging was that the EXCEL application was still running (according to Task Manager) until I stopped debugging. Is this normal behavior? Is there a way to make excel exit, to save system overhead, before the program exits completely? I thought that was handled by the Application.Qui t method? Do I need to set it to Null or Nothing?

    BTW & FTR - TSDN or Bytes or whatever we are calling it is the best...
    See more | Go to post

    Leave a comment:


  • KodeKrazy
    replied to Microsoft.Office.Interop.Excel Help
    I finally got it to work!!! Here is the VB code:

    Code:
           Try
                Dim exl As New Microsoft.Office.Interop.Excel.Application
    
                Dim xlwb As Microsoft.Office.Interop.Excel.Workbook
    
                xlwb = exl.Workbooks.Open("C:\...\WHOLESALEpl.xls")
    
                exl.Cells.Replace(",", "-", 2, 1, False, False, False)
                exl.DefaultSaveFormat
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...