Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Two questions (more points)

Posted on 1998-11-05
6
Medium Priority
?
139 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 1800 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
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…
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…
Suggested Courses

636 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