|
hi ...if u need more codes..pls visit at www.dotnetspider.com or send me ur email address
i will send u the sample code...
since i duno where to attach the smaple code here....
my email ----kumaran_kalidas@yahoo.com
kumar
|
|
|
|
|
thanx for replying .. thats my email ..
modern_night@hotmail.com
or
A4M@Gawab.com 2GB Capacity if the email was large u can use it ..
لا اله الا الله محمد رسول الله
|
|
|
|
|
Help I've tried many things to make a list box appear when I write something down
Example
I write an "A" and a list box appears
can anyone help me out?
|
|
|
|
|
Will you explain more about what you want?
Where are you going to press a key? (i.e. on a form, a textbox, etc.)
should the list box be created dynamically at runtime or it can be created in design time and just become visible when you press the key?
Do you mean some kind of shortcut for appearing a listbox?
|
|
|
|
|
hmm what I mean is that when I write a whole word then the list box appears or when I write a letter then the program should read the letter then the list box should appear
By bad for not being much specific first time
|
|
|
|
|
You still have to describe this better. Are you talking about showing a listbox while type typing in a RichTextBox? Something like IntelliSense in Visual Studio?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
First of all, there are two different questions here
1. How to cause the Listbox to become visible when i want to?
very self explenatory, there are two options:
a. create the list box in design-time, with the 'Visible' property set to 'False'
then, when you want it to become visible change the property
b. create the list box dynamically in run-time which i will not explaine here
there are a lot of articles describing this
2. How to "sense" that the somthing specific is being written ?
Well.... basically there is an event fired when a text in a textbox
is changed (there are also a lot of examples on handling events)
handle this event and check what has changed, you can keep a copy of
the content in the textbox, and when it changes compare both copies,
you can scan for the last changed character backwards to see what is written,
there are many possibilities, pick one.
Hope this helps, you are being very vague
next time try explaining what you are trying to do, like "i'm trying the sense when someone is typing a url so i can highlight it".
ok ?
Fade (Amit BS)
|
|
|
|
|
yes thank you
i'm not being vague, I just didn't know how to explain it my bad
|
|
|
|
|
Hi i'm having problems here I made this code but after it finds and p I try to write more stuff but it gets stuck selecting the p. Can anyone help me out here with the codes?
Private Sub Timer1_Tick_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Try
RichTextBox1.SelectionStart = RichTextBox1.Find("p")
Dim SelectorFont As New Font(RichTextBox1.Font, FontStyle.Bold)
RichTextBox1.SelectionFont = SelectorFont
RichTextBox1.SelectionColor = RichTextBox1.SelectionColor.Black
Catch ex As Exception
End Try
|
|
|
|
|
Hi Rylogy!
i'm having problems here I made this code but after it finds and p I try to write more stuff but it gets stuck selecting the p.
You simply forgot to change the length of the selection using the SelectionLength property.
RichTextBox1.SelectionLength = "p".Length
You might also want to use a more generic approach right from the start by supporting strings with any length. A first prototype of a method might look like this:
Private Sub HighlightText(ByVal Highlight As String)
Dim NextPosition As Integer = 0
Do
NextPosition = RichTextBox1.Find(Highlight, NextPosition, _
RichTextBoxFinds.None)
If NextPosition > -1 Then
RichTextBox1.SelectionStart = NextPosition
RichTextBox1.SelectionLength = Highlight.Length
Dim SelectorFont As New Font(RichTextBox1.Font, _
FontStyle.Bold)
RichTextBox1.SelectionFont = SelectorFont
RichTextBox1.SelectionColor = Color.Black
NextPosition += Highlight.Length
Else
Exit Do
End If
Loop
End Sub
The next step would be to replace the hard-coded object RichTextBox1 with an object variable.
Best regards
Dennis
|
|
|
|
|
|
hmm
Private Sub HighlightText(ByVal Highlight As String)
what's that for?
|
|
|
|
|
|
I'm trying to find a safe way to put a delay of 4 seconds in my code in VB 6.0 (NOT .NET). This is the code I have:
Public Sub Wait()
i As Integer
Halt = 4
Dim LTime
LTime = Timer()
While Timer() - LTime < Halt
i = 1
Wend
End Sub
This works great except for one problem. If I am running a form, press a button that calls this function, and then close the form before this function is completed, the visual of the button is corrupted. Basically, when the draw window is called (IE with a form.show call), the button shows through to the background and saves that image at its interface. IE If I have a word doc behind it, close the form with wait in progress, and form.show the form, it will bleed through with the button with whatever text is in the box of the button. How do I fix this?
Thank you,
Red Sunday
-----------------
http://www.zachcalvert.com
|
|
|
|
|
Hi Red!
I'm trying to find a safe way to put a delay of 4 seconds in my code in VB 6.0 (NOT .NET).
First, don't use While...Wend to loop. Use a Do loop instead (see also How to Use Looping Structures in Visual Basic for Applications[^]). Second, don't use a loop at all. You can use Task-Manager to quickly find out that your loop will lead to 100% CPU usage. Use the API function Sleep instead.
Option Explicit
Public Declare Sub Sleep Lib "Kernel32" (ByVal dwMilliseconds As Integer)
Public Sub Wait()
Sleep 4000
End Sub
You can find more about Sleep and an API function called SetWaitableTimer (which might solve your re-draw problem) in the article How To Use SetWaitableTimer With Visual Basic[^].
Best regards
Dennis
|
|
|
|
|
depending on what you are trying to do, there are two main options:
1. Causing the Code to completly halt
can be done by using the Sleep method (i saw you got a got overview of it)
or by looping like you did
BUT - add a DoEvents() call inside the loop, this will allow the window to redraw
this approach of halting is not very safe to begin with, especially in VB6 that runs
EVERYTHING on a single thread.
you might want to try these two approachs:
2. Timer based halt.
Create a timer object, and set it to start timing you in the 'Wait' method
handle the timer's "Timer" event, in the hanlding sub
a. disable the timer
b. call a method to continue the operation
there are additional ways to achieve this, but i think this will get you going
Fade (Amit BS)
|
|
|
|
|
I had copied data from datatable A into datatable b by using the "datatable.copy" function. I was wondering if anybody can tell me if after the copy, the rowstate in datatable b will change to "Added". If not, can you show me how to add rows from one table to another row by row? Will this way then change the rowstate to added? I am just a beginner so I am sorry if this question seems trivial to some.
Thanks in advance!!!
|
|
|
|
|
I want to Restrict Websites on IE through a LOG file eg XML all the restricted websites will be given in that XML file and whenever a user open on my pc the site my program will check that whether it is restricted site through checking XML file
Please help me out ..
Thanx in Advance
R A M RIz
|
|
|
|
|
I know and understand math operators in vb.net. I am only using vb.net. I create a math windows application but cannot get the gist of using fractions. In the like using a fraction to retrieve a result in fraction.
(e.g. 1/4 + 1/8 = 1/2). Can anyone help in this instance of programming with fractions in Visual Basic.Net. The language is not written in C# or vb6, but in visual basic.net.
bravo659
|
|
|
|
|
Dessi Bravo wrote:
1/4 + 1/8 = 1/2
You mean 3/8
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
Yeah I meant 3/8. Would anyone know how to convert this from a decimal to a fraction, or fractions only?
bravo659
|
|
|
|
|
Hi please help with code to use a picturebox control or image control to display a photo from an access db the field name is photo and the datatype is memo. How can it contain the string character? When i try this code picturebox1.picture = stu("photo") i receive a datatype error.
thanks
|
|
|
|
|
This shouldn't be a memo field, but an OLE Object field.
I am assuming that you want to display a photo IN an Access form or Report, not FROM an Access database.
In any event, Access won't take the image into the database unless the field type is OLE Object. Once you use this object, you will get additional controls to import images into the record.
You won't need to code this either.
mmcdonald
|
|
|
|
|
i want to open cash drower when i print a report how should i do this using
Com port or LPT port.
can any one help me out there.
thanks.
|
|
|
|