User Profile

Collapse

Profile Sidebar

Collapse
desertavataraz
desertavataraz
Last Activity: Dec 26 '09, 12:48 PM
Joined: Jan 31 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • desertavataraz
    started a topic Storing information with a text file.
    in .NET

    Storing information with a text file.

    I am using Visual Basic 2008:

    I have a type of word processing program that uses a Rich Text Box and it colors specific text within the file it has open. On the form, there are colored panels that, when someone moves their mouse over, give a tooltip that tells what the text of a specific color designates. What I want to do is store a string with the text file that provides these specific color designations, i.e.:

    storedString...
    See more | Go to post
    Last edited by debasisdas; Dec 12 '09, 02:21 PM. Reason: Moved to .Net forum.

  • I was able to find a solution to this problem, using the code I found on the internet at:
    http://social.msdn.microsoft.com/For...3-1fd82693d340

    The code is listed below:

    RichTextBox1.Co py()
    Dim atext As IDataObject
    atext = Clipboard.GetDa taObject()
    Dim...
    See more | Go to post

    Leave a comment:


  • Copy from RichTextBox1 to RichTextBox2 changes text layout

    My main form has a RichTextBox, the contents of the RichTextBox has section numbers, i.e, S1, S2, S3 etc. I am using these section numbers to allow the reader to view a particular section in a seperate window, while reading the main text. For example, suppose they want to see a chart relevant to chapter 3 that is in the index, so they put in the section number and click the section button and the code finds the section start and end, then:
    ...
    See more | Go to post

  • desertavataraz
    replied to VB 2008 - WaitCursor does not work
    in .NET
    Thanks for the reply

    That looks like a very good suggestion, I will try it out when I get back from vacation . .. Thanks!
    See more | Go to post

    Leave a comment:


  • I believe you are correct on that . . . . the thing that I have not understood is:

    You type in this line: "Public Property x() As Integer" then hit enter
    and you get:
    Code:
         Public Property x() As Integer
    
            Get
    
            End Get
            Set(ByVal value As Integer)
    
            End Set
        End Property
    Since there appears to...
    See more | Go to post
    Last edited by Frinavale; Jun 15 '09, 07:29 PM. Reason: Added code tags. Please post code in [code] [/code] tags.

    Leave a comment:


  • Thanks for the info . . ..

    I tried this earlier in a class module, and got a stack overflow error, then I added a module to the project, and created functions to get and set for each of the two things I was passing and it worked fine. I have tried using properties quite a few times before, but they seem to be quite buggy.
    See more | Go to post

    Leave a comment:


  • Passing info from one forms code to the other

    This is Visual Basic 2008:

    I have an application where I have the main textbox on the main form, and the search window on a seperate form, and whenever someone clicks the mouse in the main forms text, I want the search window to detect that change so that if during a search, someone want to go back and change something, they can just click the mouse in the textbox and restart the search from that location. (So I am just trying to update...
    See more | Go to post
    Last edited by Frinavale; Jun 5 '09, 03:21 PM. Reason: Added code tags. Please posto code in [code] [/code] tags.

  • desertavataraz
    started a topic VB 2008 - WaitCursor does not work
    in .NET

    VB 2008 - WaitCursor does not work

    I am trying in Visual Basic 2008 to make the wait cursor appear as a file is opening, in case it is a long file, and this is the code, but it does not work:
    Code:
            Dim openFile1 As New OpenFileDialog()
                If DiscardChanges() Then
                    Me.UseWaitCursor = True
                    ' Initialize the OpenFileDialog to look for RTF files.
                    openFile1.DefaultExt = "*.rtf"
    ...
    See more | Go to post
    Last edited by Frinavale; May 25 '09, 02:41 PM. Reason: Fixed code tags. Please poste code in [code] [/code] tags.

  • desertavataraz
    replied to Saving background color VB 2008
    in .NET
    This is Visual Basic 2008, not C++, no "Trim" function is available for
    color . . . .

    The following is the solution to the problem . . .

    Code:
                'Save color to registry
                Dim bColor As Color = Me.RichTextBox1.BackColor
                My.Computer.Registry.SetValue(regPath, "bColor", bColor.ToArgb())
    ...
    See more | Go to post
    Last edited by tlhintoq; May 19 '09, 03:10 PM. Reason: [CODE] ... your code here ... [/CODE] tags added

    Leave a comment:


  • desertavataraz
    started a topic Saving background color VB 2008
    in .NET

    Saving background color VB 2008

    I am trying to save the background color of my main textbox so that if a user changes it, those changes will be automatically save and retreived when the user re-opens the application. The code builds fine, but throws and error, saying "specified cast is not valid". It appears that the registry only accepts string values, but attempting to convert to a string has the problem of getting it back to a color value. So far nothing I have...
    See more | Go to post
    Last edited by debasisdas; May 18 '09, 09:08 AM. Reason: thread moved to .Net section of the forum

  • Thanks

    That worked. . . . and from a fellow Arizonian, at that!
    I tried ((btnFind)sende r).Focus(); but it did not like the
    paranthesis or the semicolon, so I just did btnFind.focus and it
    worked like a charm! Thanks again.
    See more | Go to post

    Leave a comment:


  • desertavataraz
    started a topic Don't Tab to next box on enter

    Don't Tab to next box on enter

    I am trying to find out how to retain focus on a button if you use enter to activate a click event on the button. When you hit the enter key, the focus should stay on the button until you hit tab, but presently, it jumps to the next button.
    I would post some of my code, but none of my attempts even came close to working, so I am at a loss as to were to even begin. It is probably some simple two-line piece of code that I am unaware of ....
    See more | Go to post

  • desertavataraz
    started a topic C++ GUI design
    in C

    C++ GUI design

    I have seen various methods of GUI design, using MFC, QT4, and wxWidgets, and I plan on doing some GUI design in the near future. I was wondering if someone could tell me more about the best way, and if they have used any of the above methods. I am interested in writing for more than one platform, and using Unicode, because I will be using two different languages in the application. But I don't want to start on using and learning a particular...
    See more | Go to post

  • desertavataraz
    started a topic Unicode fonts vs Seperate Self-Made Font
    in C

    Unicode fonts vs Seperate Self-Made Font

    I am going write an application in C++ that allows the user to see two languages at once, and allows them to search each individual language for words or keywords. I have a font that I made specially for the non-English language, which would allow me to simply use different fonts for each specific language. I could also control how the search works simply by reading the font tags, for each language, so I only get results in that specific language....
    See more | Go to post
No activity results to display
Show More
Working...