|
I've never had this problem before on any other computer or on my previous installation of VS.Net. (I have VS.Net 2003 Pro) What I think is referred to as intellisense (the little context-sensitive drop down box that offers an alphabetical list of suggestions when you're typing code) seems to always be defaulting to something in the "t" range as follows:
When I type txtSomething (a textbox on my form) and then . the box comes up with textlength highlighted as the suggestion.
This happens when I refer to any object (combo box/label/the form itself) in code and want to change a property of that object. It's not really a problem in most cases, but when I want to change or get the text in a text box (like in the example above), I can't simply type txtSomething.text = ... or else the intellisense thinks I want to select .textlength and kindly inserts it for me when I press the space bar after typing text which then produces txtSomething.textlength = ... . the only two ways I can stop it from doing this are by pressing the up arrow key twice after typing text but before pressing the space bar(so as to select text instead of textlength , or just going back to correct it each time.
Generally, I like this feature of VB/VS.net, but it's not working the way I think it's supposed to. Anyone know what's happening? how to shut it off? reset something? thanks in advance
sincerely, Brett Peirce - PolerBear
To err is human; To forgive: divine.
-- modified at 1:58 Tuesday 18th October, 2005
|
|
|
|
|
hey
i have had this problem alot, too, but it was with daSomething.Fill and it kept selecting FillSchema. the best solution i found was to type the same commands over and over, but using something completely different. once it starts selecting the new command for you, then it should be fixed for the other one.
another problem is, (though it not be relavent in this case) is if the desired word comes after the selected word, you will have to type out almost the entire word to get intellisense to select it.
your best bet is to type the "t", scroll to your selection and hit ctrl+space. i'm not sure of any way to "reset" intellisense, though i think there should be.
hope this helps,
stephen
|
|
|
|
|
Thank you greatly. I did happen to notice it suggesting other things for other objects since that post and managed to follow your advice before reading it. Thank you nonetheless for your answer.
sincerely, Brett Peirce - PolerBear
To err is human; To forgive: divine.
|
|
|
|
|
hi all,
iam new to vbscript...
i created one application in VC++.
i would like to give brief explanation abt that...
my application is abt recording process...
when u enter any URL , it opens that url...like yahoo or google..whatever we wish...then ,if we press record button...it starts recording.
onwards what u have done(click,mousemovement,and etc) in that site , it records everything...after that we can save that in one file...
again if we want to playback that,we should open that save file...and we can play it...
For this process i want to write vbscript in a log file with using microsoft script control...how can I? can you please guide me..
iam greatful to u...
|
|
|
|
|
how to search and replace text in a rich text box ???
I am Entry level person
|
|
|
|
|
If you mean doing it through code then one way is:
Dim textToSearch as string = "was"
Dim textToReplace as string = "gonnabe"
Dim textToSearchIn as string = yourRichTextBox.Text
Dim position as integer
position = textToSearchIn.IndexOf(textToSearch)
while position<>-1 ' If found
textToSearchIn = string.concat (textToSearchIn.Substring(0,position)), _
textToReplace, textToSearchIn.substring(position+textToSearch.length-1))
position = textToSearchIn.IndexOf(textToSearch)
end while
yourRichTextBox.Text = textToSearchIn
There may be other, and better, ways of accomplishing it but this should be also easy to understand the approach.
|
|
|
|
|
I did a query in Access and used that table as the datasource. Is there a way to do a SQL statement with multiple joins to an Access table in .Net? It always chokes when I try to include multiple tables. Thanks
Jerry
|
|
|
|
|
i donot really understand, coz as i know you can databind to a table in the dataset and you just specify the dataset name and datatable name!
I am Entry level person
|
|
|
|
|
I'm trying to insert text and a graphic (jpg) into a word document. The user would select rows from their database and insert them into a word document.
My thought was to have my VB .net application execute MS Word. Upon opening a document the user selected, search for the text string [[INSERT]] (this could occur multiple times). Upon finding the text string, I would replace [[INSERT]] with text and graphic within the active document. The user would them save it. If there were other instances of the text string, the VB .net app would replace each successive [[INSERT]] with the next selected row from the database.
I'm not familar with macros in MS Word. I had look through MSDN and saw some VBA snipets, but not find and replace for Word.
Thanks for any help you could provide.
|
|
|
|
|
i'm writing a small app to change the windows mouse in VS'05, to change a key i do this:
Imports Microsoft.Win32
.
..
Dim key as RegistryKey = Registry.CurrentUser.OpenSubKey("Control Panel\\Cursors",True)
key.SetValue("Arrow","%SYSTEMROOT%\NewCursor.cur",RegistryValueKind.ExpandString)
i would like to do this same thing in VS'03, but it does not facilitate the last parameter where i use the RegistryValueKind class (or enum, whatever it is).
does anyone know the vb03 equivalent to the line:
key.SetValue("Arrow","%SYSTEMROOT%\NewCursor.cur",RegistryValueKind.ExpandString) ?
|
|
|
|
|
From the MSDN Gospel:
Note: When setting a value, the way in which the value being passed is stored in the registry is interpreted. There is no way to control whether the information being passed is stored as an sz, or an expanded_sz string, and therefore, all string values are interpreted as standard sz values.
If the .SetValue method call will not set the value properly, then you'll have to P/Invoke the Registry API calls yourself to do it correctly. Check out http://www.pinvoke.net[^] for more information.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
well it would seem that the the site you gave me only lists API functions that retrieve the datatype, not change it. am i wrong?
|
|
|
|
|
Is there any tutorial regarding skinning an application? because I found an OCX file that allows you to skin your application, it's called VB Skinner. I wonder if I can create my own skin. Thanx
|
|
|
|
|
Hi, everyone!
is that possible to do if you put something into a textbox then after you press enter you can send a http request with the value in the textbox and run the web service.
pls reply me and help me everyone!!
I am Entry level person
|
|
|
|
|
Sure - just handle the key press event.
Private Sub KeyUp(ByVal sender As Object, ByVal ea As KeyEventArgs) Handles TextBox1.KeyUp
If ea.KeyCode = Keys.Return Then
Dim tb as TextBox = sender
MyHTTPFunction(tb.Text)
End If
End Sub
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
the problem is what is that myhttpfunction, how to send a http request??
I am Entry level person
|
|
|
|
|
Oh, OK. You import the web service into your project, right click on the project and choose add web reference. When you do this, you get a class auto generated, and you can just call it's methods to call the web service.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I complete it! thx! i will treat you a big meal then!
I am Entry level person
|
|
|
|
|
I am new to VB and have some experience with C++. I am trying to use some code that I have copied out of an article from this site for creating GPS applications. ( http://www.codeproject.com/vb/net/WritingGPSApplications1.asp ) I am having trouble figuring out out how to use these classes. The one that updates the system clock with GPS time fits my needs exactly. My OOP experience is limited but I have been reviewing my books. I think that I have to read data from the comm port and put it into the class to start the process but I am not sure how to get that done. I am using Visual Studio .NET. I would appreciate any help that might get me headed in the right direction. Thank you.
Matt
mkiefer@snowaviation.com
|
|
|
|
|
Quickcat wrote: I think that I have to read data from the comm port and put it into the class to start the process but I am not sure how to get that done.
I'm not sure how this is a OOP question. There are articles on reading the serial and parallel ports on this site. If that's not what you need, please provide more info.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am trying to use the code from the "How to Write Your Own GPS Application" article but I don't know how to make it work. Assuming that I know nothing about VB.NET, how do I get that code (which looks like it is a class) to work? The application I am writing needs to update the system clock with GPS time, nothing else.
Matt
|
|
|
|
|
Quickcat wrote: Assuming that I know nothing about VB.NET,
Then what are you doing here ?
I don't know the article in question, surely if you run the demo and read the article, you'll see it working ? If not, I'd suggest asking the article author.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote: Then what are you doing here ?
To answer your question, I am here to get some assistance while learning something new. I would like to thank you for welcoming me so warmly. If this forum is not for assistance and sharing ideas then what is it for?
The article I read has no demo and I have had no response to my request for assistance from the author. I have been hoping that I could get some pointers on how to get the code that is available to work for me as it does not work alone. I believe that I need to call to it with an object but I am not sure how to do that. The article I am writing about is at the link below.
http://www.codeproject.com/vb/net/WritingGPSApplications1.asp[^]
|
|
|
|
|
Quickcat wrote: To answer your question, I am here to get some assistance while learning something new. I would like to thank you for welcoming me so warmly. If this forum is not for assistance and sharing ideas then what is it for?
OK - I'm sorry to be blunt. What I really meant was, are you really saying you have no idea how to use VB.NET ? I was advocating that surely you'd do a bit of reading and play with a few demo projects so you had enough of an idea to be able to make sense of any help that we offer you.
Quickcat wrote: I have been hoping that I could get some pointers on how to get the code that is available to work for me as it does not work alone. I believe that I need to call to it with an object but I am not sure how to do that. The article I am writing about is at the link below.
If you follow the link to WritingGPSApplications2, from the first article page, there is VB and C# code which includes a form, so I presume that it gives examples of how to call the code. It looks to me like the code in the first article is meant to be cumulative ( i.e. you only need the last file ). I'd have a look at that second article and see if it's got anything more useful in it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Ok, I will give it a try. Thank you.
Christian Graus wrote: I was advocating that surely you'd do a bit of reading and play with a few demo projects so you had enough of an idea to be able to make sense of any help that we offer you.
For the past few weeks I have been reading a book or two and working some examples. I am getting somewhat familiar with VB.NET and I am excited to learn more about it. I am having trouble getting through some of the more specialized things though, and it has been a long since I have taken any programming classes, or written any code for that matter. I will try your advice and see if I can get it going.
Matt
|
|
|
|