Meltdown61's Q&A profile
Visual Studio 2008 (Pre-release) DATA BINDING: Why are ValidationRule and ValueConverter objects always invoked with null value?
I've noticed that whenever I make a change to a bound property, the Validation and Converter objects are always called with a value of null before they are called with the actual value to be changed to. Apparently the binding system sets the value of the property to null, then sets it to the actual intended value. Presumably this is by design, can anyone shed some light on the intent behind this Is it just to ensure that the property does change (fire events, etc.) Thanks NIK ...Show All
Software Development for Windows Vista Bound Dynamic properties not retained after save - Using Vihang Dalal's Designer Rehosting
I am using Designer Rehosting code posted by Vihang Dalal. I am also using DynamicPropertiesActivity from Ghenadie's blog. I create a workflow with DynamicPropertyActivity as one of the activities. Added 'strTest' to DynamicProperties collection. In order to be able to use this attribute in the rest of the workflow to bing to other activities, I believe I have to bind 'strTest' to a new member. So created a new Property member say dynProp_strTest. I can now use dynProp_strTest to bind to other activities. So far so good. The issue comes up when I try to save this workflow and then reopen it again in Designer. I can no longer see the new member 'dynProp_strTest' that I created. I understand it is getting lost during Save, but do not exactly ...Show All
Visual Studio 2008 (Pre-release) Skinning a ScrollViewer (How do I create a custom ControlTemplate)
I'm creating a custom control templates for all of the controls in an app I'm developing to give a custom look and feel. However, I'm stumped on the ScrollViewer. When I have a ListBox or some other control that uses a ScrollViewer and both scrollbars are visible, I can't figure out how to change the color or behavior of the gray box in the bottom right corner where neither of the scrollbars extend into. Anyone have any ideas Shawn Van Ness has an example scrollviewer template with the vertical ScrollBar on the left: http://www.windojitsu.com/blog/leftiescrollviewer.html The one pixel border is probably a bug. The WPF controls should match the native versions but they are not pixel perfect because the ...Show All
Visual Studio aspnet_compiler "Object Reference Not Set to Instance.....
Just having some problems recently and I'm not sure what's going on. My project runs and compiles fine from the IDE, but when it's published generates the "Object Reference Not Set to an Instance of an Object". It doesn't reference code or a line number to check. I did a errorstack and to me it looks more like a compiler problem--this is the trace: [NullReferenceException]: Object reference not set to an instance of an object. at System.Web.Compilation.BuildManager.CopyPrecompiledFile(VirtualFile vfile, String destPhysicalPath) at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect ory sourceVdir, String destPhysicalDir, Boolean topLevel) at System.Web.Compilation.BuildManager.CopyStaticFiles ...Show All
Visual Studio Express Editions dates and null values
My column in sql is of a date data type. I have a textbox that a user can enter a date when certain parameters in the program are met. On occasion a date does not have to be entered in the textbox. This is where I have a problem. The column can accept null values but I am not sure how to program this part. I have a date variable = cdate(txtbox1.text). If nothing is entered in the textbox I get an error message of "can't convert "" to a date) Any help would be appreciated. ok cool thats great. Basically, if the textbox text is nothing (or length is 0) then set the date parameter to DBNull.Value - don't do any conversions at all, just set the parameter value to DBNull.Value and that should ...Show All
SQL Server locating sqlexpress database
I have created my sqlexpress database in Visual Studio 2005. When i go to SQL Server Management Studio Express I cannot open my database. It is not listed automatically and I get an error 'There is no editor for 'database name' Make sure the application for file type (.mdf) if installed.' Any help or suggestions will be appreciated. Thanks Databases that are created by Visual Studio reside in a per user location and are not attached to the main instance of SQL Express. VS uses a special kind of instance of SQL Express called a User Instance . VS provides a fairly complete set of database management tools built-in, so you should be able to do your management task from directly in VS. There are a couple barriers if you wa ...Show All
SQL Server sql query
hello everyone, i have a question hope to be solved: now in a table:has five column: rowid part_id vendor_id quote_price quote_date 1 b--877 000001 12.3 2003-8-5 2 b--877 000005 12.6 2003-8-6 3 b--899 000023 53.63 2003-10-2 4 b--899 000025 53.96 2003-10-8 ... ... .... ... .... from above table i want to get a table of four columns of original table:that is: part_id vendor_id quote_price quote_date b--877 000005 12.6 2003-8-6 b--899 000025 53.96 2003-10-8 that is the only part from the last ...Show All
Visual Studio Error during setup: "Some components must be installed in ..."
I'm trying to reinstall VS05 on my Server 03 dev platform. I did a first install of VS05 after SQL 2005 was installed, and the SQL-related designer packages (report designer, etc.) would not load in VS. (SQL had installed the mini-VS2005 with these packages.) So, I uninstalled VS05 and SQL05 to start fresh. Now I can't get VS05 to install. I get a message "Some component must be installed in C:\Program Files\Microsoft Visual Studio 8\ directory. Check that you have write permissions and enough space in that directory". There is plenty of room for the setup options I selected. The same thing happens if I select an alternate drive letter that has 20GB free. I've tried this logged in as Administrator, too. Any ideas what is causing this ...Show All
Visual C# Unable to delete folder - being used by another process
When I try to delete a directory I get an IOException because it is being used by another process. The only process that is using it is the one trying to delete it. To prove this I created a folder and added a txt file to it. I started the app, used an OpenFileDialog object to get the string of the selected file. I then try to delete the file but get the exception - I also get the error if I try to delete the file through Windows Explorer. When I close the app I can delete the directory in windows explorer. I don't understand why this is happening as I have disposed of the object. Is the OS holding onto something that I need to clean up Here is a simple example of the problem. try { OpenFileDialog openFileDialog1 = new ...Show All
Visual C# Decompress a list of files
for my program I am trying to take a list of files in the format *.zip and decompress them. I am able to read the list from the folder and initialize decompression with GZip, but then it tells me that the magic number in the header was incorrect and that it cannot decompress it. These files come from other companies and I have no controll over how they are compressed. If GZip can only decompress its own files, what good is it Is there a way to get around this Thanks in advance, Hi, Try using SharpZipLib: http://www.icsharpcode.net/OpenSource/SharpZipLib/ Charles ...Show All
Visual Basic Formatting date in vb.net when the date comes from Excel 2003
I'm trying to parse a date to the format 'yyyymmdd'. The date comes from an excel cell that is formated for dates like mm/dd/yyyy. I read the cell into an arraylist and try to format it something like this Dim a as new arraylist Dim xl as excel.application xl.workbooks.open ... Dim s as string Dim i as integer = 0 s = Ctype(xl.cells(r,c).value,string) a.add(s) Dim d as new datetime d = a(i) Dim ds as string ds = d.tostring("yyyymmdd") if I read 10/22/2006 from the spreadsheet, the value d will contain the value #10/22/2006#, but ds will contain 20060022 if I replace d=a(i) with d=ctype(s,datetime), I get the same result. VB's format function does the same thing. Any suggestions ...Show All
Microsoft ISV Community Center Forums Hiding the Database Window
Hello. I have been developing a reporting system in Access, and want to hide the database window before distributing the file to the users. I've tried using the settings on the Startup dialog box, and I've also tried setting the "StartupShowDBWindow" property programmatically via VBA, but nothing happens. I don't get any error messages, but the database window stays visible. Any suggestions Thanks Try this: DoCmd.SelectObject acForm, , True DoCmd.RunCommand acCmdWindowHide Put this code somewhere in the start up, or in the initial startup form. This code will actually hide the database window at anytime. ...Show All
Visual Studio Express Editions Hide console window launched by application
Hi all, I need to make an application that will launch a console application with different user account and hide that console windows. So the code is: Process itFPS = new Process(); itFPS.StartInfo.FileName = "snetcfg.exe" ; itFPS.StartInfo.Arguments = " -l \"" + libPath + "netserv.inf\" -c s -i MS_Server" ; itFPS.StartInfo.WorkingDirectory = libPath; itFPS.StartInfo.UserName = uid; itFPS.StartInfo.Password = spass; itFPS.StartInfo.UseShellExecute = false ; itFPS.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; itFPS.StartInfo.CreateNoWindow = true ; itFPS.Start(); But with "UseShellExecute" set to false and username, password specified, neither "StartIn ...Show All
Visual Studio 2008 (Pre-release) SDK UDDI - problem solved
1) Does the uddi sample work with only basicHttpBinding only Or can you use wsHttpBinding also 2) I noticed that UDDI related code is not coming from .net framework but appeared to have been generated with some internal schema or published uddi wsdl. Does this mean this code will look like this until WS-Discovery support is in place Thanks. I'sure it does NOT work. After i installed the SDK, I did NOT find neither code neither DLL. That's my problem : i miss the last UDDI SDK ( DLL overall). I downloaded the 2.0 SDK ( Microsoft.Uddi.Sdk.dll VER. 2.0.2128.1) but the namespace it's different. I mean : on MSDN ( http://msdn.microsoft.com/library/en-us/uddi/uddi/uddi_classes.asp ) there is doc about these classes... but the ...Show All
Visual Basic User Control problem
I have a UserControl which basically shows in a textbox the content of a row in a table relationally linked to another table in a database and also a combobox containing the contents of that second table. This mean that as you travel through the main table you can see what the linked text entries are and have a combobox when entering a new record. I started the table in VB.NET 2002 and upgraded it to VB2005 Express and have been using it successfully for some months.So, it has saved considerable code and added to my VB skills. However, having recently discovered the MaxDropDown size property for the combobox I wanted to add a line to the UserControl to fix the MaxDropDown size to be the size of the records in the table it accesses. T ...Show All
