Showing results 1 to 25 of 500
Search took 0.07 seconds.
Search: Posts Made By: Gruff
Forum: .NET General 07-17-2015, 09:23 AM
Replies: 5
Views: 1,066
Posted By Gruff
In programming it is possible to set a variable...

In programming it is possible to set a variable to itself plus another variable.

Dim A as integer = 2
Dim B as integer = 3
A = A + B
' A will now hold the value 5.
' You can shorten this in...
Forum: .NET Office Automation 07-02-2015, 09:27 AM
Replies: 1
Views: 2,811
Posted By Gruff
Typically you would use Microsoft Automation from...

Typically you would use Microsoft Automation from VB.NET to open your Word template file, run your VBA macro, and collect your variable data through the Word API.

Personally I would move the VBA...
Forum: Interface and Graphics 06-24-2015, 02:39 PM
Replies: 8
Views: 2,058
Posted By Gruff
Nice to see you again HDC! If you get...

Nice to see you again HDC!

If you get really extreme you would also need to check for irregular shaped cavities inside individual parts and try to nest more parts in those spaces.
This wrinkle...
Forum: Interface and Graphics 06-19-2015, 10:08 AM
Replies: 8
Views: 2,058
Posted By Gruff
If those are the only shapes you will be using...

If those are the only shapes you will be using then it becomes more manageable.

Circles laid out orthagonally take the same space as a square. A square is the same as a rectangle. So given that...
Forum: Interface and Graphics 06-18-2015, 04:20 PM
Replies: 8
Views: 2,058
Posted By Gruff
What you are describing is known as nesting...

What you are describing is known as nesting software. If the shapes can be anything then it becomes massively complex. It has to solve for every possible arrangement with all possible rotations of...
Forum: General 06-17-2015, 03:35 PM
Replies: 9
Views: 1,815
Posted By Gruff
If there is no slash the the split() function...

If there is no slash the the split() function will only return an an array of strings with one element. (The entire original string.) Therefore only Segs(0) exists. There is no Segs(1). So the...
Forum: .NET File I/O and Registry 05-12-2015, 09:15 AM
Replies: 2
Views: 10,081
Posted By Gruff
The arguments for the substring() method as you...

The arguments for the substring() method as you are using it are:

Substring(<Start Position>,<Length of Substring>)

Your calculated Length parameter is a negative number at some point.

Put...
Forum: .NET Installation / Documentation 04-29-2015, 09:10 AM
Replies: 2
Views: 3,711
Posted By Gruff
Here is a link...

Here is a link (http://www.xtremevbtalk.com/showthread.php?t=327388&highlight=Access) to dealing with 32 bit / 64 bit Office and database drivers.
Forum: .NET Interface and Graphics 04-24-2015, 04:00 PM
Replies: 3
Views: 2,339
Posted By Gruff
My take on it is that you cannot trust sizes in...

My take on it is that you cannot trust sizes in the form_load event as graphics have not been generated at that point.

In vb6 I used to use a timer control set for a couple of seconds after...
Forum: API 04-24-2015, 08:46 AM
Replies: 1
Views: 2,727
Posted By Gruff
1) You cannot just copy dll files around freely. ...

1) You cannot just copy dll files around freely. They have to be registered on the target PC. What you use to register them depends on the target operating system.

2) vba6.dll looks to be a part...
Forum: .NET General 04-20-2015, 03:37 PM
Replies: 4
Views: 868
Posted By Gruff
Okay, here is an example that shows...

Okay,

here is an example that shows estimated time till completion
It uses the Microsoft.VisualBasic.FileIO namespace

https://msdn.microsoft.com/en-us/library/cc165446.aspx

It is a C#...
Forum: .NET General 04-20-2015, 08:50 AM
Replies: 4
Views: 868
Posted By Gruff
Not to avoid the question, but have you thought...

Not to avoid the question, but have you thought about just using a batch file and driving it from a desktop icon?

Not all solutions are programming ones.
Forum: File I/O and Registry 04-16-2015, 04:32 PM
Replies: 1
Views: 3,220
Posted By Gruff
??? You can have it do whatever you like as...

