|
Hi All,
I want to change the image of a Picture Object of crystal report during run time. i have tried to do this with the PicutreObject (GraphicalObject) of Crytsal report but it does not work as it does not support any property that deals with image.
Pls, if any knows help me.
-Ajay
|
|
|
|
|
Could someone please help me. Here's my code:
Private Sub ToolBar1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ToolBar1.MouseDown
ToolBar1.DoDragDrop(ToolBar1, DragDropEffects.Move)
End Sub
Private Sub frmRolman_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles MyBase.DragEnter
e.Effect = DragDropEffects.Move
End Sub
Private Sub frmRolman_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles MyBase.DragDrop
Dim myForm As Form
myForm = CType(sender, frmRolman)
Me.ToolBar1.Dock = DockStyle.None
ToolBar1.Left = Me.MousePosition.X
ToolBar1.Top = Me.MousePosition.Y
If Me.MousePosition.Y = Me.Top Then
ToolBar1.Dock = DockStyle.Top
End If
End Sub
My problem is I'm not exactly sure at which position the toolbar should dock at the top, left, etc... With the above code, when I click on the toolbar, it moves. Probably has to do with the mouse_down event, but I'm going off some tutorial code that moved a picture box within the form.
Thank you for your time.
|
|
|
|
|
Hi frends!!!
Well here's the deal, I'm totaly clueless on how to go about this but how can a user bypass a login page when a hyperlink is sent to him/her through let's say MS word?
I usualy try things out 1st and ask questions later when i get stuck but this time i'm lost to begin with so any concept or (hopefully) actual working functions would be awsome! Thnax for all you helps!
Kampai!!!
|
|
|
|
|
If the security on that site is utter crap, then yes, all you have to do is send the link to the page. If the security is decent or better, then no, there is no way to "bypass" the login.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi guys
I am new in visual basic program language, I need your help to solve my problem, at this time I have a program which is connected to access 200 database tables. I want to know how to create a program that can access form automatically to last records on my access database table.
And show the last record into textbox's, I need your help deeply and if you don't mind please give me a sample in order to make sure me can understand how the program should be write.
Thank you for your attention and support to me
Bst regards
I C E
|
|
|
|
|
hi there ice, as to your question...
if you are using ADO technology, just type this code on your button.
ADODC.recordset.movelast
thats it!
make sure your ADO data control is connected to your database.
enjoy!
magnus
|
|
|
|
|
Hi Magnus
Thank you for your assist, it's really valuable for me but in my application I use OLDB, does it same phrase to access last record like ADODC.
Thank you
I C E
|
|
|
|
|
Hi Magnus
Thank you for your assist, it's really valuable for me but in my application I use OLDB, does it same phrase to access last record like ADODC.
Thank you
I C E
|
|
|
|
|
I have a dynamically created RichTextBox control. I also have ToolStripButton for setting the selction string to Bold in the box. What I need to do is be able to catch the selected texts FontStyle as it is selected. i.e. MS Word has the feature that when you click on text that is Bold the bold toolbar icon is checked and when you click on regular text it is not checked. How would I capture the Fontstyle in realtime on a dynamically created control? I hope this makes sense.
Thanks,
Taen Karth
|
|
|
|
|
You need to subscribe to the selection changed event, then hopefully you can examine the selected text for it's font properties.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
How in the world do I subscribe to the Selection changed event on the dynamic control. Somewhat new here...
Thanks,
Taen Karth
|
|
|
|
|
I don't use VB, I hate it. If you're using VB.NET, there has been some discussion on events on dynamic controls in the past day or so, search the forum for details.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
ok done some searching and still cannot find an answer... Would anyone else have any advice?
Thanks,
Taen Karth
|
|
|
|
|
ok you try doing in this way
create a handler which handles selection change event. when you have created the RTB assign handler you created to it by
using AddHandler
In SelectionChange handler use this code
If sender.SelectionFont.Bold = True Then
Me.CheckBox1.Checked = True
Else
Me.CheckBox1.Checked = False
End If
if you have selected a text which has a bold text then checkbox would be checked other wise not checked. (Keep a check box on
form)
----------------------------------------
Here's The code
'handles RTB's Selection Change Event
Private Sub RTB_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs)
If sender.SelectionFont.Bold = True Then
Me.CheckBox1.Checked = True
Else
Me.CheckBox1.Checked = False
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim txt As New RichTextBox 'Define A New RTB
txt.Size = New Size(100, 100)
txt.Location = New Point(0, 0)
Me.Controls.Add(txt) 'Add RTB To Form
AddHandler txt.SelectionChanged, AddressOf Me.RTB_SelectionChanged 'Assign SelctionChange Event Handler
End Sub
Pranjal Sharma
|
|
|
|
|
did I mention you are the man! hehe I completely forgot about AddHandler. Your code led me in the right direction. I extended it of course and put it in a module but it works great. Once again thanks for the heads up!
Thanks,
Taen Karth
|
|
|
|
|
please help me.
how do i apply colors on each row of my datagrid? im using ADO.
Thanks.
magnus
|
|
|
|
|
Hi all,
We are working on a windows vb.net project in which we need to add a listbox control to the datagridcolumnstyles. We know that we need to create an inherited class for this and Microsoft says we need to override certain methods but we can't find any literature on where to start and what methods need to be overwritten. Is there anyone who has experience in adding new datagridcolumnstyles and may be able to show us where we can start?
Thanks,
Trini.
|
|
|
|
|
I need help with figuring out how to have a toolbar that you can drag and drop. Any good help resources to refer to for this? Thank you!
|
|
|
|
|
So I have meself a simple little screen saver app that I made with a lot of help from articles here on codeproject and elsewhere (thanks goes out to all who post such articles and tutorials).
I would like to enable this app to create custom screen savers from settings the user specifies.
I need to figure out how I can have my application make a copy of itsself (or even another existing copy) with the user settings.
But doesn't it need to be compiled?
If someone could point me to a tutorial that might explain how to go about doing such a thing that would be great. Currently using VB .net 2003
-- modified at 14:04 Thursday 8th September, 2005
|
|
|
|
|
If I have understood you correctly:
You have a program that it is itself a screen saver, the user can chage the settings and you want to change the screen save using those settings.
(if this is your problem)
You do not need to create another copy of your program. You just need to save the settings and then load it at your program's startup. To do so, one easy way is to use the SaveSetting, LoadSetting functions.
If your problem is something else, please clarify it more.
|
|
|
|
|
Nope, nail on the head, er...
Another case of the developer making things difficult for themselves.
Thanks.
|
|
|
|
|
In a test I'm making I type this
oledbDataAdapter.SelectCommand.CommandText = "SELECT * FROM tbl_clientes;"<br />
oledbDataAdapter.Fill(Dataset)<br />
Me.DataGridBuscar.DataSource = Dataset
Then I change the code to
oledbDataAdapter.SelectCommand.CommandText = "SELECT * FROM tbl_clientes WHERE nombre LIKE '*j*';"<br />
oledbDataAdapter.Fill(Dataset)<br />
Me.DataGridBuscar.DataSource = Dataset
And nothing is selected!!!
If I copy and paste the SQL in the access editor, it returns a few records that begins with "j" (what I want!)
Why this not runs in VBNET?
Thanks.
|
|
|
|
|
Two things.
1) You say that you want to find records that "START" with J. Do not use a wild card in front of the letter else you will match records that have a j anywhere within the text.
2) Try using % character instead of * character as the wildcard indicator. I have had some luck doing this.
|
|
|
|
|
It works like you say... but why in access my query returns values and in VB not?
Thanks a lot!
|
|
|
|
|
Not sure of the real explanation, but it works. Access does not reconize % as a wildcard. But when passed a sql statement, it works.
Crazy Microsoft products......
-- modified at 14:32 Thursday 8th September, 2005
|
|
|
|