Save Gif File With Newly Created Tag?
Feb 15, 2010I have been working on this for a while and this is what I got so far.[code]...
View 4 RepliesI have been working on this for a while and this is what I got so far.[code]...
View 4 RepliesI am getting this error trying to save an Image to a newly created Folder.
View 8 RepliesI have this program:
Module Module1
Sub Main()
IO.File.Create("C: ext.txt")
[Code]....
How to make my program not to use the newly created file 'text.txt'? Notepad fails to open it, it says (The process cannot access the file because it is being used by another process).
I have encountered a wierd problem, and I'm unsure if this behaviour is caused by my code or by Windows itself... I can't make any sense of it! Basically, I have written an automated backup system for a text editor. It should save up to 5 backups for each filename, each in a 'AutoBackup<filename><filename>_<number>.bak' format. Here, <filename> is simply the name of the file my program is backing up, and <number> is the first 'free' number. So if the backups are "Test_1, Test_2, Test_4, Test_5", the next backup will be called "Test_3" (since 3 was 'missing'). When there are more than 5 backups, I want my code to delete the oldest files until there are again 5 backups left. I am using the following code for this:
vb.net
'Backup doc.SaveFile(path & "" & filename & "_" & newNum & ".bak") 'If more than max files, delete oldest Do While numOfFiles > maxBackups Dim d As Date Dim maxDate As Date = Date.MaxValue Dim oldestFile As String =
[code].....
Then, after another backup, Test_1.bak is again deleted!I thought this was pretty weird so I had a look at the files in windows explorer, taking a good notice of the creation date... That's when I saw that after Test_1.bak is created a second time (after a file named Test_1.bak was deleted), it carries the same creation date/time as the old (deleted) Test_1.bak..So my code still sees it as the oldest file (while it is actually the newest) and deletes it...
I wrote a program that writes to a new created file a line of text. Anytime I try to open the new created file, I see a dialog box titled "Inconsistent Line Ending". I do understand why I receive this message. I wrote this program in VB.NET.
View 1 Repliescreating a new folder on a temporary file and moving/copying a file on the newly created temporary file.
View 4 RepliesI'm using the VB code below to create a file and write to it:
Dim myFileStream As New IO.FileStream(tempFolderLocationLabel.Text & "" & tempFileName, IO.FileMode.Create)
Dim myStreamWriter As New IO.StreamWriter(tempFolderLocationLabel.Text & "" & tempFileName)
myStreamWriter.Write(sageLinkerRef)
myStreamWriter.Close()
myFileStream.Close()
this is what i have so far:
[Code]...
I currently have a JSTree all set up to do the creation and renaming of a new node:[code]The problem is that my success doesn't seem to get hit when I return an integer ID on the create node, thus I can't set it to a global variable. What exactly do I need to return in the function to get back the ID from the server? I'm simply returning a new integer right now.
View 1 RepliesI know how to monitor newly created files etc but what i want to do now is monitor firefox and IE when they close. my application is running in the bg and i need it to perform a command when the browser closes.
View 4 RepliesIm curently writing an app for windows mobile (so its using the compact .net framework)It has a loop which finds out how many images are in a folder, makes a picturebox for each one, then sets the .image property to the appropriate image. It also adds the name, size, location etc.What I dont know how to do is add a mouseclick event to it?I probably would have a subroutine already written in the code which could be used, or would it have to be a new one made for each picturebox?
View 1 RepliesI have made a form that creates a table in a database based off of the text a user inputs into a text box.I would like to then display that table in a DataGridView on the form so that the user can update the data in that table.Is there any way that i can add those tables to the dataset and get them to display in the DataGridView after the user clicks the create table button?
View 7 Repliesim having a problem now when opening a link in newly created tab.. i have a tabcontrol and only 1 tab for the main.. the main tab have only 1 textbox and a button the user put a URL in a textbox and after the button is click it creates a new tab and navigate to that url.. i can create a new tab after the button is click but my problem is after the button is click it not focus the newly created tab..
View 2 RepliesI have a Private Sub that I execute whenever a user clicks one of two or three things, and in it I create a new tab in my TabControl. Once the new tab has been created, I select it then add a formatted textbox to it. However, it is not selecting the new tab and therefore only adding the rich text box into the already selected tab (not displayed, of course, because it has a dock style of Fill.) Here iis my code to select the new tab and format / edit the rich text box:
Try
tabMain.SelectedTab = tabMain.TabPages.Item(intTabIndex) 'Select the new tab
AddHandler rtbCode.TextChanged, AddressOf DisplayUpdate 'Add TextChanged event to handle updates
[Code]....
Edit: I figured out how to save as new, now all I need to do is save an already created text file.
View 7 RepliesI wanted to simply on click a button to add those newly created textboxes to an array of textboxes. Starting with those labeled "Address". But I am finding this very difficult. I am able to add those originally on the form into the array very easily. But am unable to add the newly created textboxes into the array.
Here is my code so far below.
Public Class Form1
Dim MyBoxes() As TextBox = {Address, UserName, Password}
Dim Numbox As Integer = 1
[Code]....
I wanted to simply on click a button to add those newly created textboxes to an array of textboxes. Starting with those labeled "Address". But I am finding this very difficult. I am able to add those originally on the form into the array very easily. But am unable to add the newly created textboxes into the array.[code]....
View 2 RepliesI wanted to simply on click a button to add those newly created textboxes to an array of textboxes. Starting with those labeled "Address". But I am finding this very difficult. I am able to add those originally on the form into the array very easily. But am unable to add the newly created textboxes into the array.[code]...
View 2 RepliesI am confused on saving a file to a certain folder. I know how to save files and what not but what I can't figure out is this:I right clicked my project name in VS2010 -->New Folder and added a new folder. Now this folder shows up in my Solution Explorer. How to I reference this folders location?
View 5 RepliesI created a sign up page for my program using:
Username
Password
Address
State
ETC
How can I save all that info to a file to pull up for later use in the program? All the info was entered into text boxes and at the end of the program I have a button that is named Save Information.
if could modify the following code for me so that it save data row by row from a DataGridView into SQl Server. Currently, the code saves data from all rows at time instead of saving only the recently added data in a row or rows when the user clicks a button.[code]...
View 1 RepliesI am working on desktop application. I had created number of dynamic textbox and label and I want to save that data on clicking the save button.
View 4 RepliesI am using windows application. in that form i place picturebox, openfiledialogue, loadimage, saveimage buttons.using loadimage button to load image into picture box.using saveimage button to save image into one folder(save image into harddisk)at the time of save image first we crop the image like height:100 and width:100 and next it saved to folder.
View 1 RepliesI am trying to find a way to allow my users to choose the directory to save files into, THe file name is automatically generated as it has a naming convention and i am able to pre program a location to save to but i d like to be able to allow my users to decide themselves which directory they want to save the files to and to have the ability to choose which directory to save to
[Code]...
i have made a downloader . i use save file dialog to save file but when open save file dialog it does not get the file name and file extension from the source....please help me to make a file downloader which gets the file name and extension automatically from web. my downloader downloads file succesfully but doesn't show its real extension and file loses its default extension.
View 1 Replieshere's my nut for the day.. i want to save a file to a folder. here is the code i have:
[Code]...
im trying to create a text file with some details that ive put into some text boxes.I got on screen
3 textboxes
2 buttons (which i would like to get their text from)and then 1 button to save details and exit.I got the coding place but i dont want a a dialogue box to come up i just want to save the stuf to a set folder location, will need to read the textfile to the same area, incase the user wants to change the data. Struggling to understand the my stream section in my books.
Dim saveFileDialog1 As New SaveFileDialog()
saveFileDialog1.Filter =
"txt files (*.txt)|*.txt|All files (*.*)|*.*"[code]......
i am coding a sound recorder with VB2010, how to save/export the object file to .WAV file with save button?
Public Class SoundRecorder
Dim soundrecord As Object
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA"
[Code].....
I'm going through All-In-One Code Framework Coding Standards document and one of the recommendations is to add a file header comment at the start of every human-created code file. This is the first time I've seen such a recommendation and to me it's just an unnecessary and ugly clutter but I'm wondering if someone could explain why M$ recommends this?
[Code]...
Dim sw
As StreamWriter
Dim flagX
As
Boolean
[code]....