Solved

Two questions (more points)

Posted on 1998-11-05
6
134 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

696 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