Don't Understand Parameters That Can Be Change And That Cannot Be Changed
Aug 5, 2011
"write sub prototype for a procedure whcih is named my data and has first parameter as a string which can be changed and second parameter of an integer which cannot be change"
View 3 Replies
ADVERTISEMENT
Aug 15, 2011
I have 10 Comboboxes in a form. All these combo boxes have databound items which come from the same column in a table in the database (access 07) (Am designing a billing software, and these comboboxes show the items (10 lines of them).All these combos reside in one Groupbox.Now for the strange (scary/funny) part, whenever I change a value of 1 combo, all the other combos change automatically and show the same value as the one that was changed. (strange!).
View 6 Replies
Sep 2, 2009
I have a data entry form with many text boxes/combo boxes/controls. I want to change their bgcolor everytime the user makes a change so they are aware of what changes they have made before commiting.
My plan is to store the original value in the tag and comapre in the validated event.
I don't won't to write the same code everytime I need a control to behave that way. I've never written a customcontrol before.
how to achieve this by probably subclassing the control and reuse the code regardless of the type of control it is?
View 2 Replies
Apr 16, 2011
After packaging my created program.... and install it.... if i install it in my system its ok... but if i install it to other system... some labels... changed position....
View 2 Replies
Jun 17, 2010
Is there a way to set the IDE to automatically update all usage of a variable when the case is changed in the declaration? I know ... if I typed it correctly in the first place it wouldn't matter! And I do know how to use search/replace, I'm just lazy.
View 4 Replies
Jun 15, 2012
Code for button:
Protected Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click
Dim li1 As ListItem
Dim addList As New List(Of ListItem)
[code]....
Updates are happening on the load of a dropdownbox This has something to do with autopostbacks and the page load I think, can someone please help When I click the add button even if I have selected an item in the listbox, it will always return an error message. I don't think the listbox changedselected item is firing.
View 1 Replies
May 25, 2010
I have made several changes to the columns in an Access db, such as additional columns, column type changes, etc. how do I now incorporate those changes into my datasource? Do I need to delete the datasource and create it from scratch?
View 1 Replies
May 17, 2011
1.Multiple monitors are connection to one computer and they are extended.
2.My window spans to two monitors (Any window like notepad or settings wizard).
3.We change Visual Style From ON to OFF ( i.e. Changed theme from basic and high contrast to Aero or vice versa)
4.The window which was present on two gets shifted to either primary or secondary monitor.
5.This behavior is ok with normal application but I am developing such application which fails if window moves away.
6.I have added handler to check if user changes theme or visual style using :
AddHandler SystemEvents.UserPreferenceChanged, AddressOf UserPreferenceChangedHandler And in UserPreferenceChangedHandler I have checked if UserPreferenceCategory.VisualStyle changed and if it is changed then I have reset the window position back to old values before theme changed , but still it not reverting back to old position.
7.One strange behavior I observed is, it works if I set break point and step through code , but if I remove it then it's not working.
a. Added handler to catch user preferences changed event.
Private Sub RecordingWindow_Load(sender As Object, e As System.EventArgs) Handles Me.Load
AddHandler SystemEvents.UserPreferenceChanged, AddressOf UserPreferenceChangedHandler
End Sub
b. Copied old position
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
If m.Msg = WM_MOVING Then
' Console.WriteLine("Window is moving")
[code]...
d . This is additional code which i tried instead of WndProc
Private Sub RecordingWindow_LocationChanged(sender As System.Object, e As System.EventArgs) Handles MyBase.LocationChanged
_windowLocBeforThemeChanged = Me.Location
End Sub
View 2 Replies
Nov 10, 2010
I am trying to migrate from Access Database to SQL server database. Do I need to make changes (for saving, reading, deleting etc. data) to my code as well?
I understand I need to change connection but what about code?
View 2 Replies
Feb 22, 2011
dim oXT As New Generic.SortedDictionary(Of String, MyClass)
[Code]...
View 4 Replies
Jun 1, 2009
have an application written in Visual Basic, .NET 3.5 (VS2008)... and have reports created in Crystal Reports 2008 .[code]...
I want to change some parameter values when report displayed in report viewer at runtime... The user should be able to modify these values.
View 3 Replies
May 5, 2012
I changed my Username on my computer from i.e. "xxxxxx x xxxxx" to "Dennis"
VB 2008 during a compile gave me the following error: Error reading icon 'C:Usersxxxxxx x xxxxxAppDataRoamingMicrosoftVBExpress9.0VSProjectApplication.ico' -- The system cannot find the path specified.
The file "VSProjectApplication.ico" is in 'C:UsersDennisAppDataRoamingMicrosoftVBExpress9.0'
Somewhere in the VB2008 "configuration" files I believe that I need to manually change the old path to the new path.
I found the old path in the ".suo" file. The ".suo" file is not a text file. How can I edit the .suo file, save it so that it will work?
View 4 Replies
Mar 18, 2010
We did development of a VB application on a machine with a high resolution screen. Also the machine where the real application runs has a high resolution screen. After a while we wanted to do minnor changes on the application and we wanted to use a low resolution laptop for that. When we opened the application for editing we saw that all forms changed their sized automatically AND unwanted.How can we build and change applications in one form size that does not change depending on the resolution of the machine on which edits are made?
View 2 Replies
Jan 20, 2010
on my Form I have a DataViewGrid and some textboxes with a save button (they are filled with additional data of the selected row).Save is disabled first, when I change something in the textboxes the save button is enabled.When the user changes a gow in the grid, I want to ask before changing the grid row, if he wants to save (if the button is enabled).I am using RowEnter but this is too late, then the selected row already changed (and my textboxes already got new data)...What event can I use to ask if I should save stuff before the user changes a row?Something like BeforeRowChanging with a chance to cancel changing the row?
View 2 Replies
Oct 18, 2010
I have been given an old dll and the assignment of accessing it through C# .NET 3.5. I believe the dll was originally built with VB6, but am not positive. There is no documentation or source for the dll aside from an example for how to use the it in VB6. I have been able to succesfully access it through VB.NET 3.5. Example code for accessing looks like this:
myLib = CreateObject("MyLib.api")
myConnection = myLib.CreateObject("NameOfConnectionObject")
myConnection.do_something("abc")
There are several different objects that are created from the library and all of those objects have different methods. I tried using different dll reading tools, but all the export methods show up as garbage. I also tried importing the dll in visual studio, but I get an error stating the dll is not accessible and/or not a COM object or assembly. So, I only know about the methods from the old documentation which is sparse. how to access in C# and/or find out more about this mystery dll?
View 2 Replies
Apr 24, 2012
i cant understand what constants are.
View 3 Replies
Dec 4, 2011
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
Dim d As Integer
Dim price(20) As Double ' Adjusted close price
[code]....
What is the for ... next loops in the second subroutine doing? What is the sim() array meaning?
View 3 Replies
Feb 1, 2009
I have a modem that I've been trying to communicate with only to discover this....went to the modem properties and queried the modem.....
AT+FCLASS = 0,1,8
AT#CLASS = ? COMMAND NOT SUPPORTED
(And I had been trying to use AT#CLASS = 8 all day).So, what does this mean?That the modem is automatically in voice mode (or will automatically choose it's own mode) and forcing it isn't necessary?Still no luck with the connection response messages either -- RING, etc.All I can do is make a call and the called number will appear in a textbox.
View 14 Replies
Feb 18, 2011
I am getting a build error. If I try to build again after getting this error, it will build just fine.
View 9 Replies
Jan 4, 2011
[code] I cannot seem to understand why left & lan isn't working in the vb 2008 edition
View 2 Replies
Jun 6, 2011
how to understand a msakeditbox in null?
View 4 Replies
Jun 5, 2010
I've been trying to understand classes and objects. Yes, I'm thick headed and slow, but I made the decision to go to .Net and I am determined to improve my coding skills to be more efficient. I have spoken to Atma several times on the topic and read most of his posts concerning classes and objects, but still came away a little baffled (He's really advanced for me yet). I needed a simplistic analogy for a reference point to begin understanding. I was reading about OOP written by MikeJ in the following thread/post ...[URL] and it all started to become clear in this statement , but I would like some reassurance that I'm getting it ..."A car IS-A vehicle, while a dog HAS-A tail. The car would be an object declared as type Vehicle, while the dog would have a member that IS-A tail. However, Fido IS-A dog. The dog class is the base template for all dog objects, so when we declare Fido as a dog, Fido is an object. Since Fido IS-A dog, Fido HAS-A tail."
From this I have taken the following understanding...
Vehicle ... ' Class
Car ....... ' Object
Truck ... ' Object
Van ....... ' Object
And from that can I infer that this is true?
Dog ....... ' Class
Fido ... ' Object
Tail .. ' Member of Fido
So to apply this to a program I wrote recently that tracks Generator service...
Generator ' Would be the class
Brand X ' Would be an object
Spark Plug ' Would be a member
Gas Tank ' Would be a member
Brand Y ' Would be an object
Brand Z ' Would be an object
This statement also helped ...
""Class" and "object" are sometimes used interchangeably. However, classes describe the structure of objects, while objects are instances of classes. Each instance is an exact copy of its base class. Because an object is an "instance" of a class, the act of creating an object is called instantiation. To describe it better, a class is a blueprint, and an object is a building based on that blueprint". I can understand this (I think) and it refers to a basic template such as ..."Generator" (my class or blueprint or template) Generators have an engine, powerplant, fuel tank, etc. These are basic requirements to be a generator. (Template or Blueprint) They can differ by Brand of engine, Size of powerplant, and type of fuel used. (Based on template or blueprint) Do I have it down now? MikeJ also made this statement ..."you can't access certain types of class members from outside of the class itself." From this I assume you would need to assign a Global variable the value of the class member if you needed to use it outside of the class?
View 17 Replies
Nov 21, 2009
I'm just getting back into VB and was never a pro. The last environment I was in, briefly, was VB6 but spent a good amount of time coding in early VB's back to QB.I'm trying to read RSS feeds and found a nice demo reader but now I want to understand the code I'm seeing:[code]
1. Why does the demo create a new XML to read through an existing XML or is this all in memory as I can't find an actually file? Is this even needed as what I want to do is read the RSS feed, grab some info from it (Source, Title of each story, Date stamp, author and the story text) and then process that in various ways (not actually view it... I want to e-mail specific stories directly to me that fit my search criteria). Or is this just opening the XML out on the web? That would explain why sending it "test" gives me an error saying it can't find "test" in the bin folder as without an HTTP address it goes local.
2. doc.load... what check can I perform here to be certain that the data entered by the user is actually a valid feed? It should, for example, have a first line header that is reliable but is that the best method?
3. Where or how are the elements stored that I can then refer back to pull the data out I want?
4. I don't understand how this part works: navigator.Select("/rss/channel/item/title") Can someone shed some lite on the 4 pieces at the end?
5. I'm assuming the clean-up isn't really needed for e-mail but I didn't remove it as it doesn't seem to harm anything.
View 2 Replies
Feb 20, 2011
I have Visual Basic 2010 and also bought a book to study and practice problems. I know how to add controls and assign properties but get confused with the coding part.understand this somewhat?
Here is one problem I am working on-
Write a program to make change for an amount of money from 0-99 cents input by the user. the output of the program should show the number of coins from each denomination used to make change.
Now I know what controls i need on the windows form but I am sorta lost on the coding to make this program work.
View 3 Replies
May 25, 2010
At the following cmd.ExecuteNonQuery() line, I get the following error message: [code] I have followed the example at page [code] as closely as possible, but it does not work.Additionally, I am not sure of the syntax for the length (64) that I have for the BigInt or if it should even have a length.All of the examples that I have found in MSDN uses only parameters with character rather than numberic type. [code]
View 6 Replies
Aug 6, 2011
Are you familiar with prefix and postfix? I just wonder how to solve it especially if the expression is too long.
View 17 Replies
Aug 1, 2010
I want to make an application that will remind me to give a break once in 45-50 minutes. But I want it to determine if I am playing a game or not at the time that I have to give break. In short, if any application is in fullscreen mode (or maybe using graphic card) I want to know. Is there anything about that in .NET?
View 12 Replies
May 13, 2011
I have created a new usercontrol. My usercontrol contains several other controls like labels, buttons and so on ...When I set the Font property of the usercontrol I want that font property value to propagate down to the child controls.
View 2 Replies
Jan 16, 2009
Can someone explain to me what this is doing.
[code]...
View 4 Replies
Oct 14, 2011
My questions isn't really about a programming language but, since I did not find a general programming forum, I chose this one as I know VB.Net. There's this game, that you might already know, which is called Star Wars Galaxies (And is ending soon actually .. ). For each account and character, the game automatically saves chat logs in a .cht file. A player can have multiple chat channels that have different chat filters (group chat, public chat, etc) and they are all saved in this file. I'm thinking they are probably separated by some kind of a "flag" for the game to be able to detect them.
[Code]...
View 3 Replies