Daniel Hilgarth's Q&A profile
Windows Forms FileIOPermission on My.Application.Info.DIrectoryPath
Hi all, As the title suggests, I am getting a System.Security.Permissions.FileIOPermission exception on this line of code: ... Dim path As String = My.Application.Info.DirectoryPath ... I am calling this line within the Form_Load event of a Windows form. Do any of you have any idea as to why this is happening Thanks, Stephen. It sounds like your application is running in a security zone where the FileIOPermission is in some way restricted which doesn't quite work for DirectoryPath. What zone is your app running in Any chance of increasing it ...Show All
Community Chat IE7 Problem
Hi Guyz!, I have developed VB application which downloads files from server and process that data at client side. this application uses WinINet.dll functions for connecting to server through HTTP protocol. It is working fine with huge data also like 3MB. recently customers upgraded IE6 to IE7(they are using RC) and they are facing problems now. while downloading huge data(3MB) application showing 12002 - request timed out error. Is this know issue with IE7 any workaround to solve this error Application working fine for very small data with IE6 and IE7 Please help... Thx in advance, Surya IE 7 takes a lot of time while connecting to sites as it searches for phishing sites. So it results in a ...Show All
Visual Studio 2008 (Pre-release) Dynamic User Controls on a DockGrid
The project is an xbap. I created a usercontrol called timecard (.xaml and .vb) I have a button that does: ---- dim _tc as new timecard _tc.Timecard_HostPage(me) m_Dockpanel.Children.Add(_tc) --- On the user control I have an "x" button that call a handler on the hostpage passed via the Timecard_HostPage function that removes the usercontrol passed back as "me" to the m_Dockpanel.Children.Remove on the hostpage. I can add an infinite number of Timecard controls to the page, but I can only remove one. Once I click the "x" on another one, I get the following error: "Specified Visual is Already a child of another Visual or the root of a CompositionTarget" Now Ive done so ...Show All
Visual Studio Express Editions error trying program on other pc
Hi I've got a program. It has 1 source file (.cpp) and 1 header file(.h). When I compile on my local machine the program works just fine, but when I try it on another pc I get the error that somethings wrong with the configuration of the program and that it can't be run. I have .net framework 1 till 2 installed and the microsoft visual C++ 2005 redistibutable on the other pc. Anyone know what I need to do to make it work (and is it normal that my compiles program is smaller then my source code (.cpp and .h file together) ) Thanks in advance. K, I changed some things in the options , recompiled (release version) and now it says these 2 files are missing: - MSVCP80.DLL - MSVCR80. ...Show All
Visual Studio 2008 (Pre-release) Inherited Custom Image Control...
I've been trying all sorts of methods, searching Google, this forum, MSDN, etc. for successfully creating and using a custom Image class, inherited from the base Image class... public class SidebarIcon : Image { private string iconTitle_x; private string iconPath_x; public string iconTitle { get { return iconTitle_x; } set { iconTitle_x = value; } } ... } Now, going from there, or taking a totally different approach from making this simple custom control... I want to use it in XAML just like I can the Image class, but with those added properties, iconTitle, and iconPath. I've seen and tried samples all over like, <cc:SidebarIcon/>, etc. But ...Show All
Visual C# error CS0016
I'm trying to run the csc command on a server. One user works, but I can't get any other user to work. I've tried giving the other users admistrative rights, but still no luck. The user that does work logs in against the machine and not against the company domain. I can not find any other differences. Why can't any user run this The command is like csc.exe /target:library /out:D:\DEVTEST\cc_keys.dll /reference:D:\DEVTEST\library.dll cc\src\Class1.cs Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42 for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727 Copyright (C) Microsoft Corporation 2001-2005. All rights reserved. error CS0016: Could not write to output 'd:\devtest\cc_keys.dll' -- 'The direct ...Show All
Visual Basic TImer w/ call fx
i need 2 call 2/4 fx in a loop at the same time, add a timer/delay b4 every fx is executed code is sumtink likie this Private Sub Walk_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Walk.Click Dim a As String Dim b As Integer Dim c As String Dim d As String a = &HFF b = &H5F c = &H11 Do Until Timer2.Enabled Call RLeg_Up() Loop Call LLeg_Up() d = (SendWalk(0) Xor SendWalk(1) Xor SendWalk(2) Xor SendWalk(3) Xor SendWalk(4) Xor SendWalk(5) Xor SendWalk(6) Xor SendWalk(7) Xor SendWalk(8) Xor SendWalk(9) Xor SendWalk(10) Xor SendWalk(11) Xor SendWalk(12) Xor SendWalk(13) Xor SendWalk(14 ...Show All
Visual C# Windows Updates
How can I check if windows updates are enabled Thanks, It would be nice to be able to post at the good old MSDN forums again, instead of the police state we're living in lately. Anyhoo, I think Windows Updates operates at two levels: the service downloads updates in the background and 'a component' pops up from time to time to ask you to install the updates. You probably disabled the latter but not the former. Sorry, don't know how the former works, I got tired of it quite a while ago and turned everything off... ...Show All
SQL Server Permissions needed to Restore a DB using SMO
I use the following code to restore a database. ServerConnection srvConn = new ServerConnection(cmbServer.SelectedItem.ToString()); srvConn.LoginSecure = false; srvConn.Login = txtUsername.Text; srvConn.Password = txtPassword.Text; srvSql = new Server(srvConn); Restore rstDatabase = new Restore(); rstDatabase.Action = RestoreActionType.Database; rstDatabase.Database = cmbDatabase.SelectedItem.ToString(); BackupDeviceItem bkpDevice = new BackupDeviceItem(openBackupDialog.FileName, DeviceType.File); rstDatabase.Devices.Add(bkpDevice); rstDatabase.ReplaceDatabase = true; rstDatabase.SqlRestore(srvSql); MessageBox.Show("Success"); When I use any user other than "sa" the SqlRestore() method fails with the " ...Show All
SQL Server Need Help on this SQL Statement
Hi All, sqlLstProds="Select * From PRODUCT_DEF "&_ "WHERE productID IN(Select productID From PRODUCT_DEF WHERE (IDProductCriteria = 5) AND ([Value] = '"&getSession("ModelID")&"')) "&_ " Order By IDProduct, IDProductCriteria" I have the above SQL Code in an ASP page. This queries the Product_Def table, however there is also a table called Product_sType, the primary key in that table is productID which corresponds to productID ub the Product_Def table. I need to add to the query a where clause, where active = 1 active 0 is obviously discontinued products, how would I do this So basically, it's somewhat of a join of some sort, like select * from Produc ...Show All
Gadgets Force user to the Settings UI window
I have a gadget that requires some user settings before it can function. I'd like to check the settings and if they are blank, say something like "Click here to change settings". Then when the user clicked the link, I would like to open the settings window just as if the user clicked the little wrench icon. Right now all I can do is tell them to click the little wrench thingie and hope that they know that that means. Unless I'm overlooking something in the Sidebar Gadget Object Model , I don't see a function for this. Does one exist It would be nice to have a System.Gadget.Settings.show() function to launch the settings UI. Donavon Sorry, but this is not supported. It's a better user experience to pick ...Show All
Community Chat Zune Subscription
I've been scrounging around online and thought I might be able to get a definitive answer here. Currently, I have Napster-to-go with my Dell DJ. The DJ is on it's way out the door, and I'm looking at getting a Zune. Will this Zune subscription thing for 15 bucks a month allow me to transfer music to the player itself, or is it simply to let you listen to music on your computer In other words, will there be something like napster-to-go that works with the Zune TIA! mykenk wrote: How does the library compare with other companies (Napster, Yahoo, Rhapsody) From what I understand, all of them use the same online licensing company, MusicNet, for their files so the selection is virtually the sam ...Show All
Visual Basic Searching a way for calculating checksum in HEX with 16 Bit algoritm
I have a form with a Button and a TextBox. When I click the Button it shows an OpenFileDialog and i want that it calculates the Checksum of the OpenFileDialog1.FileName in Hexadecimal and with a 16 Bit algoritm. And after that it calculates the Checksum i want that it writes in Little Endian that means that if the Checksum is 1C E0 it writes E0 1C at offset 23 and 24 (in Little Endian) of the OpenFileDialog2.FileName or display the Checksum as TextBox1.Text . T here are many HEX Editor that they calculate the Checksum of a file but i want to develop a my application. There is a good way in VBdotNET For writing Bytes i have this code &n ...Show All
.NET Development Extending the XHTML schema
Hi all, I''m with this question that maybe you could answer. I've extended some XHTML tags to add an form validation functionality in the client side (implemented with javascript ). I’ve created a set of attributes that indicates what kind of validation check is needed for the form field before it was submitted to the server. Like this: <input type="text" v:type="email" /> <input type="text" v:type="name" /> Then a javascript function processes all the tags and validates the form accordingly to the v:type attribute. Everything was fine. All the modern desktop browsers supported the extension, but that’s not enough for the project I’ve been working on. The code must be validated by some XHTML validators around the web. The c ...Show All
Visual Studio Express Editions Making a textbox into an array and reading from each point in the array
I'm trying to build a name generator, that takes a letter from one point in an array, (Which originally comes from a textbox), and changes that letter to some other character. So for instance, if i put the name "Sam" in textbox one and clicked the "Generate" button, the out put, (Which has random keyboard typings of each letter, like S as "Ess" or "$") would go to textbox 2. So basically i want to build a name generator for The "Leet" or "L33t" Language. What i need to know is: 1.How to assign the Data of Textbox1 to a String array 2. How to read from each point in this array and 3. How to set the output to go to a certain point in an array for textbox2. Any help would be greatly ...Show All