???

You can have it do whatever you like as you are in complete control of the process.
Forum: General 04-16-2015, 02:43 PM
Replies: 4
Views: 787
Posted By Gruff
Doubt all you want it can do it. Inheritance is...

Doubt all you want it can do it. Inheritance is easy in VB.NET
Here is all it takes to create an inherited textbox control

Note we are adding new properties that show up in the properties window...
Forum: Word, PowerPoint, Outlook, and Other Office Products 04-16-2015, 08:22 AM
Replies: 1
Views: 2,236
Posted By Gruff
Did you register the control on the target PC? ...

Did you register the control on the target PC?

Did you install AutoCAd as 64 bit?

64 bit AutoCad runs VBA7 (A 64 bit VBA)
I could see it having troubles with 32 bit control.
Forum: General 04-15-2015, 10:16 AM
Replies: 4
Views: 787
Posted By Gruff
Personally I'd recommend moving to the free...

Personally I'd recommend moving to the free VB.NET 2013 CE (Community edition)
You can inherit and alter just about anything including forms.
Forum: Excel 04-13-2015, 03:03 PM
Replies: 3
Views: 869
Posted By Gruff
Not easy for a beginner. There needs to be a...

Not easy for a beginner.

There needs to be a lot going on.

I would assume you could either buy something that would fill the bill quickly or find it for free.
Forum: General 04-08-2015, 07:53 AM
Replies: 11
Views: 1,939
Posted By Gruff
Private Sub cmdClearAll_Click() Dim i As...

Private Sub cmdClearAll_Click()
Dim i As Integer
For i = 0 To 2
lstItems(i).ListIndex = -1
Next i
listItems(1).listindex = 2 ' <----
cmdClearAll.SetFocus
End Sub
Forum: General 04-07-2015, 09:35 AM
Replies: 11
Views: 1,939
Posted By Gruff
I guess I am a little confused. If you want...

I guess I am a little confused.

If you want to make changes depending on which control has focus then you would use the GotFocus() and Lost(Focus) events.

Here is an example the does just...
Forum: General 04-06-2015, 01:08 PM
Replies: 11
Views: 1,939
Posted By Gruff
Circe, Here is an example of using an...

Circe,

Here is an example of using an mshflexgrid control so it looks like a listbox and blinks the selected item. The color of the selected item is the standard blue background with white text....
Forum: General 04-05-2015, 09:59 AM
Replies: 11
Views: 1,939
Posted By Gruff
The standard listbox cannot change colors for...

The standard listbox cannot change colors for individual items.
It is the whole control or nothing.

Personally as a user I hate blinking items on the screen. Way too distracting.

If you must...
Forum: File I/O and Registry 04-05-2015, 03:52 AM
Replies: 3
Views: 2,218
Posted By Gruff
Mike, Context is everything. You are not saying...

Mike, Context is everything. You are not saying what the conditions are for the file.

1) Is it a configuration file for your program?
2) Is it a data file your program consumes?
3) Is your...
Forum: Excel 04-03-2015, 02:30 PM
Replies: 16
Views: 1,162
Posted By Gruff
Nothing stopping you from creating your own...

Nothing stopping you from creating your own equivalent constants.
(And yes you have to do this when you do not have a reference to an Excel version)

' Form1 form level constants and variables
...
Forum: .NET File I/O and Registry 03-30-2015, 04:06 PM
Replies: 4
Views: 3,952
Posted By Gruff
Circe, Yes it is way too late to dig up this...

Circe,

Yes it is way too late to dig up this old post.
Never dig them up.

I seriously doubt if jpdiazg or MKoslof are active on this form anymore so your talking to the wind.

The forum...
Forum: Excel 03-30-2015, 08:38 AM
Replies: 16
Views: 1,162
Posted By Gruff
Kiwimenthe, As long as a version of Excel is...

Kiwimenthe,

As long as a version of Excel is on the target computer you can connect to it
by using CreateObject() at run-time instead of making a reference at design time.
The object created...
Showing results 1 to 25 of 500

 
Forum Jump
Advertisement:



Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe