Quickly Switching Through Languages?
Sep 22, 2009
I am currently writing a program and I have all the windows in three languages. Is there any way of quickly changing through the languages? I mean, I can do it manually but the list has like 500+ languages and I was wondering if there was any keyboard shortcut to switch between the used languages, or any way to put a buttom on the toolbar.
View 4 Replies
ADVERTISEMENT
Jan 27, 2012
I have my company's website (Visual Studio / vb / asp.net 4.0) localized in 9 different languages, and they all work great. When you're on, for instance, about.aspx, and you switch to Russian or Swedish, it stays on about.aspx and doesn't add a query-string to the end of the URL; it just changes the page's text to that language. Will the major SEs like Google, Yahoo, etc., consider this duplicate content for SEO purposes and if so, what should I do?
View 3 Replies
Jun 24, 2010
I'm an inquisitive .NET student without any commercial working knowledge and I have been puzzled by what exactlty are .NET languages meant for? Q1.If you look on job websites, .NET seems mainly used for web applications, not much for Windows applications? (My dream job is to develop standalone small Windows applications.)
[Code]...
View 11 Replies
Nov 27, 2010
visual basic.net is case insensitive so it allows the coder to write without caring or remembering the casing of variables. it also relieves from the 'undeclared variable' errors if you use the variable in another case than the one used in declaration. The fact that its line termination is a line feed makes it even more readable unlike C# or c++ that need good care in the casing and contineous war with following up with the {}, matching them and figuring out which is for which.my question is what are the advantages of c# over vb knowing that both get compiled to MSIL so there is almost no performance difference between the two languages?
View 1 Replies
Aug 18, 2010
I want to develop an application using VB.Net to detect the arrival of USB Key once it's plugged into the USB port. I used a method by getting the list of all drives in the computer and then I check whether the type of the drive is "Removable Disk" and "Is ready" or not!. By using this method, I can figure out which drive is Removable drive. BUT I get confused with the FLOPPY Drive because it's also a type of Removable drive.
View 1 Replies
Oct 12, 2011
In certain error situations within my VB 2008 code, I need to quickly terminate the program. This should be simple, but I haven't been able to figure out how to do it.
View 5 Replies
Aug 13, 2011
I found information about how to fade images on the net. But it is extremely slow. Here is the code:A is an ImageAttributes variable. matrixEl is the float value that is incremented to fade in the image.
View 6 Replies
Jun 4, 2010
I'm working on a program that has to continue functioning even if the SQL database isn't available. If the user has sufficient rights they can continue on using manually entered values.
The way I'm doing this it takes a very long time to fail before this can happen. Is there a way to quickly, or continually, determine if the SQL database is available so that I can avoid trying the stored procedure if it isn't?
Dim tblSteps As DataTable = New DataTable
Dim StepsBindingSource As New BindingSource
Private Sub cmdExecuteSproc(ByVal SO_Number As String, ByVal Prev_SO_Number As String)
[Code].....
View 7 Replies
Feb 22, 2011
I using Microsoft.Office.Interop.Excel I get returned a 2D array of type object[,] which contains double for elements. Note that the index lower bound is 1 instead of the default 0, but I can deal with that easily. How can nicely convert the array into double[,] using .NET 3.5. (by nicely I mean concise, or compact).
[Code]...
View 3 Replies
Jun 24, 2009
I am working on a application that stores videos, images and files. I would like to give the user the possibility to encrypt them. I am tying to use AES to encrypt them but the problem is that the decryption takes to long.I was hoping that the loading time from the hard disk of the encrypted file was far longer than the process of decryption of an image for example but i was wrong
So if i try to 1) load the image 2)decrypt it and 3)load it in a image control it takes 15 times more time that loading the original file not encrypted
View 1 Replies
Jul 13, 2009
I saw the video from microsoft teaching the techique of programming and found out they can comment multiple line and the same time.
View 2 Replies
Mar 13, 2008
I want to create my special full-text index using text files, without database.I saved records ids for every word in index, in text file..Now if I want to search for tow words together; I have to get ids that is shared between these words by comparing text files of these words ids; and saving the result in other text file.[code]But now the problem if the first word has 100,000 ids and also the second word same it; the loop will take too long time! It will loop 100,000 * 100,000 times!How can I find another way to compare these files quickly; or another idea for my full-text index with text files?
View 4 Replies
Mar 16, 2010
I am trying to read this XML document.
An excerpt:
<datafile xmlns:xs="[URL]" xmlns:xsi="[URL]" xsi:noNamespaceSchemaLocation="wiitdb.xsd">
<WiiTDB version="20100217113738" games="2368"/>
<game name=" Wanted: 50 Wacky Jobs (DEMO) (USA) (EN)">
<id>DHKE18</id><type/>
<region>NTSC-U</region>
[Code] .....
It just skips the "While iter.MoveNext" part of the code. I tries it with a simple XML file, and it works fine.
View 1 Replies
Apr 14, 2011
When I use the Debugger to to debug some code, I see a subrountine (or function) call.
How do I quickly locate the code for that subrountine (or function)?
View 2 Replies
Jan 14, 2011
Im have a form and an image. Imagine the form's backcolor to be black and the image to be a landscape. When you resize the form the image is also resized and streched towars all directions. The point is that as you resize the form the image delays to be resized so the background which is black is showed.
View 1 Replies
Nov 15, 2011
I am writing an import program to import data from an access database to a SQL database.The table structure in the SQL and Access are the exact same with the same field names.I was wondering if there was a quick way to get the data into the SQL table without have to loop through each record?Currently:1. User selects the file2. Use a oledb connection i load the data into a DataAdapter3. Datadapter is bound to the DatagridNormally i would loop through each record in the datagrid and insert it into the table but i was wondering seeing as the column names are the same if i could save the messing about with loops and insert statements using 30 column names.
Code to load the Data is below
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & database & ";Jet OLEDB:Database Password=bekdemir"
[code]......
View 3 Replies
Sep 9, 2010
I'm pulling from a text box for recording scores like 2, 47080, 88 and for better aesthetic look on viewing results i wanted to format results like so:
00002
47080
00088
Only way i could format was to convert to number and use: Score.ToString("0000#") not worried about validation, this is just something for my rug rats.Is there a better way, as in not having to convert to number first?
View 3 Replies
Jan 14, 2009
How can I perform a very fast search in an array, that finds a substring of an entry in the array? As an example, let's say that I have an array containing these objects (as strings):
[Code]...
What I then want to do, is to find any matches matching (as an example) the letter "S". I want it to display all the entries with the letter "S" in it. I don't want to use loops of any kind, and I prefer using things such as the array's inbuilt BinarySearch function. However, it seems like the BinarySearch function only compares from the beginning of each item. I'm using very large arrays. So a fast method is really needed.
View 6 Replies
Aug 6, 2009
I need a way to add hundreds of thousands, millions, and possibly a billion items (Really anything in the range of Int32) to a DataGridView Control quickly, I was hoping for something under a minute. I have been trying various ways, the fastest way so far I have found is to add cells to a DataGridViewRow and then add the row to the DataGridView Control. As of now, I am using a BackgroundWorker as a second thread so I show progress of the operation.
View 5 Replies
Oct 10, 2011
I have a folder that can (hundreds currently) but upwards of 10's of thousands of files. I have a program that gets all file names, and sorts them based upon set criteria and displays them in a treeview. My issue is right now a few hundred files moves fairly quickly when getting files name (path.getfiles), sorting, and returning sorted list for further search and display. My concern is when the number of files starts to increase, alot of these functions will take exponentially longer to perform. Especially my organizing function.
Because my files are part numbers <PartNum><Rev><SubRev><ManuNum>.<extension> I first sort out all different Part numbers first making the list manageable (maximum of a few thousand). Then as you choose a part number to work with, it retrieves all files associated with that part number (maximum of a few hundred).
My concern is everytime I need to look for a file in anyone of those steps, I have to import all file names, search and return correct file path, and Im sure this will become slow as the number of files increase. I dont mind having it do it once then update the list as needed. So I was thinking import and sort all file names at load, and check every so often for and files that might have been modified recently and just update it's entry in the sorted list. But this means my program has to stop, and check all files for changed "modified" time, which too will be slow-ish.
View 2 Replies
Jul 28, 2010
In developing a flash-based memory manager, I need to be able to view large quantities of data. With my eyes and monitor resolution, I can read hand-drawn 3x5 letters on a 4x6 matrix without too much difficulty, but none of the system TrueType fonts render optimally at that size. I've tried writing code to draw font shapes to off-screen bitmaps, and then use DrawImage to copy those bitmaps to the screen, but I can't get good performance. This is for development, not production, so performance doesn't have to be absolutely optimal, but I don't want to spend too long waiting for screens of data to refresh.
What would be the best way of either making .net display a font which is pixel-perfect what I want, or else building a bitmap out of lots of little pieces quickly? I'm using vb.net, so I can't simply generate a bitmap as a byte array and pass that to the Bitmap constructor unless someone can show me how to convert an array into an IntPtr.
View 5 Replies
May 11, 2010
I'm just having a small problem with tabpages. I have a program that have multiple forms (on startup they are all created and hidden, except for the one being viewed by the user). When the user open one particular form, I has a tab control with two pages. I also have a toolbar. when the user click a menu option, I call a method that assigns all my controls to a variable (to be used in an insert statement later).
Here's an example of that Sub:
Public Sub SetValues()
'page 1
DateCreated = Date.Now
DateEdited = Date.Now
DateCompleted = Me.DateTimePicker2.Text
[Code] .....
The problem is, the controls on the second page cant be "seen" (this is confirmed by placing a msgbox in the above sub, which comes up blank) until the user open the second tab, at least just once. Then its ok. I know I can just run a small method to quickly open all tabs, but is there a reason this is happening, and a better way to do this?
View 11 Replies
Dec 3, 2009
I have 202 .html files and at the beginning of each file, I need to add a chunk of php code. I could make this myself, but to be honest, it would take me forever and I might as well just manually edit them lol. All the .html files are in one folder.[code] one other thing that would be VERY cool, is if it could add the files that are not edited to a listbox or an outputted text file.
View 12 Replies
Jun 24, 2011
I have small application in vb.net
I have one table in msaccess, which is having around 20,000 records,
now, I want to insert these records to remote server of mysql,
I tried as below code, it takes around 3-4 hours to insert data, dst in code is having all records from ms Access
[Code].....
View 1 Replies
Aug 10, 2010
I have quickly made up a class that inherits listboxes and uses
[Code]...
View 4 Replies
Apr 1, 2011
I'm getting a 'NullReferenceException was unhandled' exception when a NumericUpDown control is cycled too quickly. To slow it down I've disabled the (NUD) control and set a 200 Interval Timer to re-enable it, but the exception is still happening.I don't want the slow the control down any further, I'd rather try to handle the exception, but can't find any help on how to do that.This is essentially the code which is incurring the exception, at the (4th) line... Dim p... : -
For b = 0 To 8
z = Pic(b)
[code]....
I figure I need to ensure each image is happily installed in it's 'Box before I try to load the next one, or it may be that I just need to check that the last one is 'in' before I call the next bit of code (which calls this bit again if I'm too fast) It all works perfectly well if I don't go too fast.
View 9 Replies
May 3, 2010
I am having a form1 with only two buttons----
1) Start backup
2) Cancel
If "Start backup" is clicked.... system requires a lot time for backing up many files from source to destination. If I want to free the user before "Start backup" procedure is not completed ...
then what would be the code for "Cancel" button...? Only I want to stop the running procedure of "Start backup" quickly.
View 6 Replies
Nov 1, 2011
I am attempting to create a basic program and I need to know how to incorporate INI files for profiles in order to quickly pull up data from one person to the next.
Public Class IniFile
' API functions
Private Declare Ansi Function GetPrivateProfileString _
Lib "kernel32.dll" Alias "GetPrivateProfileStringA" _
[code]....
And placed it into a module, which I then wen't to my main program and attempted to place this:
Dim ini As New IniFile(Profiles.ini)
Dim value As String = ini.GetString("Names", "1", "Default Value")
To attempt to retrieve the data, but I get no error or information from it. The ini file is inside the folder of the project and I set the SectionName and KeyValue to the corresponding names. I think I am having trouble with syntax? Not 100% sure. This is the code that I got from the same source as the module for using the module.
Dim ini As New IniFile(FileName)
Dim value As String = ini.GetString("SectionName", "KeyName", "Default Value")
And I adjusted to what I believed would be the proper format.
View 7 Replies
Jan 25, 2010
Best way to have different languages?
View 4 Replies
Jan 10, 2010
i am trying to get the available languages installed in visitors pc's. The problem is that i don't want to get the languages from the internet browser.
View 1 Replies