Put Permanent Cap Locks On A Form?
May 6, 2011Put permanent Cap Locks on a Form?
View 18 RepliesPut permanent Cap Locks on a Form?
View 18 RepliesI have a product upgrade system that is somewhat primitive, but will work for my needs. Basically, it consist of a form with 2 labels, 1 textbox, and a button.The first step is to purchase an upgrade key in which the user will purchase through a source such as paypal. Basically, in my example the key for testing is "upgrade". After that, the form does some changes and forces the user to type the generated GUID and shows a msgbox saying that the update is saved. What I want to happen is allow such and such elements to be permanently visible for the user after they update successfully and that the update remembers that the user has upgraded.Summarizing, I basically want to make it where once the whole upgrade process is complete, the user can permanently show the extra upgraded features and that the upgrade is remembered.[code]
View 4 RepliesI have a product upgrade system that is somewhat primitive, but will work for my needs.asically, it consist of a form with 2 labels, 1 textbox, and a button.The first step is to purchase an upgrade key in which the user will purchase through a source such as paypal.Basically, in my example the key for testing is "upgrade". After that, the form does some changes and forces the user to type the generated GUID and shows a msgbox saying that the update is saved. What I want to happen is allow such and such elements to be permanently visible for the user after they update successfully and that the update remembers that the user has upgraded.
View 1 RepliesI've have found answers here frequently in the past just from browsing. But now I'm completely dumbfounded.
I'm using Visual Basic 2010 Express, on Win7 32bit. My application talks to an Arduino via a virtual com port provided by a cheap Bluetooth to serial adapter. I use a text based protocol that is working fairly well. BUT one method in my code, taht seems functionally equivvalent to the other methods is locking up my whole window.
It does this whether I'm debugging or running the exe.Below are the offending method, and a simmilar one defined above it that works with no problems.
[Code]...
If I comment out the cal to write, everything works fine. Aside from me setting some state bools and playing with button titles in the first method, I can't see the difference as to why one works fine and the other hangs.
I really hope someone has some experience in the SerialPort object and VB that can shed some light on this.I've tried everything I can think of. I thought maybe it was the inline concatenation, so I dim'd a local and assigned the string to it, and passed that to Write. But I have another method that uses inline concatenation that doesn't do this.
I have a windows form. On it is a text box and send email button.When you click the Send Email, it sends the contents of the text box via the System.Net.Mail
Private Sub SendEmail()
Try
Dim MyMailMessage As New MailMessage()
MyMailMessage.From = New MailAddress("myemail@email.com")
MyMailMessage.To.Add("myemail@email.com")
[Code]...
Explaining what is Redirect Permanent in ASP.Net 4.0?
View 1 RepliesI would like to enable (permanent) DEP in my program, does anyone know which line(s) of code I need to insert ?
View 8 RepliesWhat is the code in VB2008 so that when you open up a form for the first time, the system prompts you with a Dialog (windows style) that asks you where the database is located? How do you make changes in the database permanent? [code]I tried updating code but as soon as I exit, I go back to square one?
View 5 RepliesI know how to get a user control into the toolbox, but is there a way to get it to be part of vb.NET's startup as a permanent control? In other words, if I start vb.NET and begin a new project, it would be nice that the custom control is already available without having to load its dll each time I start a new project.
View 3 RepliesI have a label, a button and a textbox.I want to add to the label the value of the textbox label.text = button but permanent so when I close and reopen the application the value still be in the label.For example I open the App and add a value in the textbox like 123 and hit the button, now the label = 123.
Close and reopen the App and Label still = 123 .
Note: The value is a secrete key (label visible = false) so I cannot place the value in a txt or xml.
The Quiz is timed. Its result is in "m:s" format. How to make this result permanent, i.e. when the game is restarted the results would still be there?[cod]e...
View 5 RepliesWindow Application in vb : I have a tab control (Tab 1 for temporary address & Tab 2 permanent address) and a checkbox. After entering the Temporary address. User will switch to Tab 2 (Permanent address Tab) there if both Temporary & Permanent Addresses are same then simply he can click Checkbox. As soon as the Checkbox is clicked I want the texboxes available in Tab 2 to be filled with data available in the corresponding textboxes in Tab 1. And should be visible to the user.
View 10 RepliesI'm making a windows form application using vb.net and have an options page where I need to allow users to enter a few settings, these need to be stored somewhere on the machine so that they can be found again if the program closes
View 4 Repliessir, i have no idea how the code will look, but i want it to assign a value after reading from a text file and then store it for further use even if the text file is not there, but without using any external storage like registry, disk, ram. It should store the value in itself and do like this:-
dim variable1, variable2 as string
if file.exists("text.txt")
read the text
[code].....
I;m really new to VB.NET and desktop application development. Simplified this is what is happening in my application: [code]The last line will throw an Exception saying that img1 cannot be moved because it is in use. So my application is still using it, but how to make my application stop locking the file? There is nothing keeping a refrence to it (as far as I see)
View 2 RepliesI have a complex application running on IIS7 and Vista. It usually works ok but sometimes during longer processing threads/pages it seems to block(appear like there is no more wp's), but it blocks only on a single browser. Eg I have firefox open and go to a page which sleeps for 10 mins, then I hit other normal pages and these pages also seem to block. But in internet explorer the pages run really fast. This only happens for 2 minutes at then they are back to normal, the original page is still loading in the background but now those other pages are working ok.
Note, I have changed, network.http.max-connections, network.http.max-connections-per-server, network.http.max-persistent-connections-per-proxy, network.http.max-persistent-connections-per-server all to 100. Maybe I have missed some?
I am opening a bunch of excel files to read them line by line into sql at the moment - but ran into a small problem. When using something like this[code]...
if I then open the file manually, it will error the code. I put in some error protection, a try...catch block and if it errored, it will keep trying to open the file. If it opens the file, that means I closed it manually and the program will pick up from where it left off.
This isn't very successful, as other errors won't be trapped right, and the program will crash if I don't catch the errors (they cause an infinite error looping).
Is there a way to have the app/file open somehow, so if I open any other excel file, it won't open, or it will open but not error out in the program cause it's now physically open?
Possible Duplicate: How can I programmatically determine if my workstation is locked? Checking for workstation lock/unlock change with c#
I would like to determine when a Windows (XP, or 7) machine is locked, and unlocked.I would like to create a timesheet activity logging app, and pre-filling times in, with lunch, breaks taken, etc, would be very useful.Is it possible to pick up an event that fires when the Windows Operating System is locked and unlocked ?
i understand that web service creates its own sessions so thats no problem to multi-thread. but i am writing my results into the database and files. how to do i do my concurrency control for writing into file and database here, can i do it on my calling app which is a console app or i will have to do it in my web service. i am not returning anything to the calling app.
View 7 RepliesI'm developing a new program to add rows to a spreadsheet using VB.NET on a Windows 7 64 bit computer with Office 2010 installed. I have done this many times in the past with slightly different setups with no problems. This program locks on: xlWorkBook = xlApp.Workbooks.Open(FullFileName)After several minutes HRESULT=0x80131c08.ErrorCode=0x0 appears
I have to idea why it locks. The XLS does exist in the folder.
[Code]...
I develop an application through two multi project solutions.There is one solution for the data layer stuff and another one for the front end stuff.All the dlls are referenced in a startup project and have copy local = true. So the build output from the GUI solution and the dlls referenced from the data layer solution should be copied to this startup project's bin folder. This seemed to work without issue for some time, but after changing source control, after a rebuild of the data layer solution, I clean the GUI solution and get the following output: [code] I have researched this problem and it seems microsoft are aware of a problem, logged under MSB3061... but no solutions have been posted by MS. Several users have suggested stopping the indexing service from indexing bin and obj folders (I've done this). I've also ensured that none of the bin/obj folders are under source control. I downloaded FileMon from sysinternals and it says that devenv (GUI) has the file locks.
View 13 RepliesI develop windows applications in VB.NET using Visual Studio 2008. Recently I reloaded my pc and moved from XP to Windows 7 64 bit. Now when I am debugging, when I should get a runtime error, the executable instead locks up when it should bring up the code with the line that it crashed on like you'd expect in debug.
This doesn't happen all the time, only when I get a runtime error in a separate assembly that is not in the assembly I'm debugging. It used to work fine, but now it locks up. If I run the executable outside of Visual Studio (without debug) I at least get a runtime error like you'd hope for. I don't even get that when debugging.
What will I do to allow other forms to perform while crystal report view is running?
Heres the code:
Public Sub printCurrentHistory()
If dt.Columns.Count = 0 Then
With dt
.Columns.Add("update_time")
[code]....
I use VB 2008 express edition and i have this problem.I want to make a program that password locks any folder you want.(Using Icacls from command promt).My problem is that when i run the program
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If My.Computer.FileSystem.DirectoryExists(TextBox1.Text) Then
[Code].....
All this is done becouse i can't save the listbox contents in My.Mysettins.If anyone would be able to show me how to do it i would be helpfull.But please don't give me 50 lines of ununderstandable content.I want something that i will be able to understand becouse there no reason if i use it without knowing what it does.
I have a combo box (named cboGrade) that includes three different options (3rd, 4th, and 5th). I want to make the user be required to select an option from the list and then once the selection has been made, lock the control until either the user finishes the game or clicks the button named btnBeginAgain. How do I do this? I'm using Visual Basic 2005 Express Edition.
View 3 Replies1)What are different types of Cursors?
2)What are diff types of locks? In some sites-
Four types of locks availbale in ADODB
1.Optimistic
2.pessimistic
3.batch optimistic
4.readonly
In some sites Forwardonly , lock,adLockUnspecified
What are exact locks,can somebody tell me?
3) What is Z order Precedence?
4) dim X,Y as integer
They ask me X is of which datatype in VB & in VB.net? I told integer in both Vb & VB.Net,they told me wrong?
I am making a program to test whether or not a host is online, assuming that host has blocked methods such as ping and netstat -t etc....
So I decided to try and connect to it, but the thing is every limitation I have set doesn't work. The program locks up for a few seconds (which I don't want in the first place) and I cannot terminate the client after say, 100ms of trying to connect.
[code]...
I have tried client.ReceiveTimeout but that didn't speed up the process, still takes the same amount of time for the program to respond.How should I go about testing if the server is up now? Or is there a way where the program wont lock for a few seconds as it does with the TCP method.
I am trying to run a backgroundworker to load data from my DAL (which is available in another class). I want to keep the UI available and not have the "locked up" feel while the object is loading.When I create a simple backgroundworker and Sleep the UI stays responsive and my controls can be updated after the sleep. As soon as I replace the sleep with a call to instantiate the object from my DAL, the UI locks up. Is there someway I can instantiate this object using the background worked and keep the UI responsive?
When the situation object is instantiated it could take several seconds for it to load completely, during this time is when the UI is locked up... It does eventually load just fine.
Private WithEvents backWork As New BackgroundWorker()
Dim sit As Situation
Private Sub btnLoad_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnLoad.Click
[code]....
I have a Windows Forms application created in VS2005 which runs fine on the user desktop but when running in Terminal Server session it frequently locks up when the remote desktop window is minimised and the user is working locally.There is plenty of RAM on the server so this is not an issue, the only solution so far has been to force the user session to log off on the Terminal Server and then reconnect.
View 14 RepliesI have a quite simple application that is having some random locks up. It's just a few text fields that the user fill it up, 3 sets of Radio buttons, one of them with flags to chose the language and click the PDF button. The application uses iTextsharp to load a PDf template, insert the text into it, depending on the language loads some extra text from a .xml file, and depending on the radio button removes the images from the PDF, closes the pdfstamper and uses [Code] to open the file with whatever PDF application the user have installed and closes itself.
Sounds simple, but after the application is installed in the machine (never in debugging mode) it randomly locks up the application. I tried re-publish the application commenting out the Start(filename) line and the thing stopped locking. And I double checked it, re-publish with the line again and it locked after just a few attempts. [Code]