• Discussions
Select the search type
 
  • Site
  • Web
Search
Login|Register

 

How to integrate SourceSafe with VB 6.0 if it's installed but you can't see the menu

By Blog User on 4/23/2009 1:04 PM

The file: c:\windows\vbaddin.ini must be edited.
 

There, you have to put the following key:

[Add-Ins32]
vbscc=1

 

For more information, visit the next link:

http://social.msdn.microsoft.com/Forums/en-US/vssourcecontrol/thread/ba5dd659-0b14-48ce-b51d-9478693b632b

Comments (0)
Knowledge Base

Add Horizontal ScrollBars to a ListBox

By Blog User on 4/15/2009 12:44 PM
The standard VB listboxes don`t support horizontal Scrollbars, only vertical ones. Here's an API work-around to get you one!

' In General Declarations Private Declare Function SendMessageByNum Lib "user32" _ Alias "SendMessageA" (ByVal hwnd As Long, ByVal _ wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

Const LB_SETHORIZONTALEXTENT = &H194

To display the horizontal scroll bar, you then just call

SendMessageByNum List1.hwnd, LB_SETHORIZONTALEXTENT, 250, 0

List1.hwnd is replaced with the name of your list box, and 250 is replaced with the width you want the scroll bar to be. If you give a width of 0, then the scrollbar will be disappear. This sub routine will automatically workout the greatest width needed.

Sub lstAddHScroll(lst as ListBox)     ' depends on the scalewidth     ' if scalemode is Twips then Divide M by 15 to get Pixels

    For a=0 to lst.listcount-1         if me.textwidth(lst.list(a))>m then m=me.textwidth(lst.list(a))...
Read More »
Comments (0)
Knowledge Base

Modifying data in Sheridan DataGrids

By Blog User on 4/16/2008 1:10 PM

The following command will allow you to alter values inside an AddItem grid already loaded:

For intCounter = 0 To grdDataGrid.Rows - 1
        grdDataGrid.Bookmark = grdDataGrid.AddItemBookmark(intCounter)
        grdDataGrid.Columns(KGRD_Order).Value = sdbcOrders.Columns(0).Text
    Next intCounter

Comments (0)
Knowledge Base

How to throw a StoredProcedure with parameter from Visual 6

By Blog User on 1/30/2008 5:03 PM
Set objParameter = New ADODB.Parameter         With objParameter         .Direction = adParamInput          .Type = adInteger         .Value = varValue     End With         Set objCommand = New ADODB.Command         With objCommand         .Parameters.Append objParameter         .ActiveConnection = cnDB ' (connection already opened)         .CommandType = adCmdStoredProc         .CommandText = s_ProcedureName     End With         Set rs = objCommand.Execute         Set rs = Nothing     Set objCommand = Nothing     Set objParameter = Nothing ...
Read More »
Comments (0)
Knowledge Base

Percentage Formatting of Grids

By Blog User on 11/7/2007 10:06 AM
It sometimes happens that you want to format the data of a Janus Gridex, but it's possible that the prefabricated formats doesn't satisfy you. An example of it would be the percentage format.

 

You want to display columns with percentages, but if you select "Percent" as format of the column, the data is shown multiplied by a hundred because we are used to working with values from 0 to 100 instead of 0 to 1, which is what the grid expects. A suitable solution would be convert it to text and apply the format in the UnboundReadData event, but then the column would not be sorted numerically as you want. 

So, I found it very easy to apply formats by putting something like this in the Form_Load:

 

    For intCounter= KGRD_ComList1 To KGRD_ComList3         grdCommissions.Columns(intCounter).Format = "0.00""%"""     Next intCounter



 

I've designed the "0.00""%""...
Read More »
Comments (0)
Knowledge Base

Search

Categories

Skip Navigation Links.
ASP.NET (27)
C# (9)
Dynamics CRM (1)
General (33)
Mobile (2)
NHibernate (2)
Sharepoint (4)
Team Foundation (1)
Visual Basic (5)

Archive

Archive
<May 2012>
SunMonTueWedThuFriSat
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789
Monthly
April, 2012 (1)
March, 2012 (3)
February, 2012 (2)
January, 2012 (4)
December, 2011 (1)
November, 2011 (1)
October, 2011 (1)
September, 2011 (2)
August, 2011 (2)
July, 2011 (1)
June, 2011 (1)
May, 2011 (1)
April, 2011 (1)
February, 2011 (1)
January, 2011 (2)
December, 2010 (3)
October, 2010 (2)
August, 2010 (5)
July, 2010 (2)
June, 2010 (1)
May, 2010 (2)
January, 2010 (3)
November, 2009 (2)
October, 2009 (1)
September, 2009 (5)
July, 2009 (2)
June, 2009 (2)
May, 2009 (2)
April, 2009 (3)
March, 2009 (1)
December, 2008 (1)
November, 2008 (1)
October, 2008 (2)
September, 2008 (1)
May, 2008 (3)
April, 2008 (1)
March, 2008 (1)
January, 2008 (2)
November, 2007 (2)
October, 2007 (2)
August, 2007 (1)
July, 2007 (1)
May, 2007 (2)
April, 2007 (1)

Go
TISA - USA: 16360 Park Ten Place, Suite 301 - (77084) - Houston - Texas - United States - Phone.: +1-713-900-8667 - sales@tisa-software.com
TISA - ARG: 3087 Zapiola St. - 1st Floor - Buenos Aires - Argentina - Phone: (00 54 11) 4482-4096 - ventas@tisa-sistemas.com.ar
TISA - ARG: 940 Sarmiento St. - 3rd Floor - Buenos Aires - Argentina - Phone: (00 54 11) 4328-1327 - ventas@tisa-sistemas.com.ar
Copyright 2011 - TISA - All rights reserved Terms Of UsePrivacy Statement