SDY's Q&A profile
Visual Basic Datagridview
Dir Team i have a form include two tables master and detail 'textboxes & grid' i want to hide a coulmn from the grid i made tablestyle collection:,mapping table,collection,mapping coulmn width=0 STILL NOT WORKING Dear Professor Ged Mead Thank you Thank you very very much AT LAST it works BUT -The colores of the format is gone even by code like backcolorselection and line is light and other is dark 'all of them are white' -How to capture the Key from the master and insert i ...Show All
Architecture How can I achieve self-documentation AND generality
Here's the issue I am stuck with, and browsing through a ton of pattern books hasn't provided a solution as best I can tell. I have a problem that requires one of two possible solutions, and I am looking for perhaps a third that I'm not aware of. I have a set of classes that inherit from a base class, and each of these classes does some activity and returns a boolean result. The problem is that each of these classes requires a different number of inputs, from 1 to 5 in order to do their evaluation. These classes also only accept base types as arguments (int32, double, string, boolean, etc) to avoid having them restricted in their usag ...Show All
SQL Server Email Export?
Hello, In the Crystal Report Viewer control, there is a way to export a report to the file format of choice (i.e. pdf or xls) and have it emailed. This is probably a stupid question, but I have to ask it... Is there a way to have an exported report in SSRS 2005 emailed without saving the report and then attaching it to an email I know about the scheduling services, but that will not work for me as my reports are created dynamically and displayed throught the ASP.NET 2.0 Report Viewer Control. Thanks!!! -Brian Hi, Have you tried Report Subscription using "Report Server E-mail" op ...Show All
Visual Studio Express Editions Checking if an object exists before returning?
Hey, I have a multiform program. On one form, i wish to return a ListViewItem, to the callling form, but ONLY if an instance of the class was made (i.e. only if the object exists). It goes like this... Top of code in secondary form: ListViewItem myItem; ... public ListViewItem GetItem() { if (myItem != null) return myItem; else return null; } Later on in the code of the secondary form: void ButtonAddClick(object sender, System.EventArgs e) { myItem = new ListViewItem(); //myItem no longer = null, so will return when form is OK'd (via the OK button) } Is something like this possible Please help :) Cheers, Jonathan ...Show All
.NET Development Signing Web Application with StrongName
I want to Sign my Web Application with a StrongName. So that I want to assign some permissions to that application. I have followed the steps as found at http://blogs.ugidotnet.org/markino/articles/24955.aspx So, I have included compilerOptions in page directive, And my key file is c:\WebOffice.vb <%@ Page Language="vb" compilerOptions="c:\WebOffice.vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApp2.WebForm1" %> But it is giving the error as follows Compilation Error Description: An error occurred during the compilation of a res ...Show All
Windows Forms layout components when resizing
Hello all, I have a simple form that contains a couple of buttons and a listbox. I'd like the elements to be "connected" so that when I resize the form window they also resize, as in keep the distances from the form. In QTDesigner I used to put some layout lines which kept things at a proportional distance at all times, so when I resized the window things on the page resized also, but for some reason I can't find some good documentation on how to do that. Thanks. What you probably want to do is set the Anchor property on these controls. If you set Anchoring to Left,Right (for example), the control will grow in siz ...Show All
Visual Basic ADO Connection String for SQL SErver 2005 Express Remote Connection
Hi I have Installed Microsoft SQL Server 2005 Express (Named Instance:=01HW050876\SQLEXPRESS) in my machine (OS : Windows XP). I am using ADO in Visual Basic 6 to connect to the database. I use SQL Server Authentication to connect to ther server. It works fine if I connect from my machine. However, if i try to connect from a different machine I get the following error: Unhandled Error [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied Here is my connection string: Public Const CONNECT_STRING_SQL As String = "PROVIDER=SQLOLEDB.1;SERVER=01HW050876\SQLEXPRESS;UID=user;PWD=sqlpwd;DATABASE=SalesWind ...Show All
Visual Studio 2008 (Pre-release) Three examples I'd like to see from the Avalon ATC team
I couldn't find a way to contact the Avalon ATC team, so I figured I'd do it here. Here are two samples I'd like them to show: Fixed Percentage Width ListView: We define columns with a percentage width. The columns cannot be resized. Whenever the window is resized, the columns resize based on the percentage of the entire ListView they take up. Variable Width Fixed Total ListView: Columns are defined by normal widths. However, the last column auto sizes to the end of the ListView. Resizing any column bigger resizes the column next to it smaller. Therefore, the total width of all the columns is always the exact amount of space the Lis ...Show All
Visual Studio 2008 (Pre-release) IDE crash after unhandled runtime exception + memory corruption error (WinFX involved)
This problem may be related to other threads I've read such as http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=102399&SiteID=1 however I have a specific repro program, described below. Summary: During an uncaught runtime exception with WPF, depending upon the user's response the VS IDE closes without warning, sometimes with or without a Watson report dialog. Installed: Visual Studio 2005 Team Edition for Software Developers WinFX runtime components, SDKs, and VS Extentions as in the order described by Tim Sneath http://blogs.msdn.com/tims/archive/2005/11/18/494526.aspx . Previously installed: VS2005 Beta2 and WinFX beta 1, but ran ...Show All
Visual Studio Debugger temporarily hangs before not loading the PDB for CppCodeProvider.dll
I'm running XP Professional and VS 2005 Professional and I have a two project solution (one web project, one class library). When I hit F5 to start debugging, the IDE will intermittently "hang" with the following message in the status bar: "Loading symbols for c:\windows\assembly\......\CppCodeProvider.dll". After about 30 seconds the IDE responds and the debug session starts. Watching the Modules window (Ctrl-D, Ctrl-M) shows me that the IDE is trying to load symbols for CppCodeProvider.dll and reports "No symbols loaded" in the Symbol Status column. When the debug session finally starts the Symbol ...Show All
Visual Studio Source Safe 2005
Hello Friends, I'm having a problem using the source safe 2005 about the permission for check-in and check-out for the users in the projects. In the company I work, people use the " Working Folder" in a server, and not on a local machine, like many people do. Each development team has the right to modify files on this physical directory and the problem is at this point. When a file is checked out, some people go directly to this directory and modify this file, without using the Source Safe in the process. Is there a way to lock this file and not only put it into a "read only" status Thanks for the help! ...Show All
Visual C++ Trying to get metainfo sample application to compile
I am currently trying to get the metainfo sample application that comes with VS 2003. The application code is located at (for a standard VS.Net install): C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Tool Developers Guide\Samples\metainfo Since I am learning VC++ and the ins and outs of the VC++ IDE in VS.Net (tons of settings I haven't a clue about yet) ... I just can't the application to compile. Currently I am getting 3 errors, all C2664 'cannot convert parameter n from type to type . For example: metainfo.cpp(147): error C2664: 'FindFirstFileW' : cannot convert parameter 2 from 'WIN32_FIND_DATA *__w64 ' to ...Show All
Smart Device Development Registry Editor for x86 devices?
Hi there. So Ive looked all over the net to find at registry editor for x86 devices but with no such luck. And also these forums without any luck. Anybody that knows of either a free or a trial registry editor out there On that will run on the device directly I have tried to connect remote but for some reason I cant. I get an error message stating that the computer I connect to either is not available or it is not ready! Edit: This device is running Windows CE 5.0 if it helps interesting ... I've come across quite a few of them. stx regedit for one. I'll let you do your own googling on ...Show All
Visual C# Refrencing Assemblies
I am trying a simple program which refrences another assembly , I open the "AppDomainTest" (Consumer of the assembly) go right click on the References and browse and add a reference to the assembly I want to use (This is also a sample assemblu I wrote), lets say this is "AssemblyA" But i get the folowing compilation error on the "AppDomainTest" ....... Error 1 The name 'AssemblyA' does not exist in the current context C:\VSProg\AppDomainTest\AppDomainTest\Program.cs 15 42 AppDomainTest Why is compiler not able to recognize "AssemblyA" even though I see "AssemblyA" in the list refe ...Show All
Smart Device Development Error when building ImageList!
In a smartphone 2003 project in VS2005, I assigned a imagelist with image(s) to a listview and got the exception: "NotSupportedException". All codes are auto generated by the IDE. How to solve this codes: ' 'ListView1 ' Me.ListView1.FullRowSelect = True Me.ListView1.Location = New System.Drawing.Point(0, 0) Me.ListView1.Size = New System.Drawing.Size(176, 180) Me.ListView1.SmallImageList = Me.ImageList1 Me.ListView1.View = System.Windows.Forms.View.List Me.ImageList1.Images.Clear() Me.ImageList1.Images.Add(CType(resources.GetObject("resource"), System.Drawi ...Show All
