Solved

Two questions (more points)

Posted on 1998-11-05
6
129 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 13

Expert Comment

by:Mirkwood
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

771 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

11 Experts available now in Live!

Get 1:1 Help Now