Change The LastModified Attribute Of A File Without Opening It?

Sep 10, 2011

how do you change the LastModified attribute of a file without opening it?

View 1 Replies


ADVERTISEMENT

Change Form Header When Opening A File?

Nov 19, 2008

I'm using vb express 08 and I'm writing a program that requires the name of (and possibly location) as the form header as well as the name of the program itself.

for example; when you open MS Word, the title displayed at the top is [file name] - Microsoft Word

View 4 Replies

Change Title Bar Text After Opening File

Jan 19, 2009

I'm trying to get my Applications title bar to change the text once the user loads up a file. So far I have gotten it so it will load up the File name into the title bar, but I would like it to show MicroText - OpenFileName... OpenFileName being the name of the file that was opened.

CODE:

View 2 Replies

VS 2008 Change Value Of Attribute In XMl?

Sep 5, 2010

I have a big XML files with lots of Attribute names and Values.

How to get all attribute name and check with user specified name, and change its value not name..

<cont>
<have>
<xmls>

[Code].....

I want to find a specific attribute name and change the value of it...

View 9 Replies

Change Component Attribute On MDI Child?

Feb 6, 2012

If I want to chand the background color of all the child windows opened i would use this:

For Each chld As Form In Me.MdiChildren
chld.BackColor = Color.LightGray
Next chld

View 2 Replies

VS 2010 Spontaneous Attribute Value Change?

Oct 16, 2011

I have a userControl that I made, and it was placed on a form with other controls.On the form I pass the values from the other controls to a Function inside the userControl, this then takes the values passed in and the values on the userControl to make and return an object.

The Problem is that when it gets down to '.GameOppScore = OppScore' it decrements .GameScore by 1 and then decrements .GameOppScore by 1. It does nothing to the passed in values or the value in the input text box.

It just randomly decides to -1, I walked through the code while running and couldn't find a reason why it would do that.

[Code]...

View 2 Replies

.net - Change The ReadOnly Attribute In Realtime For Use With PropertyGrid?

Apr 11, 2011

I got a properties class that I send to a PropertyGrid. I want to change the [readonly] attribute of some properties in realtime. Below is an example of such a property in vb.net...

<CategoryAttribute("Graph Limits"), _
Browsable(True), _
[ReadOnly](False), _
BindableAttribute(False), _

[code]....

View 2 Replies

Change The TypeConverter Attribute Of A Property At Runtime?

Dec 20, 2011

I have a class created for use with the PropertyGrid control in a VB.Net application. One of the properties of the class is:

Private _someProp As String
<Browsable(True), _
BindableAttribute(False), _

[code].....

View 1 Replies

Childwindow - Change Component Attribute On MDI Child?

Feb 6, 2012

If I want to chand the background color of all the child windows opened i would use this:

For Each chld As Form In Me.MdiChildren
chld.BackColor = Color.LightGray
Next chld

But how can I modify the color of a textbox found on the child forms?

View 1 Replies

Reading 'object-attribute-attribute Value' Triples From Column-based CSV Files

Nov 27, 2011

here any algorithms/pseudocode for reading/parsing 3-column csv data and determining unique objects/attributes/values?

example data:

john,height,1.75
george,age,21

[Code]....

i have already implemented a solution of my own but it's too slow and i can't find any relevant literature on the internet.

View 6 Replies

Unrecognized Attribute 'targetFramework Note That Attribute Names Are Case-sensitive?

Nov 10, 2011

Possible Duplicate: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive

I am using window xp and iis 5.1 to run the application.

error is occurred Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

[Code]...

View 2 Replies

'SSLAccessFiltercannot' Be Used As Attribute Because It Does Not Inherit From 'System.Attribute'

Feb 2, 2012

I get an error when I try to build my project.'SSLAccessFiltercannot' be used as an attribute because it does not inherit from 'System.Attribute'. [code]

View 1 Replies

Get A File Attribute Which Is The Duration Of A Media File?

May 9, 2010

I am trying to get a file attribute which is the Duration of a media file to display with length and name in my list box

I'm using:

