|
A modal window? use ShowDialog() method when you show the form.
|
|
|
|
|
i want to open pop pup window from system tray when any event fire. for example-that pop up contain "N a v a n e e t h is great" (like Google Talk when any msg com and gtalk not open)
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Try notify Icon tool from the toolbox
|
|
|
|
|
create your own form at runtime,
see this code .., this may help u
Private Sub geterate_data_window(ByVal comport As Ang_Serialport, ByVal SMSPopupform As Form, ByVal lc As Integer, ByVal popuptext As Label, ByVal closebtn As PictureBox, ByVal mypicbox As PictureBox)
Dim runningimg As Bitmap = New Bitmap(Application.StartupPath & "\images\running.gif")
Dim backimg As Bitmap = New Bitmap(Application.StartupPath & "\images\bg.gif")
Dim closeimg As Bitmap = New Bitmap(Application.StartupPath & "\images\Closebutton.jpg")
Dim lcdimg As Bitmap = New Bitmap(Application.StartupPath & "\images\lcd.jpg")
Dim progressimg As Bitmap = New Bitmap(Application.StartupPath & "\images\ProgressBar.gif")
Dim progresspic As New PictureBox
backcolor1 = Color.Pink
backcolor1 = Color.LightBlue
SMSPopupform.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
SMSPopupform.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
System.Drawing.Color.FromArgb(CType(CType(64, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(64, Byte), Integer))
SMSPopupform.ClientSize = New System.Drawing.Size(300, 65)
SMSPopupform.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
SMSPopupform.Location = New System.Drawing.Point(1, lc)
SMSPopupform.Name = "Form1"
SMSPopupform.StartPosition = System.Windows.Forms.FormStartPosition.Manual
SMSPopupform.Text = "Data Downloading"
SMSPopupform.ResumeLayout(False)
SMSPopupform.ShowInTaskbar = False
SMSPopupform.TopMost = True
SMSPopupform.BackgroundImage = backimg
SMSPopupform.TransparencyKey = System.Drawing.SystemColors.ButtonFace
'' For label
popuptext.BackColor = Color.Transparent
popuptext.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
popuptext.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
popuptext.BackColor = System.Drawing.Color.Blue
popuptext.ForeColor = System.Drawing.Color.Black
popuptext.BackgroundImage = lcdimg
popuptext.Location = New System.Drawing.Point(65, 10)
popuptext.Name = "RichTextBox1"
popuptext.Size = New System.Drawing.Size(200, 40)
popuptext.TabIndex = 0
'' for button
closebtn.Image = closeimg
closebtn.Location = New System.Drawing.Point(270, 9)
closebtn.Name = "Button1"
closebtn.Size = New System.Drawing.Size(18, 17)
closebtn.Text = ""
closebtn.TabIndex = 4
closebtn.TabStop = False
'PictureBox1
'
mypicbox.Location = New System.Drawing.Point(8, 11)
mypicbox.Name = "PictureBox1"
mypicbox.Size = New System.Drawing.Size(53, 54)
mypicbox.TabIndex = 1
mypicbox.TabStop = False
'progress picture box
'
progresspic.Image = progressimg
progresspic.Location = New System.Drawing.Point(62, 50)
progresspic.Name = "PictureBox1"
progresspic.Size = New System.Drawing.Size(200, 13)
progresspic.TabIndex = 1
progresspic.TabStop = False
SMSPopupform.Controls.Add(popuptext)
SMSPopupform.Controls.Add(closebtn)
SMSPopupform.Controls.Add(mypicbox)
SMSPopupform.Controls.Add(progresspic)
AddHandler SMSPopupform.Paint, AddressOf SMSPopup
AddHandler closebtn.Click, AddressOf btn_close
SMSPopupform.Show()
SMSPopupform.Refresh()
End Sub
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
If all you want is some text to appear in the popup window, just use:
Msgbox("Hello World!")
or
Messagebox.Show("Hello World!")
With the second option you can also fill in the other parms to control what the popup title is, if the popup has OK button or Yes/No buttons, etc.
Hope this helps.
|
|
|
|
|
Hi there,
When I look at professional and/or opensource .net-code, I often see this code to be well organised, such as some regions for events, regions for procedures / subroutines, etcetera. These regions are sorted alfabetically.
I can not find a program or an addin on the internet that does this, but at the same time I can't imagine everyone is doing this manually.
Does anyone is aware of a nice tool?
Thanks,
Jochem
The Netherlands
|
|
|
|
|
Ok sorting regions alphabetically is a little anal and really does not make sense - sort by function groups yes.
jochem wrote: I can't imagine everyone is doing this manually
I think you are in for a bit of a shock, I'm betting most of us do it manually and don't think twice about it, organising your code should be so natural and so much of a habit that when someone comments on it you can't understand what they are talking about.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: I'm betting most of us do it manually and don't think twice about it, organising your code should be so natural
I second that, Mycroft.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I do this all the time. In fact it is one of my pet peeves when developers do not do it.
I have a few things that tick me off... take a look here[^] for some examples...
|
|
|
|
|
HI am developing an application in VB.Net and am totally new to it
Now i have to design a page it goes like this:
I have to create a task and allocate it to different people based on their associate ID .There is a submit button in the page when i click on to it a mail must be triggered to the particular associate(sometimes same task to one or more associates)describing about the task he has to do can u tell me how to do it trigger a mail to any number of associates
|
|
|
|
|
READ on the SMTP class in vb.net,its very easy..u will get it
|
|
|
|
|
Hello,
I'm trying to compile a vb6 application I've made but I keep getting this error below
Compile Error in File 'D:\TAT\VB6\apps\go bingo\Connection.bas', Line 121 : Sub or Function not defined
Line 121 consists of this block of code...
Function addrec(myform As Form, mydata As adodc)
On Error Resume Next
mydata.Recordset.AddNew
mycmd = cmds(myform, False)
addflag = True
End Function
...line 21 is mydata.Recordset.AddNew . I've tried to comment-out the code but the error keeps persisting. How could I compile the project properly?
Many thanks for your replies.
Aim small, miss small
|
|
|
|
|
You defined a function but did not supply a return value type. It should be:
Function addrec(myform As Form, mydata As adodc) As someType
If you're not returning a value to the caller, change Function to Sub .
|
|
|
|
|
Oh... My apologies for the novice post. Thanks for the help Sir! Works perfectly now
Aim small, miss small
|
|
|
|
|
I just joined a company that uses SQL 7.0,which am not that much used too.
i can view 'code' for views with 'INFORMATION_SCHEMA.VIEWS
and can view triggers and other objects with 'sysobjects'
i want to view the code for the triggers in a particular table...
PLEASE HELP ME...THANKS
|
|
|
|
|
the tool is called Query Analyser and is installed with SQL client.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
PLZ WHAT SQL COMMAND DOU TYPE THERE TO VIEW THE TRIGGERS AND THEIR CODES
|
|
|
|
|
Mate you have more problems than I am going to be able to help you with. SQL server 7 is so old it is no longer supported by MS, if you have QA you are just going to have to find your way around it. Most here have not seen SQL 7 for 8 YEARS or more.
I'm really sorry if you have to work with SW so old and truly hope you get the opportunity to upgrade because you are going to find very limited support for SW so far out of date.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You might want to stop YELLING and then ask this question in the SQL Forum since it has nothing to do with VB or VB.NET.
|
|
|
|
|
I am using Vb.net 3.5 as FrontEnd.
When I am Open a Modal Form such as any Message box. I want to Chnage the Background Form Faded.
that means I want to Show the users the Active and DeActive form.
when I am using another form as faded Form, and opened before the modal form that is not good enogh. because, the whole things get flicker, I need a smooth task.
Can it be Possible,So how can I do that. Please give me a suggestion.
|
|
|
|
|
pdnet wrote: that means I want to Show the users the Active and DeActive form.
Windows already takes care of this for you with different colors for the window border and title bar.
pdnet wrote: I want to Chnage the Background Form Faded.
In that case, you'll have to create your own Sub's to change the Opacity of the form, show the message box, then when that returns, return the Opacity of the form to its previous value.
|
|
|
|
|
Exactly I am doing that.
But When a Modal form is open as show dialog the whole thing is Flikering
I need a smooth work.
|
|
|
|
|
What's flickering?? The entire Desktop or just the form you change the Opacity on? Did you try turning on DoubleBuffering on your forms?
|
|
|
|
|
Changing the Double Buffering on but the Problem same
Change the Double Buffering in all the Forms or just the modal form
|
|
|
|
|
hello tyhere , i really need a working project for marksheet development in vb 6 , if anyone can create for me aur tell me the codings for it , than i'll be really very thanful to one...............
thanx a million in advance..............
|
|
|
|