Solved

Two questions (more points)

Posted on 1998-11-05
6
130 Views
Last Modified: 2010-04-30
Lets see if i can explain myself. My first question is: can i modify the setup program so the user can only install my application once? How? And the second question is that i want to write text in a rich text box. The text is generated from a database in this manner: title, text, title, text ... I want to write all those titles using a different font than the text. How can i do that?. Thank You
0
Comment
Question by:turin
  • 2
  • 2
  • 2
6 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1443262
The first question is an often asked question. A simple trick is to put a key in the registry after installation. If its there do not install. It's not 100% save but simple.
0
 
LVL 3

Accepted Solution

by:
BGillham earned 450 total points
ID: 1443263
If your aim is to stop the user installing on more than one machine then this cannot be done efficiently. So the answer is NO. The reasons are countless, from hard disk crashes to simply reformating the drive will counter the attempt. If your concern is registration the you can always devise a method that that the user has to email you and then you send him a registration number each time he / she installs using the current date and time as part of your alogrythm. As for the rich text box you would have to modify the text outside of the RTF Box  and then populate the control.
0
 

Author Comment

by:turin
ID: 1443264
Mirkwood: that solution is not what i need because what i want is that nobody can install the program in another computer. I think that i don't explain myself right. I have to study more english. Sorry.
BGillham's: thank you. The points will go for you but first can you help me with RTF codes? How can i change fonts and other attributes. I mean, what text should i send to the richtextbox?
To explain me better and if you know HTML suppose that i want to do this:
<center><font face=Arial>title</font></center><br>
<font face=Times new roman>text<br> And repeat it again. Can you help me? Or if not can you recommend me a good web page about RTF. Thank you again.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 13

Expert Comment

by:Mirkwood
ID: 1443265
You can make the setup program self-destructable.
That is. If you distribute it on a writable media it can mark itself as already been installed.
0
 
LVL 3

Expert Comment

by:BGillham
ID: 1443266
Here is the rather cumbersome way of formating the text
    With RichTextBox1
        .TextRTF = "{\rtf1\ansi\ansicpg1252\deff0\deftab720" & _
                   "{\fonttbl{\f0\fswiss MS Sans Serif;}" & _
                   "{\f1\froman\fcharset2 Symbol;}" & _
                   "{\f2\fswiss\fprq2 Arial;}" & _
                   "{\f3\froman Times New Roman;}}" & _
                   "{\colortbl\red0\green0\blue0;" & _
                   "\red255\green0\blue0;\red0\green0\blue255;}" & _
                   "\deflang7177\horzdoc{\*\fchars }{\*\lchars }" & _
                   "\pard\plain\f2\fs20\cf1 Brian\plain\f3\fs20  " & _
                   "\plain\f2\fs20\cf2 Gillham\plain\f3\fs20\par }"
    End With

0
 

Author Comment

by:turin
ID: 1443267
Excelellent BGillham's. You've help me very much. Here are the points.
Thank you also Mirkwood.But how do i do that? I think i'll have to forget that.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now