|
Is there a way to insert a picture in to a Richtextbox and save it?
thanks in advance
|
|
|
|
|
Y r u doing that ? What's the need?
|
|
|
|
|
|
Hi! I would like to; "really" know how to get the current text line number where the caret is at.
(not the "line number" just the "text line number":
when you use textbox1.lines(0) it takes the entire text in line 0 even if some text are in line 1, because the text in line 1(as long as it didn't get there by pressing the return key) belongs to line 0, but when I use the code below it just says the text in line 1(even thought it belongs to line 0) as belonging to line 1.)
a = Rtb.GetLineFromCharIndex(rtb.SelectionStart)
So can anyone tell me a way to get the real line number of the selected text.
thanks in advance
ps:
(pls don't tell me to explain again!
|
|
|
|
|
make the 1 increment and u will get the exact line number.
|
|
|
|
|
can you pls elaborate on that, it will be greatly appreciated.
|
|
|
|
|
|
this smilies have sounds? I don't seem to get any sound at all.
|
|
|
|
|
No, they don't.
Putting a bunch of them in your posts turns your post into unreadable noise.
|
|
|
|
|
i agree with u Guffa.Either he is not serious and playing games, I think this is the first time he is putting the query .
|
|
|
|
|
Yes I'm new here, just posted 5 or 6 times so far.
Sorry for any inconvenience.
and sorry about the subject, I was just trying to get some attention to my string, I guess I was wrong, I guess proper subject will get even more attention.
and I didn't know these smilies produced sound, even if it did I didn't get any sound so far.
|
|
|
|
|
Dear All,
I am getting the following error when i am trying to update a datagrid.I am using remoting concept to connect to the server..The datagrid is updated but before that the following erro message is thrown...
"Server encountered an internal error. To get more info turn on customErrors in the server's config file."
Someone help in this regard..
Regards,
Balaguru
|
|
|
|
|
problem is in connection of server with the client .I think.It get disconnected in between..That's y it no longer gets connected to the database.
|
|
|
|
|
You have to turn on Custom Errors in the config file on the server. Without knowing what the real error message is, it's quite impossible to give you any meaningful information.
|
|
|
|
|
Hello frnds,
i am converting the word file the word file to html in vb.net2.0, the conversion is successful but the Headers and footers of the word document are not dispay in html document ....
why ?????
is i am wrong anywhere ???
If any one have code then plzz tell me ....
plz help
thankx in advance
--koolprasad2006
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
|
i am open a word file by word object and save as it html format but till i does not get the headers and footers in html file
is there any other code????
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
Of course not! HTML doesn't support headers and footers.
If you want them, you'll have to write the code to translate the headers and footers of the word document into the formatting that you want in HTML, be it in Frames or if you had to add them to the top and bottom of the page.
|
|
|
|
|
Dear Dave Kreskowiak,
thankx a lot for reply but the problem is how can read a word document page by page.
i know i have to a collect a header and footers of each page and display them in html page, i can do it..but how can i read a word file pagewise...
is there is any code then please tell me...
thankx again for your reply
-koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
koolprasad2003 wrote: is there is any code
Only if you write it. There's tons of Word Automation examples out there. But, you do NOT wan't to automate Word from inside an ASP.NET application.
All you have to do is Google "vb.net word automation".
|
|
|
|
|
hi
Anybody made a software about Caller Id in any language.
I am made Answering Machine Software in VB6.;P
|
|
|
|
|
u mean somebody is making call on ur fon and u want their number?
|
|
|
|
|
OK. What hardware device is supplying the CallerId information? What port is it connected to on your machine?
|
|
|
|
|
here is my code that is in Class module , its my connection to the clients Table in a ValrollDB in vb6. The Previous Programmer who worked on it, Created a database in Access, and it had its up and downs, so i decided Export it to SQL. it well and working. i can connect and Populate datagrid. Now in my VB form i have a Datagrid and a search textbox and a button , when you click the Button without any search critiria, it will display everything. in the code that the Previous Programmer has wring i only changed the Connection to Point in Sql server. Now when i try to use the Search based Critiria it gives an Error. Here my code in a module, Please tell me what shoudl i change from his code, because i only change the Connection. and it gives an Error that says "The Operation is not alowed when Connection is Open"
+++++++++++++++++++++++
My Code
+++++++++++++++++++++++++
Dim WithEvents adoPrimaryRS As Recordset
Private DoingRequery As Boolean
Public Event MoveComplete()
Private Sub Class_Initialize()
Dim sSQL As String
Dim db As Connection
Set db = New Connection
db.CursorLocation = adUseServer
'Connection
CN.ConnectionString = _
"Provider=SQLOLEDb;Password=topology:User ID=sde:Location=SGIICORNETGS01;database = ValRoldb"
sSQL = "Select Name from owner"
Set adoPrimaryRS = New Recordset
'GetOwner
If OpenCN Then
adoPrimaryRS.Open BuiltSQL, CN, adOpenForwardOnly, adLockOptimistic
DataMembers.Add "Primary"
End If
End Sub
Private Sub Class_GetDataMember(DataMember As String, Data As Object)
Select Case DataMember
Case "Primary"
Set Data = adoPrimaryRS
End Select
End Sub
Private Sub adoPrimaryRS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
RaiseEvent MoveComplete
End Sub
Private Sub adoPrimaryRS_WillChangeRecord(ByVal adReason As ADODB.EventReasonEnum, ByVal cRecords As Long, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
'This is where you put validation code
'This event gets called when the following actions occur
Dim bCancel As Boolean
Select Case adReason
Case adRsnAddNew
Case adRsnClose
Case adRsnDelete
Case adRsnFirstChange
Case adRsnMove
Case adRsnRequery
Case adRsnResynch
Case adRsnUndoAddNew
Case adRsnUndoDelete
Case adRsnUndoUpdate
Case adRsnUpdate
End Select
If bCancel Then adStatus = adStatusCancel
End Sub
Public Property Get EditingRecord() As Boolean
EditingRecord = (adoPrimaryRS.EditMode <> adEditNone)
End Property
Public Property Get AbsolutePosition() As Long
AbsolutePosition = adoPrimaryRS.AbsolutePosition
End Property
Public Sub Requery()
adoPrimaryRS.Requery
DataMemberChanged "Primary"
End Sub
Public Sub MoveFirst()
If Not adoPrimaryRS.EOF And adoPrimaryRS.BOF Then
adoPrimaryRS.MoveFirst
End If
End Sub
Public Sub MoveLast()
If Not adoPrimaryRS.EOF Or Not adoPrimaryRS.BOF Then
adoPrimaryRS.MoveLast
End If
End Sub
Public Sub MoveNext()
If Not adoPrimaryRS.EOF Then adoPrimaryRS.MoveNext
If adoPrimaryRS.EOF And adoPrimaryRS.RecordCount > 0 Then
Beep
'moved off the end so go back
adoPrimaryRS.MoveLast
End If
End Sub
Public Sub MovePrevious()
If Not adoPrimaryRS.BOF Then adoPrimaryRS.MovePrevious
If adoPrimaryRS.BOF And adoPrimaryRS.RecordCount > 0 Then
Beep
'moved off the end so go back
adoPrimaryRS.MoveFirst
End If
End Sub
The error will point the Connection lines.
Help
-- modified at 2:53 Friday 18th May, 2007
-- modified at 3:05 Friday 18th May, 2007
Vuyiswa
|
|
|
|
|
Vuyiswamb wrote: CN.ConnectionString = _
"Provider=SQLOLEDbassword=topology:User ID=sde:Location=SGIICORNETGS01;database = ValRoldb"
Your connection string is bad. You put in colons where there should be semi-colons. This is the correct format for the connection string:
Provider=sqloledb;Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
You might also want to REMOVE the username and password from your posts in the future! Nothing like giving away the keys to the kingdom...
|
|
|
|