|
RainbowWyrm wrote: I have used lots of Table Layout Panels and Split Containers
Define "lots"... All on one form?? Is there a form with "lots" of controls on it?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
The main dialog form represents the main window and so far contains (this is the back bone without small components which I have not placed yet):
1) 1 Main menu,
2) 2 Main toolbars and 1 toolbar in a child window,
3) 5 Table Layout Panels - to position child windows properly, to separate labels from toolbars from work area windows,
4) 2 Split Containers,
5) 1 Status bar,
6) 3 Tab controls (1-3 tabs in each),
7) 1 Tree View.
I don't think it is "lots", at least I would assume that VB should be able to handle it. Maybe it is the inserted images that cause such behavior?
|
|
|
|
|
The .NET Framework can handle this number of controls easily. The question becomes is the layout being setup correctly in your code? What the designer lays out when you drop the controls in place, visually might look OK, but in fact, your control is actually not in the container that you dropped it on. You might want to go through your designer generated code and follow it step-by-step to see which containers your controls are actually ending up in.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I want use my flash animation/.swf file in my vb.net program. How can it possible, pls. guide me.
thanks a lot
-- modified at 15:40 Sunday 12th February, 2006
|
|
|
|
|
Yes, it is possible. Macromedia provides an ActiveX control (like flash8.ocx) which can display flash content on a form. You can find it in Visual Studio's COM Components list after installing a flash player on your desktop.
There are also .NET wrappers out there too, that simplify access to this ActiveX.
You can find plenty of info out on the Internet. Here's a good starting point for you.
http://www.google.com/search?hl=en&q=vb.net+flash+activex[^]
|
|
|
|
|
If you didn’t find an answer,
The simplest way to do that is,
Right click on the tool box. Select “Add/Remove Items…”. Select “COM Components”
Select “Shockwave Flash Object”. Click OK
Draw it on the form
Right click on it and select “Properties”
Type the path to “YourMovie.swf” in the “Movie URL” textbox.
Click OK.
|
|
|
|
|
Hello Friends,
can anybody explain me
How can i change the Font of Menu's at design time in VB.Net, (Not from Display property > Appearance at run time) pls help me.
If possible pls send me code.
|
|
|
|
|
|
Hello Everyone
I am using Crystal Reports .Net. I created a report with three tables... there is no relationship between any table. now i want to retrieve the data from all those three tables. until and unless there is no data available in the table report is working preety fine. but as soon as i enter a new record and then runs the report it provides me with an Error Failed to open a rowset. So any one can please help me out in solving out this que. i will be really thankful.
Please be fast its preety urgent for me.
Thanks
Shishir
|
|
|
|
|
can somebody tell me how the event that is suppose to trigger when the mouse moves over the X button on the form loks like?
rzvme
|
|
|
|
|
|
There isn't one. There is a message that goes to your form so the window can highlight the button as the mouse moves over it, but I don't know what that message is.
If you can determine the message, you can capture it by overridging your forms WndProc method.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You can try using the MouseEnter event.
Private Sub Button1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseEnter<br />
<br />
End Sub
Roy.
|
|
|
|
|
Hi Folks
Does anyone know of any good online resources for picking up VB.NET?
I have a few years experiences in both C# and VB6. So i was hoping there might be a quick start guide or something out there?
Thanks
Rich
|
|
|
|
|
|
I'm trying to run a method ina remoting client application
this button event calls this message
Private Sub btnProcess_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnProcess.Click
Dim WindowClient2 As ClientProcess2
WindowClient2.SendMessage2()
End Sub
SendMessage2 HAS THIS SET UP:
Public Sub SendMessage(ByVal recipientAlias As String, _
ByVal AlertId As String, _
ByVal message As String, _
ByVal isReturning As String, _
ByVal Urgency As String, _
ByVal TimeStamp As String, _
ByVal TimetoExecute As String, _
ByVal SysOrigin As String, _
ByVal IsActive As String)
Try
Server.SendMessage(Me.Alias, recipientAlias, AlertId, message, isReturning, Urgency, TimeStamp, TimetoExecute, SysOrigin, IsActive)
Catch ex As Exception
logit(ex.Message & "-" & ex.StackTrace)
End Try
End Sub
End Class
this method is inside of a class that starts like
Imports System.IO
Imports System.Runtime.Remoting
Imports AlertInterface
Public Class ClientProcess
Inherits MarshalByRefObject
Implements IAlertClient
TO FINISH, SENDMESSAGE IS LIKE THIS ON THE INTERFACE
Sub SendMessage(ByVal senderAlias As String, _
ByVal recipientAlias As String, _
ByVal AlertId As String, _
ByVal message As String, _
ByVal isReturning As String, _
ByVal Urgency As String, _
ByVal TimeStamp As String, _
ByVal TimetoExecute As String, _
ByVal SysOrigin As String, _
ByVal IsActive As String)
ANY CLUE OF WHAT i AM DOING WRONG?
CHERRS!
|
|
|
|
|
blucas2005 wrote: STRANGE Object reference not set to an instance of an object
Not strange at all.
blucas2005 wrote: Private Sub btnProcess_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnProcess.Click
Dim WindowClient2 As ClientProcess2
WindowClient2.SendMessage2()
End Sub
What is WindowClient2 set to? It is set to Nothing . So when you call SendMessage2() you get an exception.
You need to set WindowClient2 to a suitable object.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
Hi, I'm trying to create the following scenarion
You have 2 winforms A and B
A has a Sub that will pop a msgbox("oi")
and a button that pops form b
forms b has a button that raise a event on A and run the sub with the msgbox
i tried the code bellow, it worked in a console version, but is not working when in a winform
could you help me?
code bellow:
''''FIRST CLASS
Public Class CClock
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
mobjTimer = New CTimer
AddHandler mobjTimer.evtMinute, AddressOf MinuteEvent
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
Private Sub MinuteEvent(ByVal xintTime As String)
TextBox1.Text = "crap"
MsgBox("Minute's Event")
End Sub
'Form 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
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
End Region
Private WithEvents mobjTimer As CTimer
Private Sub CClock_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim xx As New CTimer
xx.Show()
End Sub
End Class
''''SECOND CLASS
Public Class CTimer
Inherits System.Windows.Forms.Form
''delegate
Delegate Sub SecondDel(ByVal xintTime As String)
'''delegate instance
Private evtSecond As SecondDel
''delegate
'''EVENTS
Public Event evtMinute As SecondDel
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form 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
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents Button1 As System.Windows.Forms.Button
End Region
Private Sub CTimer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
RaiseEvent evtMinute("lngSeconds")
End Sub
End Class
|
|
|
|
|
It's not working because you are creating 2 separate instances of the CTimer form and only handle the event of the first.
You see, you've created a CTimer form instance and stored it in a member variable in the constructor. You hooked up an event handler to it there too. BUT... you never did a Form.Show() of this object in your code. The event handler that you've setup was only for that particular object instance which was never used.
Public Sub New()
MyBase.New()
mobjTimer = New CTimer
AddHandler mobjTimer.evtMinute, AddressOf MinuteEvent
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
When you displayed the CTimer form, you created a new form instance here. It is firing an event, but you never set up a handler for this particular object instance. So this is where your problem lies.
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim xx As New CTimer
xx.Show()
End Sub
Here str my recommendations.
- Remove the AddHandler from CClock's constructor. The WithEvent assigned to the member will automatically hook up event handlers for you. (Plus you're missing a RemoveHandler anyways.)
- Append "Handles mobjTimer.evtMinute" (without double quotes) to your MinuteEvent method. This makes it work with the WithEvents keyword.
- Do not create a new CTimer object in CClock's Button1 method! Instead, do a mobjTimer.Show().
-- modified at 15:46 Sunday 12th February, 2006
|
|
|
|
|
Hey, can anyone teach me how to create a custom progressbar control which can have multiple colors? For e.g. values 0-50 = green, 50-80=yellow and 80-100 = red.
Thank you.
|
|
|
|
|
|
Thanks, I have already gotten those examples.
|
|
|
|
|
It's next to impossible to "show" anyone how to build an entire project in a forum. There's just so much material to cover, it'd take over an article to explain it all. You're best bet is to analyze the code in those projects, picking out the design details and experimenting with them to give you a better idea of what's going on.
A control is just a container that stores and manipulates a very specific piece of data and supplies a UI for input (optional!) and custom drawing code to display that data. Keep those three things in mind an you should have no problem picking out the various pieces of those controls.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yea thaks for your guides, i am already analyzing several samples and integrating them into one single project, hopefully i can publish one control in future =) thanks!
|
|
|
|
|
This has been overdone, yet not so... i am looking for a simple way to send emails using vb. I have tried the code to no avail. I have SP6 so i redid the .dll and reregistered it. It would still not connect, stating that ther server was not respoding to the inqury. I've tried countless ways, the most i got was with yahoo mail, that got up to 6% and errored. The general consensis is that these things are tricky if possible to get to work. anyone who succeded would be greatly appreciated. I will use any webmail. hotmail, gmail, yahoo.com or yahoo.ca if anyone knows the proper way to get these to respond.. the only other option is that my outlook to be configured to hotmail, and then set vb to use outlook with MAPI...
"Love, Life and Option Explicit"
|
|
|
|