VictorToso's Q&A profile
.NET Development Return list of Group Roles that a user is a member of
Im trying to get a list of groups that a user is a member of. I have tried the Groups property of WindowsIdentity, but it returns results like this: S-1-5-21-139623.... I was expecting to get a result of "administrator" or some kind of english result, not just numbers. Any idea of what method I should be using. I am using VS 2005 with .NET 2.0... Thanks, You could try something like: ArrayList domains = new ArrayList(); DirectoryEntry de = new DirectoryEntry( "WinNT://" yourDomain); fore ach DirectoryEntry child in de.Children { if child.SchemaC ...Show All
.NET Development ADO.NET 2: GetSchema and Foreign Keys
Hello, How to discover the foreign key information when using the new GetSchema command on the Connection object I do get FK info, but cannot figure out how the tables and fields in this FK are related. For SQL2005 I get a FK name but not related table and field. Pls help. Hi Stefan, check this blog out http://blog.rioterdecker.net/blogs/valhalla/archive/2006/01/13/71.aspx it provides exactly what your looking for. A. ...Show All
Visual Studio Express Editions Upgrade Visual Basic 6.0 to VB 2005
How to upgrade from visual Basic 6.0 to 2005 Hi Revoldo, There are a bunch of resources out there that describe upgrading from VB 6 to VB.NET 2005. Here are some links that should help: http://msdn.microsoft.com/VBRun/default.aspx pull=/library/en-us/dnpag2/html/VB6ToVBNetUpgrade.asp And there is even a code advisor that helps with the migration: http://msdn.microsoft.com/vbasic/previous/2003/downloads/CodeAdvisor/ I don't know if it exists in Visual Studio Express but in Visual Studio Team Edition there is a Upgrade Visual Basic 6 code menu item that can be found from within Visual Studio 2005 under the to ...Show All
Visual Studio Tools for Office C# with Excel - are ranges with letters no longer usable, like "A3"
So can "A3" only be referred to as Cells[3, 1] In VB6 it was .ActiveSheet.Range("A3").CopyFromRecordset but now it would be Excel.Range range1 = (Excel.Range)sheet1.Cells[3,1]; range1.CopyFromRecordset(object data,object maxrows,object maxcolumns) or is there some way to still use the "A3" range Hi, if I get a Microsoft.Office. Interop .Worksheet from ActiveSheet I have no Controls collection as in Microsoft.Office. Tools .Excel (Office2007). How do I get to a Microsoft.Office.Tools.Excel.Worksheet object of the active sheet Thanks, Thomas ...Show All
Windows Forms Control deleted while trying to clear property value
Hi All, I found this forum is very helpful. Benjamin Wulfe just helped me solve my big problem. I'm posting another one. In my form designer project, I use IMenuCommandService.GlobalInvoke(StandardCommands.Delete) to delete selected controls in design time. However, the problem is that when I select the value in the property grid, and try to clear the property value using the delete key, this not only deletes the property value, also deletes the selected controls. How can I seperate the selected property values and selected controls. Thanks. I don't know if this can help ...Show All
SQL Server To add one report or many
I have a project that in the end will need to create one excel document that has 4 tabs. Basically each TAB is a separate report. One of the tabs will be a summary of the other 3 tabs. My question is, should I create 4 separate reports or just one with 4 subreports In other words, will I end up with 4 .rdl file or should I design it using one .rdl file so that in the end I can push out the 4 reports to one Excel document that splits each Report or subreport into 4 individual worksheets How do I push them out into one Excel document also Mike, could you answer my question about the rectagle tool So is that what I need to use and ...Show All
Windows Forms own draw controls
1. I understand that when I want to draw on a control, I have to call Invalidate(). This will trigger the Paint event. If I override the OnPaint method, I can gain access to the EventArgs object. I can draw on its associated Graphics object... So, the control is not redrawn until I finish drawing on the Graphics object of the PaintEventArgs, since I have overriden the OnPaint method Is the drawing done only after the OnPaint method has been executed 2. Suppose I call the Refresh method for a control because I want to redraw the control and its child controls. ...Show All
SQL Server Bookmarks (Management Studio)
How do you save bookmarks so you can use them next time you edit the saved query file I asked the same quesiton with 0 responses, I am creating a feedback suggestion now for it. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=351510&SiteID=1 Derek vote here: someone allready suggested this... http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=7e600860-0662-44cf-bc9b-b6565e3d213c ...Show All
SQL Server ForEach Config validation errors
I have a Config file for a Data Flow that is utilizing a Configuration file. I have specified in the Configuration file to capture the Directory and FileSpec for the ForEach Enumeration. When I open the package, I get the following error: Warning 1 Warning loading ISOTypeLoss.dtsx: The package path referenced an object that cannot be found: "\Package\Foreach TC03 File.ForEachEnumerator.Properties[Directory]". This occurs when an attempt is made to resolve a package path to an object that cannot be found. i:\visual studio 2005\projects\claimtran\isotypeloss\ISOTypeLoss.dtsx 1 1 Warning 2 Warn ...Show All
Visual Studio Welcome to Crystal Reports for Visual Studio Forum
The Crystal Reports for Visual Studio team want to hear your questions, feedback and comments on our integration into Visual Studio 2005. If you're not familiar with Crystal Reports, you can quickly try it by using the Crystal Reports Application project template when creating a new windows application or a new website in Visual Studio 2005 Profession Edition and above. You can also drag n drop the CrystalReportsViewer from your toolbox in the Crystal Reports tray. For information specific to your bundled version with Visual Studio 2005: Visit our Business Objects Visual Studio 2005 Developer Zone . ...Show All
Visual C# How do I organize my code in small segements that I can minamize??
Hi, I would like to be able to group together small pieces of code that I can expand and minamize just to have my code more clear. I know visual studio does it when it auto generates code but how(or can I ) do it Many thanks Enclose the code you want to minimize into a #region. The text you put after #region is shown when it is minimized. HTH, Fred ...Show All
Visual Studio Team System Without SQL Express?
Firstly, nice to see such a product as VSTSDBpro from Microsoft, can't wait until it is offically released. Is there any way of using the product without having SQL Express I would like to try the CTP on a pure SQL 2000 environment and was hoping there would be a way of configuring it to setup its own databases in SQL 2000 Thanks, Gurbhajan I had that problem too. Bring up the Tools/Options box and remove the db instance name from the database options. Also, see my blog for other "first impressions": http://developcode.blogspot.com ...Show All
Visual C++ Invoke Intel C++ compiler from VS2005 Pro
I need to compile the Release configuration of DVDx (SourceForge) from VS2005Pro with teh Intel C++ compiler (either 8 or 9 version). The Intel C++ 9 installer is supposed to proceed VS .Net 2003 integration which doesn't work for VS2005. How can I do this integration manually In the latest Intel C++ 9.0.029 a Readme file says that VS2005 will be supported when officially released by Microsoft. So I guess the support should be added soon in a new build from Intel. For now, I reinstalled MS VC++ 6.0 which is supported by Intel 9. I had to hack the dsound.h in DX9 SDK 12/2005 to add (line #301) ...Show All
Windows Forms Can someone tell me how to add a simple white space using C# in string... forget the code...
I am trying to indent the items in a System.Windows.Forms.ListBox, and I was wondering what escape character or unicode I use for simply adding a certain number of white/blank space Thanks. I'm not sure I understand the question, why not use the space character listBox1.Items.Add( " Five Spaces" ); Alternatively, you could use "\t" for a tab character. ...Show All
.NET Development Could I pass data between threads?
I create a DataTable in one thread, when I pass it to another thread, the data in it seems corrupted. How can I pass data between threads Thanks! Hi, If you dont want to declare a class level DataSet variable,you can just pass the Dataset object to a method in main thread. using System; using System.IO; using System.Threading; namespace ThreadMethod { class Class1 { Class1() { Thread tThread = new Thread( new ThreadStart(TMethod)); tThread.Start(); } void CallBack( string msg) { Console.WriteLine(msg); Console.ReadLine(); } void TMethod() { string msg = "Hi..This is Suresh here"; CallBack(msg); } [STAThread ...Show All
