User Profile
Collapse
-
RESOLVED! Many Thanks! -
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!... -
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...Leave a comment:
-
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
Leave a comment:
-
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)
KKLeave a comment:
-
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
-
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... -
KodeKrazy started a topic VB-APP: LINQ to SQL class, IBindingListView properties and AutoFiltering DGV columnsin .NETVB-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
-
Moved to .NET
This post relocated 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?
KKLeave a comment:
-
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 -
-
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...Leave a comment:
-
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
Leave a comment:
-
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 myCode:DB.Items.
-
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,...Leave a comment:
-
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... -
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? -
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...Leave a comment:
-
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
Leave a comment:
No activity results to display
Show More
Leave a comment: