Get the last changed date of a xml-file with vb.NET
Is it possible to geht the date, when a xml-file last time was changed. I mean the date, which you can see, if you right-click the file and click properties. ...
Is it possible to geht the date, when a xml-file last time was changed. I mean the date, which you can see, if you right-click the file and click properties. ...
The line below fetches all files that start with Cake. Dim fi As System.IO.FileInfo() = di.GetFiles("Cake*") How can i write the search pattern to get all the files, that do not start with Cake? ...
I'm trying to serialize a data structure and pass it to another report via parameter, and this line of code: Dim s As New System.Xml.Serialization.XmlSerializer(GetType(System.Collections.HashTable)) Produces this error: An error occurred during local report processing. The definition of the report '/myReport' is invalid. There i...
I can't set the FontSize of the Text in a TextBlock, since the TextBox is in a Viewbox. Why? ...
I have a Page class and a PageCollection class in a 3d party ORM framework. I can fill the PageCollection based on parameters (pageid, parentid, url etc..) (SQL query). But I need the data multiple times around the ASP.NET MVC website (Sitemap, Authentication), so I chose to load all pages 1 time and reference that (global) collection. ...
How can I add an window/event listener/handler to a wpf-window? I want to know, if the user wants to close the window. ...
I'm trying con build a simple chat client/software (whole in on executable) wich start listen from the start on the port 5900 and when a client connect to that port the chat is established. The problem is that only the client can chat to the server, the server cannot answer the client because the connection is working in one way. The i...
Using VB 2008 .NET 3.5 I am working on an N-Layer desktop application. Suppose a method in the BLL runs into an situation where the user needs to be notified and the method needs to wait for the user input (OK, Cancel, etc.) before continuing. How do you typically handle this? Assume that this situation happens fairly often but not a...
I need some help with a LINQ query in VB.Net, please. I have this simple group statement: Dim drivers = From d In DriversOwners _ Group d By Key = d.UnitNumber Into Group _ Select Key, DriverGroup = Group This works, and returns me the data I need to work with. Now I want to iterate through the groups, using a For Each construc...
I have a datagrid in asp.net and vb.net, and i'd like to show the status of the item of a certain row with two possible icons. What would be the easiest way of doing so? I have a function that checks validation and returns a boolean value that uses some fields of the datagrid. (you can answer in c#) ...
I'm stuck! I understand the page lifecycle and how i need to add the dynamic controls on page_init if I want to take advantage of viewstate. Also I know that I should try to avoid dynamic controls when possible. The dynamic controls are created depending on an object that is created from custom event arguments sent from a custom treev...
Hello, I have 2 forms. In form1 i have a textbox called TextBox1 In Form2 i have another textbox called TextBox2. I want the text from textbox1 to textbox2, i tried this. TextBox2.Text = Form1.TextBox1.Text Do i need to make changes to the first textbox? ...
Is it good practice to store sub-collections of item X inside a parent collection of item X for caching 'filter-queries' which are performed on the parent collection? (They won't be used together (as in color AND type).) Or is it also ok to just Loop over the collection and return the correct entities in a temporary collection? Class It...
Is there a way to restart a windows application written in dot net using dot net code I mean the application should exit and restart itself, on click of a button ...
Hi, I am creating a website using asp.net mvc model. When you crate and mvc application asp.net automatically creates roles/profiles for user and admins (as far as i know) and corresponding tables in sql server database. I a need a new profile/role names "sponsor" that has all the benefits of users/admins (like authorization etc). Is ...
I'm using a ContextMenuStrip for multiple controls and I'm trying to figure out the best way to get the control that was actually clicked on to open the Context Menu. The sender just gives the ToolStripMenuItem reference, which has an Owner property that references the ContextMenuStrip, but I cannot figure out how to tell which control ...
I want to able to hold a key down while the application is loading and depending on which is being held down a certain form is shown. For example holding down shift and the opening itunes opens a little dialog allowing you set the library(or something) I can check whether the shift/Ctrl/Alt are being held down but i'd prefer to use the...
hi, i want to update different areas of my MVC page after one action (say a click) occurs. how, i use ajax, and wrapping the entire area where all these parts need to be updated is counter intuitive as the ajax data being sent back would be close to the entire page. so, i have a few partial views, - but the problem is, each action only...
Dear All, How i can find multiple occurence in given string in vb.net For e.g my string is two times : 1234567 1234567,Desction,1.32 1234555,Desction,2.30 1234556,Desction,2.30 1234557,Desction,2.30 1234567,Desction,1.32 I want to put this two rows into a Dropdown Menu which is on my Form Its Urgent Thanks in Advance ...
Mornin', I'm trying to just get basic encryption working using System.Security.Cryptography.RjindaelManaged. I have google for this error and cannot find the problem, or what I am doing wrong. All I am attempting to do is encrypt a string, and then decrypt a string. Following is my code, and any help would be appreciated. Imports Syste...