|
Could you give me more details about using owner drawing graphics with all even handlings (like onclick, mousedown etc.) to rotate.
-- modified at 0:56 Tuesday 6th February, 2007
Be simple and Be sample.
|
|
|
|
|
If you owner draw, you'd still have a rectangular button, but you'd draw the odd shaped button on it, and you'd have to handle all events to reject them if you were on the button, but not on the drawn area.
Just look at any article on round buttons, or other irregular shaped buttons, that's what yuo need to do.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I have drawn shape over button using graphicspath region and while make it rotate, shape moves within button control, but not the control itself, so the shape will be hided once it cross the button area.
Let me have any link on how to draw shape over button control and make it rotatable using angles.
Thanks in advance.
Be simple and Be sample.
|
|
|
|
|
That's all you can do. You can't change that a button is rectangular, if you rotate it, you need to resize it to allow for this. Like I said, really, what you want can't be done, outside WPF.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I had to create a rotating control like this. I had to create a custom user control and paint a graphic of the control on it, then rotate the control image. The user control has to be big enough to rotate your image all the way around (or as far as you want) but that's okay because you need that space on your form anyway.
|
|
|
|
|
What is the easiest way to Read a DataTable with a list of tables
from OLEDB Using VB.Net
Thanking you
Somasundaram
|
|
|
|
|
A better method is to use the bindingsource and set the filer. e.g.
BindingSource1.Filter = string.format("{0} LIKE '{1}%'",me.cboSearchText.Text,me.txtSearch.text)
This should be in the text changed event of the text box.
--Steve
hii ,
good code from steve,
but will u thell Please, wht is cboSearchText?
& wht more i have to write for bindingSource?
Thanx.
--Regards Priya
priya
priya
|
|
|
|
|
how do i attach barcode in vb access project
|
|
|
|
|
Attach a barcode to what ? Do you want to scan barcodes ? Do you want to create them ? Store them in Access ?
VB6, or VB.NET ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi
any barcode It must include the file TEXT when to Install barcode Driver
In case of any reading of the write to this file
found it to get your value
Ahmed El-Badry
|
|
|
|
|
can anyone please give me some coding on how 2 make a button that produces sound when pressed (most probably from a file of the recorded sound-whatever format it might be-.mp3,.wav,etc) and is saved into database?--and how to play that saved sound from the database?
i'm using visual basic.net 2003, ms SQL server, ms Access
Thanks in advance!!
i don't know if there are related posts like mine but if there is please let me know and please insert the link too....thanx
|
|
|
|
|
vb.net 2005 has a sound API. VB2003 requires you p/invoke PlaySound to play a wav, or use Windows Media Player or DirectShow to play sounds in different formats.
The button is irrelevant, you'll play the sound in a click event, but it will be no differerent to if you played it on some other event
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
thanx for d info, but actually the button I had in mind was something like a piano key that produces sound when pressed...
I might want to have a few of those, each playing a different note, (like button A would play file A)---i have a few files for each note already.I just don't know d coding to play those file in the event button A is pressed.
The nex thing is, once i've pressed buttons A, B and C in sequence, i want it to be saved into the database---and i would like to play d saved sequence from database.So, can any kind soul out there please show me d codings??
Thanx!!
|
|
|
|
|
Dear Sir or Madam:
Could you please tell me how to drag some selections from different sources, such as textbox, listbox, treeview as well as webbrowser, etc. to drop onto a webbrowser target?
My programming environment are: vb 2005, .net 2.0 and windows application.
What I know is: for .net 2.0, there are dragover, dragleave, dragenter, dragdrop, givefeedback as well as querycontinuedrag events and some relatively methods for most controls to fulfill drag and drop operation. But for webbrowser control, .net only provides Drag、DragOver、DragLeave、DragEnd, these four events, not directly for webbrowser itself, neither for HtmlDocument, but for HtmlElement, and even bad, as my tested, for webbrowser target, there are only two events DragOver、DragLeave can be used. So my problems are:
1. Can one only use these two events to finish the drop onto the webbrowser target?
2. If one could, use which event to get the data and which one to know the element to drop onto?
3. If there are other events for the drop of webbrowser target?
It is very appreciate for your kindness help.
Lingyong He, from China
|
|
|
|
|
How can write program for mobile with vb.net?
|
|
|
|
|
|
Hello
how can i show some picture with thier gray values only?
when i want to set the pixel color i just have the setpixel function
is there any other way?
|
|
|
|
|
Read my image processing articles, the first one has a greyscale filter. You can do it easier with a color matrix, you can find that code easily on the web. The Microsoft Fotovision sample certainly contains it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi All,
Can anybody point me in the right direction. I need to display text and numbers in extra large, Is it possible to make a character aprox. 300 Pixels x 300 Pixels. Any help would be appreciated.
Thanks
Tony Glover
|
|
|
|
|
What have you tried ? I'd expect DrawString to work just fine.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
we use webbrowser in a very simple protocol that just gets a string to a server and should receive a string back. the webbrowser does it all right, but we need to get to the received string in the code - and it just does not appear.
we tried webbrowser1.DocumentText aand although the browser shows the right message, the DocumentText is ""
????
Noki Lavie
Bar-Ore Ltd.
|
|
|
|
|
Hi,
I have written an activeX control that sends an event 200 times a second, so fairly quickly, the data needs to be sent this fast. The activeX control works fine, I can add it into VB .NET and it works fine, when I try to add into the event handler a counter that refreshes a label it freezes the program. Is this happening because I am trying to refresh the label too quickly.
The code I inserted into it is as follows:
Public Class Form1
Inherits System.Windows.Forms.Form
Dim test As Integer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
AxTest.Initialize()
test = 0
End Sub
Private Sub AxTestCtrl1_DataReady(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxTestCtrl1.DataReady
test = test + 1
Label1.Text() = test
Label1.Refresh()
End Sub
End Class
This causes the whole application to freeze, and if I comment the two Label1 instructions out of the code it works fine without freezing.
Any help would be greatly appreciated.
|
|
|
|
|
Yes, calling a paint method 200 times a second will do that. Instead, set a timer that goes off every second, or something, and do the screen update then. You're not going to run a 200 times a second counter on a form and have it doing anything else.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i am developing clent server Application, where at client i have several datetimepicker controls for which i am setting a 'max value' Property as today. and for some datetime pickers i have not set any max value. So, if i run the appicaion and keep it for more than 24 hrs...
for controls which i set max value, maxvalue is not chnaging to todays date. they are showing yesterdays date. and for controls which i did not set any max value they are just fine. today's date is reflected there.
can any body suggest me how to fix this ASAP.
Thanks in advance.
Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human,
Failure Keeps u Humble and Success keeps u glowing, but only Faith
Keeps u
Going.....
|
|
|
|
|
The only suggestion I have is use a timer to refresh the maxvalue. You could set the timer to go off at a reasonable interval and when it does it would set the maxvalue to the current date. The other thing you might need to consider is someone changing the computers system clock. A persons PC isn't a reliable source for the date because in it could be anything. Also just as an insurance policy you could validate the date selected. If it's beyond the current date you would set the date back to whatever it was before the user changed it. This is just a quick example.
Public Class Form1
Dim LastDate As Date = Nothing
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Initialize the LastDate to the current date selected
'in the DateTimePicker1
LastDate = DateTimePicker1.Value
End Sub
Private Sub DateTimePicker1_ValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged
'Validate the date selected. If it's past the current date
'then reset it to the last date selected
If Date.Compare(DateTimePicker1.Value, Now) > 0 Then
DateTimePicker1.Value = LastDate
Else
LastDate = DateTimePicker1.Value
End If
End Sub
End Class
|
|
|
|