Case Of Lost Db
Aug 9, 2011
Only problem is that it is using a access database that is coming from "my documents" and when I debug it pulls up the database that is finished. When I run my published program, it uses the database that isn't finished. Why is it doing this?
View 2 Replies
ADVERTISEMENT
Oct 28, 2009
i have a program using a select case to convert letters to special charaters. My question is how can I get the code to read upper and lower case letters without having to put the upper case letters in my select case statement. Example: Part of my code is
[Code]...
View 6 Replies
Dec 15, 2011
i want to the textbox that when I start to type in names it should be like this Camille Aisha Cordova, How do I do this?
View 16 Replies
Oct 27, 2010
Im using a Random Pool number generator and was wondering how i can make it use upper-case and lower-case letters as well as numbers here is a pic
[Code]...
View 3 Replies
Jan 18, 2012
I want my TextBox to make the text i enter as Sentence Case(ProperCase).. but i dont want to write any code in an event like Lost Focus or KeyPress
Just by default when ever a user enter or types in a textbox the first letter of every word should automatically converted into UpperCase
View 1 Replies
Mar 21, 2006
When my form loads it adds some handles (using AddHandler) to a sub (showStatus). What this sub does is checks which control activated the sub (using sender.Equals) and displays text in the status label (status) accordingly.For this I use an If...Then statement for each possibility. There are many possibilities and my code get cluttered. Is there a way to do the same thing with a Select...Case statement. I tried: Select Case sender Case tbOne : status.Text = "blahblahblahblahblahblah" End Selectwhere: tbOne is a textbox, status is a StatusLabelIt gives me an error though, saying "Operator '=' is not defined for types 'Object' and 'System.Windows.Forms.TextBox'."Any ideas on how I can get this to work with a select case statement?
View 13 Replies
Oct 20, 2009
here is my code..
[Code]....
If the result is 86 and it's mod by 43 the answer is 2 Case 2 is not firing. it just goes to the end of the procedure.
View 4 Replies
Jun 19, 2012
It looks like impossible but...
Try
Select Case command
Case 1
smth()
Case 2
[code]....
Firstly Case 2 runs. Throws exception. And right after this debugger shows that next processed statement is Case Else. Only after Case Else throws own exception Catch block start working. I've never seen this trick. Why can this happened?I'm sure the block is entered once (not like this:first enter hit Case 2 and second hit Case Else).
Update:-To Matt Wilko. Thank you for answering. I've switch to Strict On in Options of VS2010 but nothing has changed. Command is variable, not function. Watch tool shows that on each step Command is the same ( Command = 2).
Fixed. Yeeaaaahhh. I simplefy code to
Try
Select Case 2
Case 2
[code]....
and change project to Console app. This works as I mention. The fix was in Release mode. I was debugging in Release mode. When I switch to Debug mode everything goes as it should.
View 1 Replies
Oct 25, 2009
I need to add Functions for the Case 10 and Case 13 in this code. The code in each select case needs to be moved to the two functions which then returns the code once its called from the Sub Main section. But I am having a really hard time figuring out what exactly gets moved to each function.[code]I'm not sure what exactly to put into the individual Functions and how to change up the Sub Main section.
View 4 Replies
Oct 3, 2009
A little but pissed off at the moment as I have just lost a few hours of work. While I was trying to get a form to resize better (so you can make the form bigger and have all the panels and therefore things inside the panels take up the same percentage of the form), I thought about looking in the designer code to see if anything in there would be easy to change to make it work the way I wanted.
Upon finding what I thought was going to be a good bit of code to edit (code that placed the panel in position), I changed it so that panel2 would find where panel1 was (in the y axis), add panel1's height onto panel1's Y location and use that value as panel 2's Y location:
Me.Panel5.Location = New System.Drawing.Point(0, Panel1.location.Y + Panel1.height)
When I switched back to the visual designer view it came up with a warning page (blue bar across the top of the page saying "To prevent possible data loss before loading the designer, the following errors must be resolved:".Therefore I went back into the designer code and deleted what I had previously done and was a little bit annoyed that I couldn't use that code which I hoped I could.Upon going back to the visual design page everything was gone so I went back to the design code but everything was still there.I sighed in relief and ran the program and everything loaded properly so I decided to quit and reload the project to revert to before the incident occurred to be able to see the design in design view.When I reloaded the project everything was still gone and I then found out that the code from the design had gone too meaning I had lost it all. The code that I created would work in the vb coding, I have tried it.
View 2 Replies
Dec 18, 2009
For no reason I can discern my Visual Studio 2008 app (MyApp), which had many forms and reports, suddenly contains only one form, a simple test form I was experimenting with. I am unaware of any problem with the app. I use it to maintain an Access database which is still functional and is in the same place on the disk as it always did. This app and its data are all contained on my laptop computer. The form files all remain where they always did. I used to be able to control my earlier VB6 version of this application if it went off the rails, but I'm in the dark with VS2008.
View 7 Replies
Jan 12, 2010
I don't know what I did but I've recently lost my "File" menu and possibly a few more. I don't even remember what was on the menubar but it starts at "Project" now and ends at "Help". Anything that was before "Project" is missing. How can I get this back?
View 2 Replies
Mar 12, 2011
For a while I was having trouble finding where my projects were being saved on the hard disc. Projects were being stored in at least two places, well I sorted that out and finally copied everything to the one location.Today I went to revisit an old project but it looks like I wast careful enough before I deleted all the duplicate projects, and now I find that two I want to look at are long gone.folders for these projects which include these files: -
xx.application
xx.exe.deploy
xx.exe.manifest
[code]....
View 4 Replies
Nov 25, 2011
I have a form with 7 textboxes, all describing different attributes of a used car. In the shared leave event of my tb's, I need to code a case statement which determines the particular textbox that lost focus. I then need to perform different tasks which I understand how to do, and I don't think they matter to my question.
I understand how to give focus (txtTextBox.focus()), but how do you tell if something has lost focus?
And furthermore, how would you use that to structure the case statement?
View 2 Replies
Jul 21, 2010
During my project I have suddenly lost my form design, all the designer code is still there but when I try and view the design layout it gives me an error saying 'navigation to webpage has been cancelled', does anyone know how to get around this extremely annoying bug ??
View 2 Replies
May 21, 2012
when I starded to "finish" my appliaction. The whole MenuStrip and StatusStrip have disappeared!
This wasn't the first time when I lost menu but this time I have made so big work for it so I really dont want to start again as I did last time...
I read another thread but I didn't get my problem solved. I think I lost my menu after I deleted "loading.png" image from resources. I'm not sure does this cause the problem but I think so.
I have all the codes in form1.vb and in form1.designer.vb in looks that:
[CODE...]
Is there any hope to get menu and statusstrip back? :( Or is there any fast way to rebuild them if I have all the codes ready? This was almost finished... now it doesnt look finished at all.
View 3 Replies
Jan 18, 2010
I'm stumped here - the folowing code errors with Procedure or function 'importsp_CreateDiallerBatch' expects parameter '@BatchName', which was not supplied[code]...
When debugging the code, BatchName definitely has a value, and checking the parameters collection of cmd right before executing the urey shows 2 params, both named and with values set exactly as expected. I must have written code like this a thousand times
View 1 Replies
Jan 13, 2010
My WinForm contains a "System.Windows.Forms.WebBrowser"-Control to display a generated html-file (consisting of 5 pages). The Form also contains a "Print"-Button to print the html-file which is displayed by the WebBrowser-Control. For printing the content of the WebBrowser-Control I am using WebBrowser.Print().
If I try to print all 5 pages separately, only the last page will be printed. But if I print all 5 pages separately within a delay of 2 seconds after each page, all pages will be printed?!
View 1 Replies
Feb 1, 2011
INSERT INTO Status
(ScheduleID, StatusID, Name, Color)
VALUES (?, ?, ?, ?)
Here, Name is a string and the other are integers. The generated signature however looks like this:
InsertQuery(int Color, string Param2, string Param3, string Param4)
Which does not match the query, either in name or order of parameter types.How can this happen? Any fixes? It also throws back errors at runtime for type mismatches, which don't occur when the parameters are in the 'correct order' in the query builder.
View 2 Replies
Apr 13, 2009
I am lost in translating this vba code to vb.net
Dim hFile As Long
Dim bytInfo(40) As Byte
hFile = VBA.FreeFile[code]....
View 2 Replies
Aug 18, 2011
I must be loosing my mind! I came back to working on a small project after not being able to work on it for some time and now the IDE layout is totally different. For instance, there used to be a toolbar that showed a run button, step into, step over and such but now its not there, and, for the life of me I can't find it! I went to reseting the layout options to default, VB and so forth but cannot find it. In addition, when I hit F5 nothing happens. I can't figure out how to run my project from the IDE. Have I lost my mind or what?
View 2 Replies
Aug 1, 2008
Ok New thread - god I hate laptops sometimes - I just 'lost' a huge post in the editor due
View 1 Replies
Oct 15, 2011
I made a TCP server which communicates with multiple clients at once, but I can't seem to be able to make them stable. When one of the client sends 100 packets to the server, the server receives only a few of them.Here's the client code in PasteBin. It shows how the client connects to the server and then sends 100 messages in a For loop to the server.And here's how the server handles the connection. I couldn't paste the full source as it's hundreds of lines long so let me know if it's missing any mandatory parts and I'll upload them as well.
View 1 Replies
Nov 28, 2009
I had previously made a simple Pong program which use keyboard to control. The control includes "s" to start the game, "p" to pause, "r" to resume and left, right to move the paddle specifically. This program work with little problem. The first problem I encounter is if I insert even one single button on the form to display instruction, the arrow keys will no longer work. But I get around it by using Menu Strip instead.
Then, I am required to put this program, among others into a MDI program. And this is where the problem happen. If I have this Pong game loaded, and I press "s", "p", or "r" keys, it have no problem, but if I press the "left" or "right" keys, it will not move. I am speculating that maybe the focus is lost when arrow keys is pressed or something similar, but I have absolutely no idea what is happening. I have tried giving focus back to the form if focus is lost, but to no avails. And this is the code for the movement of the paddle. This reside on a form, the movement itself is passed to another class. The MDI parent is on another form. [Code]
View 2 Replies
Jul 14, 2009
I have an asp.net/vb file that receives data and processes it via a stored procedure. The code had the width set to 2 for the year's varchar, so it was chopped, leaving only the first two digits to get inserted into the db.Is this info possibly retrievable from a system/IIS log file or is it lost forever?
View 3 Replies
Apr 19, 2010
I have data bound text boxes that loose the entered data in "BindingSource.EndEdit() code. This would seem to violate all forms of logic. I have provide my code below as well as a copy of the debug.print data.
Private Sub SaveToolStripButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles SaveToolStripButton.Click
Me.Validate()
ErrorTrap = 0
[Code] .....
View 3 Replies
Dec 4, 2009
If my sessions time out I want to re-direct the page to another URL: Say the home page. On my page I make use of a GridView that uses Session variables. If the session variable time expire(currently at 60min) and the user click on a row in the GridView I want to re-direct him/her to the home page of my site.
View 3 Replies
Apr 1, 2010
My application use an encrypted users xml document to logon.My no encrypting document is "iso-8859-15" and all is good,but when i encrypt/uncrypt it all is running except the encoding changed, then i lost all wich is special like accents.
View 5 Replies
May 10, 2011
I try to import the whole csv file into access table. But I got some data lost.
View 3 Replies
Apr 5, 2011
had i problem when re-open the program.
all the data that i saved into the database gone when i close and re-open my program.
is this error come from my code or my database...?
this is my work.
Imports System.Data.OleDb
Imports System.Data.Common.DbConnection
Public Class Borang_Pendaftaran
[Code].....
View 2 Replies