Public Declared Control To Be As Value Cache?
Apr 9, 2011
I have a form intended to generate serial number and this serial number will be distributed to the other forms. I use to pass the serial number to the other forms this way:
if frm1.visible = true then frm1.txtserial.text = frmserial.txtgenserial.text
if frm2.visible = true then frm2.txtserial.text = frmserial.txtgenserial.text
if frm3.visible = true then frm3.txtserial.text = frmserial.txtgenserial.text
and so on....I want to have a method that will ease the method above. Is there a way to declare a txtgenserial textbox globally and the other forms will just refer to it?ex. Public genserial(tb as textbox)' that example is only a demo to what I wanted to get, this declaration is absolutely incorrect.
View 10 Replies
ADVERTISEMENT
Aug 3, 2011
I have a form intended to generate serial number and this serial number will be distributed to the other forms. I use to pass the serial number to the other forms this way:
[Code]...
View 16 Replies
Jan 2, 2012
I have declared some constants as double in a Class
[Code]....
I'm tryingto figure out how I can get the text box to display the value of the constant with the same name? i.e 1.54186 in the example given
View 11 Replies
Jul 11, 2009
I have the following code in my config.vb file in app folder and almost all of my pages use this code for permormance issues i need to have it cached for exp use cache.insert to cache each property How should i use caching?
BR>Public Class Config
Private _physicalPath As String
Public Property physicalPath() As String
[CODE]..........................
View 3 Replies
May 1, 2008
I'm working with the webbrowser control because I've had so many problems with using a non wrapped browser.
What I'm doing is filling out web forms, pressing submit, filling more information, etc etc. The problem is that when I press the submit but inside the code, the webbrowser doesn't actually reload the page so the second step of form filling can never happen.
From what I've read I think this is because it's simply loading from cache. Is there someway to stop this from happening such that when the submit button is pushed, and the server sends the new page, the webbrowser reloads it automatically?
View 12 Replies
Nov 4, 2010
I have a VB .net application which works fine on a 32 bit systems. We tried using it on a 64bit Windows 7 system but it failed. So I set up an environment in a VM (windows 7 64bit VS 2005 SP1 all updated) and started debugging there. The problem I come across is, I have a module (Public variables and function declarations from a driver provider FTDI). When a function from module is called the result is saved in a variable also from module. But the problem is the variable is not declared.
View 1 Replies
Mar 23, 2009
I declared a browser in my VB.NET project (Dim browse as new WebBrowser). How am I supposed to get to the events (browse_NewWindow) of the declared thing?Oh yeah, my code for my browser is CType(TabControl1.SelectedTab.WebBrowser(1))
View 4 Replies
Jan 3, 2009
I ve blackled it and found a 1000 lines code. I need something more simplified...
[Code]...
View 5 Replies
Apr 27, 2011
For example we generally apply threading to make application faster and unnecessary timetaking not related to UI things can go in secondary threads.Now If I have a user control
This control contains a public function LoadControl() Function is called from the form which is using the user control In side function
[Code]...
View 1 Replies
Jun 16, 2012
My problem is that I have made a Tabbed WebBrowser in VB 10 I have a TabControl1 and the following code as webbrowser
CType(TabControl1.SelectedTab.Item(0),WebBrowser)
I want to control the browser from another form but it is Private and I need ti set it to public.
[code].....
View 5 Replies
Oct 12, 2011
I have a vb.net asp application where I'm loading a control (from another control on a page). I want to set a variable between the two controls when it loads. This is where I load the control:
[Code]...
View 1 Replies
Jan 30, 2010
ok basically i was trying to make a Control that exposes its protected properties to the public. example, you could call the protected DoubleBuffered property publicly. the problem is that this class called ExposedControl must be compatible with the type System.Windows.Forms.Control, meaning i should be able to create an ExposedControl using an existing Control so i had something like this in the constructor.
Public Sub New(ByVal control as Control) Me = control
[Code]...
View 8 Replies
Feb 24, 2011
The following is a screenshot of the problem: What can I do?
View 3 Replies
Nov 27, 2010
I'm using VB.Net. I have a WPF User Control called "NavigationPanel" which I created with the Designer. By default, its scope is Public. When I change its scope to Friend in the file NavigationPanel.xaml.vb, I recieve the following error:
[Code]....
View 1 Replies
Feb 10, 2011
I can access a module from code behind but not from the aspx page in inline VB code <% ... %>.
View 2 Replies
Apr 7, 2011
Imports System
Imports System.Threading
Imports System.ComponentModel[code]....
how to declare "smsport" on class smscomms as public so that it can be access in class form1 or button1_click event.
View 5 Replies
Aug 26, 2010
How do declare a public variable .aspx web page that can be used in all the pages within my web application?
View 3 Replies
Jan 25, 2009
I have a DataGridView on my form in a tab control. For quite some time during development it worked just fine. Now, for reasons I can't pin down, when I reference it in code, I get the design time error "Name XXXX is not declared." The control is on the form, and I can work with its properties in the properties window just fine. I have also created a new one, and set very similar, at the least, properties, but that one does not work either. When I drag a brand new one on the form, it works just fine. I just don't know what property is breaking it.
Is there something particular I should look for here? If there is a way to post a list of it's properties I will.
View 8 Replies
Sep 3, 2010
What does this error mean? I havent modified anything in the designer code, but its giving me an error? WithEvents variable 'Move' conflicts with event 'Move' in the base class 'Control' and should be declared 'Shadows'. The error relates to Friend WithEvents Move As System.Windows.Forms.DataGridViewCheckBoxColumn
View 1 Replies
Mar 8, 2012
My app has three forms and one module; each form has it's own, private code, and the module has all of the shared, public functions and subprograms. One of my controls (MSFlexGrid) is "contained" by my form1 but must be referenced within the public module.
If I try to use a With statement in my module to reference form1's grid control, the control's name is flagged as an "undeclared variable name". Is there a way of either declaring or qualifying the control's name so that it can referenced outside its owning form?
View 5 Replies
Apr 20, 2011
I have an application that allows users to bid on items that are put up in an online silent auction type of deal. Currently, When a user clicks submitBidButton, the application stores the bid in the database, and then updates the price. Sounds simple? It was.. until it got popular. If there is a bidding war on the page, my application, and SQL database start crying.. literally.
About consuming the data with jquery/JSON.. and WebMethod. It works like a champ. BUT. How can I take advantage of Caching to increase the performance of my application? SQL Caching? Asp.NET Caching?
Each member places a bid, and I want to add a ajax timer that calls back to the server every .5 seconds to see if a user has placed another bid. The app was built in vb.net.
View 1 Replies
Apr 6, 2010
I have 2 dll files from a third party, and they have the same name (v7 and v8). My program needs to be able to use both of these dll's (meaning wether the enduser has a lisence for v7 or v8 of the thirdparty dll, they can still use the program). But I am stopped from referencing both of them as they have the same name. How do I resolve this? Searched the web and found info about sn.exe and strong names, but can't find a good explanation of how this works. Anyone?
View 5 Replies
Oct 23, 2009
I'm working on a program but i'm having a small problem. I need to search the IE cache for multiple URL's that contain a specific string. [code]....
View 2 Replies
Sep 12, 2011
Anyone know how to read the ARP cache in VB or .net?jj
View 7 Replies
Oct 28, 2009
e.g.
Abcdefg.vbproj.GenerateResource.Cache
View 1 Replies
May 11, 2011
I have a function GetAllProducts() which fetches all products from a database and stores it in the cache for future requests. This works fine, but if I then call the function e.g. ProductSearchResults = GetAllProducts(), and then modify ProductSearchResults variable, this also modifies the cache, which is very important this never happens, as the cache affects the whole website.
I understand this is because both ProductSearchResults and the cache now have the same reference, but how do I solve the problem? Is there something that I can put in GetAllProducts() to ensure the cache always uses its own value?
CODE:
View 1 Replies
Dec 1, 2010
If you build and deploy UserControls, Components etc do you give them strong names and put them in the GAC or do you simply place them in the same folder as the executable?I've made a component that will be given to other developers and they will, in turn, deploy it with their own applications. If I give my component a strong name and install it into the developer's GAC then I assume that the developer using my component will also need to place it in 'his' customer's CAG when he deploys his own application containing my component.
View 2 Replies
Jun 5, 2009
I am working on a web based project using .net 2.0. I dont want my pages to be stored in cache or internet history.
View 2 Replies
Nov 17, 2009
Two separate but related questions about deploying a Visual Basic 2008 .net application:1. Click One installs in a cache under local data. The EXE launches from the cache even if not on-line. I don't want my users to have a runnable EXE left over in their cache after exiting the program. Is there a way to delete or disable the cache contents on close of app or equivalent?
2. My EXE uses an interop DLL. I want my EXE to be a single stand-alone file so that I don't have to copy both the EXE and the DLL to the user. Is there a compile setting to incorporate everything, includng the DLL, into the EXE.First question relates to Click Once Web deployment. Second question refers ONLY to ordinary COMPILE, not click-once.
View 5 Replies
Jan 27, 2010
I am currently developing a advanced web browser in Visual Studio 2008. I was reading information about a browser i currently use, it said that the browser goes faster thanks to a "advanced cache algorithm". I was wondering if it was possible to implement this into my web browser, and if so how would i do so? I am using Visual Studio 2008 writing in .Net.
View 3 Replies