|
I haven't seen any, but I've just picked this stuff up out of the docs.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am a newbie to vb.net. I have done some things in VB for applications but not vb.net.
What is the best way to show info from a database in a grid style format that can update/refresh every 5 to 10 minutes. There will be no user interaction. I can get the info from an SQL database but the output is what I need to figure out. I played with datagrids but that seems like overkill. I also need to format the output of the data based on specfic criteria.
If there is an example to look at I would like that also. If this program can be done through asp.net more efficiently then I will go down that road also.
Any help would be appreciated.
Thanks for all the help
NewbieDave
|
|
|
|
|
NewbieDave wrote:
What is the best way to show info from a database in a grid style format that can update/refresh every 5 to 10 minutes.
A datagrid and a timer.
NewbieDave wrote:
I played with datagrids but that seems like overkill.
OK, then use a ListView. They are harder to set up tho.
NewbieDave wrote:
If this program can be done through asp.net more efficiently then I will go down that road also.
Use ASP.NET only if you need online connectivity, otherwise it's just too limiting compared to what you can do with WinForms.
NewbieDave wrote:
I also need to format the output of the data based on specfic criteria.
You should really use a DataGrid. You can specify a number of views on a datagrid, and the views will automatically be used based on table name, then rename your table to reflect the view required.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I would like to build Electronic DTR because my boss wants me make a E-DTR. I hope someone can guide me step by step on how to make this project. My boss don't want to use the Bundly Clock because He wants to use our computer so I need to build E-DTR using VB 6 and Access. If you can't help me, I hope you can suggest a site that have already a project like this.
Thank you in Advance!
|
|
|
|
|
For us laymen who can't read minds, what is an "E-DTR"?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
A bundy clock appears to be a clock for keeping track of employees hours. So I guess electronic - Date Time Record ? Who can say ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
If you explore IBM's family tree, one of the very early branches takes you to Binghamton, N.Y., home of the Bundy Manufacturing Company following its incorporation in 1889. The new business produced a time clock invented by Willard L. Bundy. Bundy two years later, along with two other time equipment businesses, was consolidated into the International Time Recording Company. ITR itself became part of the newly-formed Computing-Tabulating-Recording Co. in 1911, which was renamed IBM 13 years later.
|
|
|
|
|
??? Like I give a cr@p about IBM's family tree...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Why has your boss asked you to do this ? That is, are you already a VB6/Access user, or is he throwing you to the wolves in the mistaken idea that he can save money this way ?
It would not surprise me if there are samples out there that do this, but if you're not already a programmer, I'd suggest you tell your boss that it would be cheaper in the long run for him to spend a little money on a system that is known to work.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hi,
My requirment is i have two projects in vb.net but from one project i need to interact with form of other project is there any concepts to do this if there please help me.
rafi khan
|
|
|
|
|
you must add a reference in the calling project to the project which contains the form to be used.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Does anyone know how I could perform a column based selection from a
multi-line text box or if there is another control that would allow me to do
this?
The behaviour that I am looking for is the same as holding the ALT key and
making a selection in MS Word.
|
|
|
|
|
No, there are no prebuilt controls that do this, you'd have to write one. And it would not be an easy task.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
bump
Does anyone have any idea of how to code this up? I've been searching for stuff on the net but found nothing yet!
Any pointers would be appreciated
|
|
|
|
|
Bump doesn't work, posts are not listed most recent first, only most recent thread.
The first step is to be owner drawn - then you can work out which text on each line is part of the group you've dragged over, and it's the only way you can draw it as selected.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Maybe this is a stupid question, but how can a TextBox be owner-drawn? It doesn't have the "DrawMode" property as per ListBox for example....
|
|
|
|
|
Really ? In C++, all controls can be owner drawn. I guess you then need to start with an empty control. Man, that would suck. But I guarentee you, the text boxes built into Windows do not support this directly.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
well I suppose I have the option to build a new ActiveX control with Vb6 or C++ 6 as I have that version of visual studio as well as .NET ....but I was trying to keep everything in .NET if at all possible
I can't believe I can't find clearer examples of this on the internet, not managed to turn much up yet
thanks for the help anyway
|
|
|
|
|
Slow progress so far.
I've just started to try and capture the mouse selection by subclassing the textbox control and using WndProc (code is below)
So I've got to the point of trynig to draw a rectangle covering the area selected by the mouse but the rectangle appears way to the right and below where it should be. try puttin the control on a form, make it quite big and specify it as multi-line and you'll see what I mean.
I suspect the cursor position is not relative to my control, but I can;t figure it out for the life of me. Anyone have any ideas?
Public Class CSTextBox
Inherits System.Windows.Forms.TextBox
#Region " Component Designer generated code "
Public Sub New()
MyBase.New()
' This call is required by the Component Designer.
InitializeComponent()
End Sub
'Control overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
FileClose(1)
MyBase.Dispose(disposing)
End Sub
'Required by the Control Designer
Private components As System.ComponentModel.IContainer
' NOTE: The following procedure is required by the Component Designer
' It can be modified using the Component Designer. Do not modify it
' using the code editor.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
components = New System.ComponentModel.Container()
End Sub
#End Region
Protected Overrides Sub OnPaint(ByVal pe As System.Windows.Forms.PaintEventArgs)
MyBase.OnPaint(pe)
'Add your custom paint code here
End Sub
Private Const WM_MOUSEMOVE = &H200
Private Const WM_LBUTTONDOWN = &H201
Private Const WM_LBUTTONUP = &H202
Private startpoint As Point
Private endpoint As Point
Private selectionMode As Boolean = False
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Select Case m.Msg
Case WM_LBUTTONDOWN
startpoint = Me.Cursor.Position
endpoint = startpoint
selectionMode = True
Case WM_MOUSEMOVE
MyBase.WndProc(m)
If selectionMode Then
endpoint = Me.Cursor.Position
End If
Case WM_LBUTTONUP
endpoint = Me.Cursor.Position
DrawRect()
selectionMode = False
Case Else
MyBase.WndProc(m)
End Select
End Sub
Private Sub DrawRect()
If selectionMode Then
Dim x As Long, y As Long, w As Long, h As Long
If startpoint.X <= endpoint.X Then
x = startpoint.X
w = endpoint.X - startpoint.X
Else
x = endpoint.X
w = startpoint.X - endpoint.X
End If
If startpoint.Y <= endpoint.Y Then
y = startpoint.Y
h = endpoint.Y - startpoint.Y
Else
y = endpoint.Y
h = startpoint.Y - endpoint.Y
End If
Me.CreateGraphics.DrawRectangle(New Pen(Color.Red), New Rectangle(x, y, w, h))
End If
End Sub
End Class
|
|
|
|
|
OK - I gave up!
Instead I used scintilla which has the functionalitiy I was looking for built in
www.scintilla.org
|
|
|
|
|
Hi everybody. I got a very frustrasting issue with a Visual Basic Application. I send WM_SETTEXT messages to it, and I can't catch them inside the code, even though I correctly subclassed the window and I'm catching every other message.
If I send the WM_SETTEXT from Visual Basic, I'm catching the message, if I send it from my Visual C++ DLL, I don't.
However, sending WM_USER from the Visual C++ DLL works. But my issue is that I want WM_SETTEXT to work : (.
<br />
Public Const WM_SETTEXT As Long = &HC<br />
Public Const WM_USER As Long = &H400<br />
<br />
Public Function ASDWndProc(ByVal hWnd As Long, ByVal uMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long<br />
Dim sString As String<br />
<br />
If uMsg = WM_SETTEXT Then<br />
CopyMemory sString, lParam, Len(lParam)<br />
MsgBox sString, vbInformation + vbSystemModal, "This does not work, except when I'm Sending the message from the VB Application"<br />
Exit Function<br />
End If<br />
<br />
If uMsg = WM_USER + 9 Then<br />
MsgBox "This works", vbInformation + vbSystemModal, "Strange"<br />
Exit Function<br />
End If<br />
<br />
ASDWndProc = CallWindowProc(loOriginalWindowProcedureAddress, hWnd, uMsg, wParam, lParam)<br />
End Function
Thank you for your help!
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
I right-click the resource folder in solution explorer , and select Exclude from Project.
Then error happened , the project could not be built.
I try to create a new folder , but the name could not be resource because there is the same folder.
How to rebuild my project?
Thanks!
|
|
|
|
|
We would refer Type library and Dll files in some different ways in .net.
I like to know what happens in compilation and execution time of the different ways of declaration.
1. imports System.IO
2.Dim lobjConfig As New PrjConfigInfo.ClsConfigInfo()
3.Private Declare Function Trans_Ticket Lib "InlottPrint.dll" (ByVal lStrPrintStr As String) As Integer
4.Add by Reference in solution explorer in .net IDE.
I am totally confused with this.
Plz Expain Anybody.
Thanx in advance
Satish Chandra Kumar
satish_softin@rediffmail.com
InLott Technologies Pvt Ltd
Chennai
|
|
|
|
|
not sure i understand well, but here is what happens.
first, i don't proceed in the same order as you. here is mine :
1. Adding a reference to a project of the solution.
As it says, you create a link to the functions and classes within the dll you reference.
this way, you will be able to use and call them.
2. Importing a namespace.
that command allow you not to use the entiere namespace instead of retype it each time you call a member of that namespace (Console.WriteLine() instead of System.Console.WriteLine() for example)
3. Dim lobjConfig As New PrjConfigInfo.ClsConfigInfo()
Declares a variable lobjConfig of type PrjConfigInfo.ClsConfigInfo and initializes it with a reference of a new object of this type (with Default constructor New() ).
4. Private Declare Function Trans_Ticket Lib "InlottPrint.dll" (ByVal lStrPrintStr As String) As Integer
Hem, personnaly, i never use this... so, i cannot help you well on this
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
hi
as you know,there are *.gif files and
these pictures contain some move.
and the query.. how can i use this picture files
in vb6
thanks for all
|
|
|
|