Private Sub OpenFileDialog1_FileOk(ByVal sender
As Object,
ByVal e As System.ComponentModel.CancelEventArgs)

[Code]....

View 6 Replies

Access Attribute Of Xml File?

Nov 14, 2011

<xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-

[Code]....

This is my Effect.xml file .I am using vb.net to access this xml file.
Actually i want to access effect name when i enter particular effect id.So that i will get attribute value of effect name when i give effect id as input value
How can i do using vb.net

View 1 Replies

How To Get CD File Attribute Type

Jul 4, 2010

I have an app that reads the file attribute to determine if it is normal, readonly or archive. Nowhere can I find the numerical values that equate to normal, readonly or archive, however I have debugged & found that archive is 32. The files on the cd are 33, what type of attribute is this and where is a list of all numerical values that equate to a file attributes type?

View 3 Replies

Set "user Cannot Change Password" AD Attribute?

Feb 17, 2012

I was originally hoping to use the UserAccountControl Flags found hereASSWD_CANT_CHANGE flag like one would expect. This lead me to this posting Preventing an Active Directory user from changing his/her password using DirectoryServices but I cannot get the saving working.

Here's the code I have right now.
Dim domainContext As PrincipalContext = New PrincipalContext(ContextType.Domain)
Dim user As UserPrincipal = UserPrincipal.FindByIdentity(domainContext, "user5")

[code].....

View 1 Replies

Add A File Attribute To Existing Attributes?

Jun 16, 2009

I know how to set an attribute and set multiple attributes but how would I add a attribute to the existing attributes...

View 11 Replies

File Attribute Delima VB 2008

May 9, 2010

I am trying to read through a bunch of sub directories checking to see if the archive bit is set on any file and if so then I intend to create a zip file of the entire folder as a backup copy and then I need to reset the archive bit.

The problem is that I do not want to change any other attributes that may be set and for some reason I do not see a way to retain these while clearing the archive bit.

I am also not sure if the method I am using for checking the archive bit will work correctly in cases where the file is also read only or hidden or other such attribute.

View 1 Replies

Remove ReadOnly Attribute From A File?

Sep 13, 2011

Let say, a file has the following attributes: ReadOnly, Hidden, Archived, System.

How can I remove only one Attribute? (for example ReadOnly)[code]...

View 5 Replies

VS 2010 AppSettings File Attribute?

Jun 9, 2011

I've been linking to an external config file using <appSettings file="blah"> since VS 2003. I just created my first 2010 project, and I get no data from my file, nor any error. [edit]This functionality works as expected when I point to 3.5 framework.Another note, if I copy the other config to the debug directory and reference it by file name it works. When I use the UNC path it doesn't. The UNC path has worked for many of my past projects. Maybe it's a 4.0 security setting somewhere?

View 2 Replies

.net - Save A Config File Sorted By The 'key' Attribute?

May 30, 2012

I have an XML configuration file to which I will occasionally add new elements and, for ease of reading outside of the application, I want to keep it sorted alphabetically - by the "key" attribute of the "add" elements.After a lot of trial and error - using code I've gleaned from here, there and everywhere - I've come up with the code below. It appears to work okay, but I'm only just starting to learn Linq to XML, so I'd like to know whether this is an appropriate method or if there is a better/ more efficient method I've missed. It just feels like I might be taking an unnecessary step in recreating the entire file element.

Dim newEx = cfgEx.<appSettings>(0)
newEx.Add(<add key=<%= sNewKey %> value=<%= sValue %>/>)
Dim sortEx = <configuration>[code]....

EDIT: I think I've worked out a better way to do this - without explicitly recreating all the parent tags in thesortExvariable:

Dim newEx = cfgEx.<appSettings>(0)
newEx.Add(<add key=<%= sNewKey %> value=<%= sValue %>/>)
Dim sortEx = From c In newEx.<add> Order By c.@key Select c
newEx.ReplaceAll(sortEx)
cfgEx.Save(sXmlConfigFile)

View 1 Replies

Create An App That Can Modify File Attribute Like Hidden?

Aug 2, 2007

create an app that can modify file attribute like hidden, archive, read-only.

View 3 Replies

