|
Hi All
I have a small problem that I hope someone will be able to help with...
I have a windows app that does a lookup in a DB table to find words that match in its glossary.
If the word finds a match in the glossary table, I want to have that word highlited (With a Clickable Link) in a RichTextBox so that the user can click on the link and another window will open up and display the glossary entry.
I don't have a problem doing the lookup. It's the inserting a link into the RichtextBox in the middle of plain text, for the word that has a glossary entry. I cant use the DetectUrls property as that is only for web links.
If you know how to do this, Thank you.
Otherwise if you know how to do this with a different control, please let me know
Thanks
Quinton Carroll
I know what I know and I don't know what I don't know
|
|
|
|
|
Hi,
i am using a online dating site(a simple one). about images..is it good to store images in the database (ms sqlserver 2000) using ado.net
if yes i am continuing
my image uploads are working file now about managing images for user.
each user should be able to upload upto 5 images.
below are my codes
.aspx
----
aspx.vb
-------
Dim id As Integer = Request.QueryString("id")
objConn = New SqlConnection(dbPath)
Try
cmd = New SqlCommand("select * from userImage where userId='" + id.ToString + "'", objConn)
objConn.Open()
dr = cmd.ExecuteReader
'Dim img As Byte() = CType(cmd.ExecuteScalar(), Byte())
If dr.Read = True Then
Response.BinaryWrite(dr("bits"))
End If
Response.ContentType = "image/jpeg"
Catch ex As Exception
Response.Write("Oops what went wrong:" + ex.ToString)
Finally
objConn.Close()
End Try
--------
now the problem is
each image should have delete link which will actually delete the image and should be option like set image as primary pic.
in my aspx.vb if there is only one image rest of the images should be invisble instead of having img icon with no image.
please help me how to achieve this.
thanks in forward as i am just beginner in this area.
robin
|
|
|
|
|
Hi I solved it myself. there is building
|
|
|
|
|
Is it possible to run a vb.net exe file on Windows'98 OS?
What component have to load and where it is avaiable?
Regards
Suman
|
|
|
|
|
Hello
Yes you can.
Just install the .Net framework on the Windows 98 computer.
I dont know what windows 98 the .Net framwork is supported, but I am sure that in windows 98 SE it works.
|
|
|
|
|
Yes yes
Just install the .Net framework
|
|
|
|
|
Do we need to install Internet Explorer 6 or higher version, before install .Net framework
chatura
|
|
|
|
|
You're looking for the System Requirements[^] page on MSDN.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Dont forget the Windows Intaller..
|
|
|
|
|
Yes it is possible to run vb.net exe files in Windows 98 , all you have to do is to just install the .Net Framework 1.1 or higher on this OS . You can download the .Net Framework for free from www.microsoft.com
|
|
|
|
|
Hello,
what I try to create is a .Net user control which can be used in VB6. Until now I wrote a class library with a .Net form and a COM class. This library I can use in VB6 without problems. But the creation of a user control seems to be a little bit more difficult. Has anybody done this before successful? Does anybody know or have a tutorial or an example for this?
Greets
Patrick
|
|
|
|
|
|
Public Class AdvanceLogon
Inherits CombinedDestination
<browsable(false)> _
Public Overrides Property ConnectionString() As String
Get
End Get
Set(ByVal Value As String)
End Set
End Property
End Class
when i complie the code, it gives the error ConnectionString is not overidable because it is a part of internal class of CombinedDestination class. How we can hide internal class property
kumar Prabhakar
-- modified at 5:06 Wednesday 8th March, 2006
|
|
|
|
|
To hide the member of base class, you can use shadows keyword.
Public Shadows Property ConnectionString() As String
Get
End Get
Set(ByVal Value As String)
End Set
End Property
!alien!
|
|
|
|
|
It does not hide ConnectionString in PropertyGrid of CombinedDestination Class.
abc
|
|
|
|
|
IIRC, you can't. You'd have to take that class out of the CombinedDestination class to do this.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I want to make my VB application support Unicode for Strings.So I want to know if all String handling functions in VB support Unicode.If no, please let me know the Unicode supporting functions for Strings in VB.
Regards
Ranjan
|
|
|
|
|
Is your application built on VB6 or VB.NET
|
|
|
|
|
Hi,
My Application is Built on VB6.0.
Regards,
Ranjan
|
|
|
|
|
Yes, all strings in VB6 and VB.NET are stored as Unicode.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have created this pop up window that comes and go 3 times using timers. the timers will invoke this method
Private Sub startDisplay(ByVal displayCall As String)
setLocation()
Me.Opacity = 0
Me.Show()
currentTimer = timerFadeIn
timerFadeIn.Start()
End Sub
THE TIMER EVENT IS LIKE THIS
Private Sub TimerEventProcessor(ByVal myObject As Object, _
ByVal myEventArgs As EventArgs)
countWarnings = countWarnings + 1
Select Case countWarnings
Case 2
startDisplay("B")
Case 3
startDisplay("C")
AlertWindowTimer.Stop()
End Select
End Sub
i'M HAVING A PROBLEM THAT MANY INSTANCES OF THIS WINDOW CONFLICT AND FREEZE THE SYSTEM
HOW COULD I USE SYNCLOCK TO ORGANIZE THIS?
I ADDED SyncLock GetType(AlertWindow) IN ALL THE METHODS THAT INVOKE THE WINDOW. IT GOT BETTER BUT STILL FREEZES AFTER SEVERAL WINDOW MORE
IS SYNCLOCK THE BEST OR IS THERE A WAY TO CREATE A INDIVIDUAL THREAD TO EACH INSTANCE?
|
|
|
|
|
You don't need to use Timers for this at all.
All you need is a couple of methods that adjusts the Opacity of the form, and a couple of things to support them:
' Form1 code
Imports System.Threading
.
. FadeUpTo(100)
.
. FadeDownTo(0)
.
Private Sub FadeUpTo(ByVal maxOpacity As Integer)
For i As Integer = OpacityInt32 To maxOpacity Step 5
SetOpacityAndWait(i)
Next
Private Sub FadeDownTo(ByVal minOpacity As Integer)
For i As Integer = OpacityInt32 To minOpacity Step -5
SetOpacityAndWait(i)
Next
End Sub
Private Sub SetOpacityAndWait(ByVal opacity As Integer)
Opacity = i / 100.0
Application.DoEvents()
Thread.Sleep(35)
End Sub
Private ReadOnly Property OpacityInt32() As Integer
Get
Return Fix(Opacity * 100)
End Get
End Property
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Just asking is it possible to implement this kind of code in VB .NET? I've been searching for the tutorial, source etc but seems can't find nothing that works. I come accross some task manager that can read, start and kill a local process but nothing works on remote. So if anyone can help me implementing this module, please do so. This is my final year project, I really need your help because this is the last module that remains unfinished.
Just to ask you is it possible, when running a task manager (that can start/stop process(es)) on a client PC, and running the same task manager on a server pc but the content views the remote (client) processes and I can control it from there.
Here is the code that managed to do the local task:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=170&lngWId=10
Thanks in advance..
|
|
|
|
|
x86phre3x wrote: read, start and kill a local process but nothing works on remote
You can't find anything because it's not really supported the way you think it should be, nor is it a recommended practice. Starting a remote process is a HUGE security risk. You CAN start remote processes, but by design, they are not allow to run interactively on the users desktop.
You can view a remote task list, and kill off processes though, so long as the account that your app is running under has administrator rights to both machines.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|