|
Didn't you see the Syntax above? Just try with it and see.
The name is Sandeep
|
|
|
|
|
i saw it
but here what i typed
If cn.State = ConnectionState.Closed Then<br />
cn.ConnectionString = "provider=SQLOLEDB;server=maged;database=ceasr;user id=sa;pwd=magedhv"<br />
cn.Open()<br />
cmd.Connection = cn<br />
cmd.CommandType = CommandType.Text<br />
cmd.CommandText = "BACKUP DATABASE ceasr to disk = d:\backup\myDatabase.bak"<br />
End If
but it didn't worked
|
|
|
|
|
See this posting I made previously [^]
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
i want to override a button property?is it possible? how can i delete a existing property from a button
|
|
|
|
|
dear anujose,
you can add the code like this
btn.attributes.add("OnMouseOver",someCode())
All The Best
Sathesh Pandian
|
|
|
|
|
i want to override a button property in winform not an event
|
|
|
|
|
Would you not have to inherit the button control into your own class and expand on it from there?
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
You'd have to create your own Button class and override the property. To make the Text property disappear and have the Text on the button be forced to something:
Imports System.ComponentModel
Public Class MyButton
Inherits System.Windows.Forms.Button
<Browsable(False)> _
Public Overrides Property Text() As String
Get
Return "This is my custom button!"
End Get
Set(ByVal value As String)
' Just don't do anything with this
End Set
End Property
End Class
|
|
|
|
|
i want to make a size property with a + .when i click in + i want to open height and width property.how can i do this?...........
|
|
|
|
|
You need a new Class called size with properties for X and Y etc.
Then on your control create a property to type Size
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
In addition to what Steve said, if you want to learn a bit about custom property editors, take a look at this[^] article.
|
|
|
|
|
i would like to make form contain textbox
required:
i would like the user after typing spacefic word in this textbox and PRESS ENTER THEN FORM2.show
in vb6
i can do this
if keyascii = 13 then
form2.show
end if
how can i do this in vb2005
that's urgent plz
thanks
|
|
|
|
|
If (e.KeyCode = Keys.Enter) Then
End If
|
|
|
|
|
hi,
suppose textbox name is txtfocus then use following code
Private Sub txtFocus_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtFocus.KeyPress<br />
If e.KeyChar = Chr(Keys.Enter) Then 'or if e.keychar=chr(13)<br />
form2.show<br />
End If<br />
End Sub
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
thanks so much it works well
it was helpful
|
|
|
|
|
Why not uses the Leave event of the TextBox control.
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
Hi everyone,
I am having problems with the crystal report viewer. It cant load any report saying 'load report failed'. I have never used the control before. I am using vs2005 pro, could it be a bug in the software? Please help.
|
|
|
|
|
first u have to design ur report as u like ...,then save ur repot from the menu file (save report.rpt)
then add another new form in order to show ur report there and in the form load event type the following code
CrystalReportViewer1.ReportSource = ("crystalreport1.rpt")<br />
i hope this help
if there is any another question plz feel free to ask
|
|
|
|
|
Thankyou for responding to my query. I have been doing exactly as you have suggested but I still get the same error "load report failed". This also happens when I try to set the crystalreportviewer's reportsource property under the controls property's.
|
|
|
|
|
because the location of the report must be in the same location of the project
i can give u an example project but how can i upload it 4u?
|
|
|
|
|
i have an application (project source ) i can upload it 4 u just tell me how or give me ur mail
|
|
|
|
|
My email address is honest.siulapwa@gmail.com or you can use honest@micropos.co.zm I will be very grateful.
|
|
|
|
|
Dipstar wrote: I have never used the control before.
Have you at least read through any of the help documentation/tutorials?
I think I'm going to call my next project "Chuck Norris". It's a sure way to guarantee it's unbreakable.
• • •
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson
|
|
|
|
|
What is the process to apply the password in sql server 2000 database
|
|
|
|
|