C# - Make Sure That The Class Defined In This Code File Matches The 'inherits' Attribute?

May 28, 2012

Sometimes in my web applications I used to get this sort of error, I have no clue why is it coming however if I refresh the page few times the page is loading normally.I am using .net framework 2.0 and visual web developer 2005.

View 1 Replies

Unrecognized Attribute 'configProtectionProvider' When Trying To Access Settings After Encryption Of Config File?

Dec 19, 2011

I recently changed application settings to be in an encrypted config file.The first time I run any application and try to retrieve a setting (My.settings. ...) from the config file I get an Unrecognized attribute 'configProtectionProvider'If I restart the application I don't get an error due to the fact that it doesn't re-encrypt during that run. Why when I run the application for the first time am I getting this error?

I am encrypting the config file on application startup using the following code:

[Code]...

View 1 Replies

Error When Opening Text File - FileNotFoundException Was Unhandled - Could Not Find File At Xxx

Feb 15, 2012

I have a program that can save user's input into a text file and load it back, but whenever I try to open the file and exit without selecting the file I get an error.(if i select the file and open it i don't get any errors).

This is the code that handles text file loading:
Private Sub Button4_Click(sender As System.Object, e As System.EventArgs) Handles Button4.Click
OpenFileDialog1.InitialDirectory = "C:"
OpenFileDialog1.Filter = "Text Files ONLY (*.txt) | *.txt"
OpenFileDialog1.ShowDialog()

[CODE]...

The error is :"FileNotFoundException was unhandled. Could not find file at xxx". also I would like to know how to make it so that the initial file name for file saving is today's date. I do not get any errors when I try to save the file.

View 7 Replies

Opening An Excel 2003 File Then Searching That Open File For Data

May 22, 2012

I need to open an excel file from vb.net and then search it for specific data. I then need to take those data and insert them into text boxes on a form that i have created. This is all controlled by a button click. I already have some code that will open a file dialog box and let me navigate to the correct file, but I am having trouble with the search portion. I have tried the Find function but I am not sure of the proper syntax. I am using Visual Studio 2008 and Excel 2003.

[Code]...

View 7 Replies

File I/O And Registry :: Opening Andwritie To Text File Via Buttons?

May 21, 2009

Ok what i want to do is have a user specify a directory when this for is opened and have it remembered everytime this for is open,Also i have a few buttons and whenever the user clicks on one of the buttonsa i want it to open a txt file delete everything in it and write a value that i specify

View 9 Replies

VS 2008 File Association And Opening Program From Save File

Jul 20, 2009

I'm having a slight problem getting my program to load a save file when double clicking the save file.I'm using the Command$() to get the command line argument. I can open a save file by dragging it onto the exe. But not by double clicking the save file (after it's associated with the exe).I though dragging and dropping a file on a program and double clicking the file would open it in the same way, but I guess not.So in short how does file association work and how do I get the file path set to a var when the program loads.

View 5 Replies

Log File Reading - Timer Is Opening Log File Again And Again Every Milisecond

Jan 5, 2010

I got a log file (Log.txt) a timer and a RichTextBox1.Text The timer is opening the log file again and again every milisecond here the code:

Code:

Okay that keeps the track of my log file inside my richtextbox , but there is a big problem there. My richtextbox slows down hard if the log file gets too big.. Sometimes it kicks me out of the program and in taskbar it says Program Not Responding..

I wanted to know if there is a method to read a bigger Log file with out having such issues. (It mostly happens when log file goes over 13000 characters)

View 6 Replies

File I/O And Registry :: Timers And File Opening?

Nov 11, 2008

I am using VB.net 2005 and I have a timer running on form1 that communicates modbus with a relay io board. There should be constant uninterrupted communication between the two devices and that is working until I open the data logging form2 and import data from a large sequential text file. While I am parsing data, the timer from form1 stops communicating with the modbus device. Once the data is done, the timer of form1 resumes communication with the modbus device. Is there some other method I could use to make sure the modbus communication is never interrupted.? Is there a command I can periodically run from form2 while the data is being parsed that will keep the timer on form1running?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved