VS 2008 Reading SGI Files (with .rgb Extension)?
Oct 19, 2009
I have to read SGI Files (I belive it's Suns Raster Image files, they have .rgb extension,but contains no header information), scale it, rotate it and maybe apply anti-aliasing filter to resampled image.I am just trying to read the image file. I read the file in byte array using FileStream and trying to display it in a image box, but it is throwing error while creating Bitmap class from the byte array. My code looks like this:
csharp
string imgpath = "Images\sample1_400x400.rgb";
System.IO.FileStream fs = System.IO.File.OpenRead(imgpath);
[code]......
View 1 Replies
ADVERTISEMENT
Apr 8, 2009
I have an XML file (see attached) that has numerous different sections/categories.What I'm looking for is advice on how to pick out the different levels/categories and display them one after the other, with the click of a button obviously. Much like you would/can with a recordset using ADO.
View 5 Replies
May 23, 2009
I am making a program that stores information for my applications. There are 4 main things I need in the XML file, the login information (User name and password), Application names and keys, and the owner of the application (who bought it). The program allows the user to enter as many applications and owners as they want and once login information is correct it loads the data. Then on exit all the data saves to a XML file.My XML file looks like this[code]....
Once I read all that the only thing I get is one application and no owners. How do I make it read all of the Apps then stop at the end of the Application Element?
View 2 Replies
Feb 1, 2010
First of all, I have an image file, below is an image of squares with stripped lines,showing where each square is going to be. Each square is exactly 1cm and each space between squares is also 1cm.Fig 1 - Position of Each SquareLater on, these squares are going to be black, and for each black square, the value is one, if it's blank then the value is 0. Here is some examplesFig 2 - Completed Squares, this one reads "101", one square is filled, then a blank square, then another filled square.Fig 3 - Completed Squares, this one reads "010", one blank square, then a filled square, then another blank square
View 3 Replies
Jun 25, 2009
I am using VB 08 running an openfiledialogue wanting to get the result of the GDS file (*.gds) to be the default extension at the drop down menu instead of All file when the openfiledialogue box opens.
I coded it with:
OpenFileDialogue.Filter = "GDS File(*.gds)|*.gds|All files|*.*"
but the results i get in the open file dialogue box remains as all files being in the drop down menu as the default file extension. How to i set it to ".gds" format?
View 1 Replies
Jun 4, 2009
how can i read all the files in history folder??? i tried thi but all i get is index.dat
[Code]....
View 2 Replies
Feb 11, 2012
how to get a program to read a text file randomly.
I want to be able read text into a variable without running into the end of file.
View 7 Replies
Dec 9, 2011
If i have an extension ... say...
vb
<System.Runtime.CompilerServices.Extension()> _
Public Sub Invert(ByVal b As Bitmap)
is there any way of hiding this from inteli-sense if it is not used as an extension?so that pressing ctl+space only triggers it if you go "bitmap.Inve.." rather than prompting on "Inve..."?
View 2 Replies
Aug 23, 2011
I have an external hard disk drive for data backup purpose. Now I want to delete all mp3 files in that drive. How do I do it?NOTE: The mp3 files are contained within many nested folders. For example, K:(artist name)(album name)mp3 filesUpdate: I tried using system.io.directory.getallfiles(), but my mp3 files are contained in many many folders. My current approach is not working
View 4 Replies
Feb 14, 2011
I'm at present looking at various ways on how to convert files without any extension and making them with a .txt extension. At present, I'm using the RENAME feature within windows to do this, but i takes time when there are a lot of files to rename. Can anybody give me a few pointers on how this can be done using Visual Basic?
View 3 Replies
Sep 14, 2010
I have a program that processes files in a special subdirectory and the program processes the files based upon the "Type", i.e., "Text Document". If an application, such as a text editor, installed onto the system, the "Type" may change to suit that application. For example, I recently had one change the type from "TXT File" to "UltraEdit Document (.txt}". Yes, the squirrely brace was on the end, don't know why. Well, after this app was installed, my program found no files of "TXT File" type to process even though the subdirectory was full of filename.txt files.
So, how can I get the code to look at the file extension, not the Type? A few lines of the code are shown:
Private fsFile As Scripting.File
[code].....
View 2 Replies
Mar 15, 2012
How can i read .rfe extension files using vb.net,
View 6 Replies
Jul 2, 2010
I use VB2010 express and not that knowledgeable. anyways, I'm trying to rename files without extension to .txt[code]...
View 1 Replies
Feb 14, 2010
I have VB 2008. How can I delete ALL files in a directory with the extension ".gif" ?
View 2 Replies
Oct 26, 2010
Dim ListOfFileTypes() As String
Private Sub ListFiles()
' an array to hold the file types I am searching for
[Code]....
View 1 Replies
Apr 14, 2009
I search but I didn't find the answer all of them explain how I use binary files only
View 2 Replies
Dec 30, 2011
i have been trying to search a specified directory and all sub directories for all files that have the specified file extension. However the inbuilt command is useless as it errors up and dies if you dont have access to a directory.
Private Function dirSearch(ByVal path As String, Optional ByVal searchpattern As String = ".exe") As String()
Dim di As New DirectoryInfo(path)
Dim fi As FileInfo
[code]......
However i get an "System.NullReferenceException: Object reference not set to an instance of an object." when i try to access the data stored inside the filelist string array.
View 2 Replies
Sep 1, 2010
I am using following code to get a directory of files with a particular extension. It throws an error that you donot have administrator privileges.
CODE:
View 2 Replies
Feb 20, 2012
How do import all files whit the same extension (whit extension i mean all for example .exe files or .avi files) directly in an listbox as the program loads. [code]...
View 4 Replies
Aug 12, 2010
I am using the .getdirectory to scan my whole c drive for certain files to be backup. e.g *.doc. however when i run the code, i hit into error. stating folder access error. one of the folder which cause the error is system information volume.
View 8 Replies
Mar 24, 2012
i have 2 problems the first problem is if i have a .txt file how can i extract specific data. the second problem can i create batch files on the fly because of the need for a variable again it may not make sense but shout tyrannically
View 2 Replies
Jul 20, 2009
im not able to find lots of command that i used to use in vb 6 i want to know the syntax for READING THE TEXT FILE and WRITING THE RESULT IN TEXT FILE in vb6 i used the following syntax:: Open "infile90.txt" For Input As #1 this is giving me error...
View 2 Replies
Dec 3, 2009
Why would I use an extension method instead of just creating non-extension sub or function?
For ex, I could have an extension function called IsNullOrEmptyOrAllSpaces on String, which does a check as its name implies. Or I can write a stand alone function that does the same thing. Other than having the extension show up in Intellisense, is there any advantage? Is a call to the extension quicker/more efficient than a call to a regular function?
View 8 Replies
Oct 31, 2009
I need to make a program the displays the amount of female voters per precinct.The .txt file has 5 fields: first being precinct, 2nd gender, 3rd age, 4th registered, 5th affliation.Here is what I have so far but I don't know how to finish it.
Option Strict On
Imports System.IO
Public Class Form1
[Code]...
View 3 Replies
Mar 2, 2009
Reading WAV-files ?
View 3 Replies
Nov 27, 2011
if i have .txt file which contains something like
abc, 204, dds
ssd, 1123, sdfb
aasds,1343,asd
and i need the words like
abc
ssd
aasds
before the first comma in my listbox
HTML
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
OpenFileDialog1.ShowDialog()
[code].....
View 2 Replies
Mar 16, 2012
I saw this post and I want to know if this is possible in VB. So like extension method, do extension properties exists in VB.Net? Here I've read they do, but cannot find any examples.
View 3 Replies
Feb 2, 2011
I was wondering if anybody had heard of a library, preferably a .NET assembly, but Java will do as wel, that allows you to read the data in a Guitar Pro file (.gp3-gp4-gp5)I have this gigantor of a folder with about 50.000 song files, and would really love to write something that can actually archive all these files, for easier searching. And basic information like the tuning of the instruments in the song would be very useful parameters to retrieve from the file and add to the database.
I have searched the web but have yet to find anything like this, or a file definition for writing my own parser.
View 2 Replies
Mar 12, 2011
I'm creating a simple forms application where users can enter their details and save the information to a .ini file because I needed this for a simple game profile. I've tried to make it write "Name =" + txtname.Text but it won't work anymore. And as well as that, I don't think It will load the text back from the ini file.
Here's the code I used;
Public Class Form1
Dim hFile As Long
Dim sFilename As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code] .....
Form designer: [URL]
Form1.resk: [URL]
Form1.vb: [URL]
View 18 Replies
Apr 20, 2010
i want to read a set of files from a particular directory( for example: D:Date has set of .xls files like D1.xls, D2.xls, D3.xls). if the the file is not there then it should throw error.i am not getting how to to do this VB.Net?
View 1 Replies