Software Development Network Logo
  • Windows Forms
  • Visual FoxPro
  • SQL Server
  • Visual Basic
  • .NET Development
  • Game Technologies
  • Windows Live
  • Smart Device
  • VS Team System
  • Windows Vista
  • Visual C++
  • Microsoft ISV
  • VS Express Editions
  • Architecture
  • Visual C#

Software Development Network >> ucnnohm2's Q&A profile

ucnnohm2

Member List

Everett Buel
TJ2007
Aleks K
Zurdo
Shawn Van Ness - MSFT
zc1984
SeattleCard
Arif Khan
TennisGeek
ShashankBhardwaj
EdgarGustavoPerezGonzalez
Stanley_S
Anoop_Abraham
Dmitry N. Oleshko
Elfmanne
Ken S
David van der Kooij
Robert Johnson
SteveBouffard
robinsenior
Only Title

ucnnohm2's Q&A profile

  • Windows Forms DATAGIRVIEW

    Can you make a single cell a button in the datgirid view control Yes, you can. You can add any from DataGridViewCell inherited cell to any type of DataGridViewColumn. E.G a DataGridViewButtonCell to a DataGridViewTextBoxColumn. Regards Adrian ...Show All

  • Visual Studio Tools for Office Office automation - getting a built-in constant with late binding

       Hi everyone,    I'm using late binding to access Office applications. I don't want to hardcoding the constants (for example Outlook.OlItemType.olMailItem) but to get them at run time by using reflection. Here it is a bit of code: Type outlookType; outlookType = Type.GetTypeFromProgID("Outlook.Application"); outlookApplication = Activator.CreateInstance(outlookType); parameters = new object [1]; parameters[0] = 0; //instead of 0 i would like to get the Outlook.OlItemType.olMailItem constant with Reflection outlookMessage = outlookApplication.GetType().InvokeMember( "CreateItem", ...Show All

  • Visual C# Passing the managed class(with array of stuct as member) to unmanaged function

     I want to pass the managed class to the unmanaged function. The managed class contain the array of struct. Following is the class and struct declaration.   [StructLayout(LayoutKind.Sequential)] public struct first { public int One; public string str; } [StructLayout(LayoutKind.Sequential)] public class MyClass { private int test; private bool Boolean; private int Integer; [MarshalAs(UnmanagedType.ByValArray, SizeConst=2)] private first[] IntOne; public MyClass() { Boolean = true ; Integer = 7; test = 32; IntOne = new first[2]; IntOne[0].One = 64; IntOne[0].str = "Hello" ...Show All

  • .NET Development Passing User Defined Data type/ Oracle & .net

    Hi, Can any one help me with how to pass an user defined type in Oracle, which is used as an input parameter to a stored procedure, using .net. First is it even possible if yes then how if some body has a link to an example that would be best. I have seen example at msdn "http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnadonet/html/advoracledataaccess.asp" where they are passing values to the Oracle database using dynamic query string. how would i pass the Oracle user-defined data type through .net to the stored procedure. Hope to get the answer. Amit If you want to work with an actual type in your .NET co ...Show All

  • SQL Server ROM on SQL 2005 replication

    I needed a ROM on a SQL 2005 replication requirement. Would really appreciate any help on this. We have a SQL 2005 database with about 4 GB data, 46 tables to be replicated. For users to run queries and generate reports, we need a replica of this database. We are thinking of using replication wizard to generate a separate instance of the database on a different box. Also thinking that the replication wizard could be used here. Based on this information would it be possible to get a ROM estimate for the Development tasks involved in setting up the replication We do have some internal performance numbers for snapsh ...Show All

  • SQL Server Unable to connect to Developer Edition

    I am having difficulties connecting to a named-instance of SQL2K5 Developer Edition running along side a default instance of SQL2K, from another machine. - workgroup member, non-domain - running on XP - domain clients trying to connect: Win2003 Server/SQL2005Ent machine, XP with SQL2K and SQK2K5 client utilities I haven't been able to find documentation on limitations of Dev Edition that could cause this problem. Any ideas how about telling us the error you're getting, that would be an excellent start. ...Show All

  • Windows Forms TextboxValidator ond othe validators for Infragistics controls....

    HI! In my last project I use the cool Windows Forms Validator Controls from http://www.dotnetmasters.com/samples.htm ... this controls works fine with standard Microsoft controls… In my new project I use Infragistics controls…and the Windows Forms Validator Controls doesn’t work with infragistics controls…. Do you know any Windows Forms Validator Controls that work also with Infragistics con ...Show All

  • SQL Server Problems with generating PDF reports with TrueType CID fonts

    Hello, I have encountered a problem with SS2005 SSRS's PDF export tool. I'm using a TrueType CID font (MingLIU, to be precise) to display simplified and traditional Chinese character sets for the reports. While the simplified Chinese character set is exported flawlessly, the traditional Chinese character set are replaced with exclamation points ("!"), and apparently the exporter was not able to embed the TrueType CID font within the exported PDF. I'd like to ask for opinions on how to resolve this. Is ther a way to programatically export the report to PDF using a third-party PDF exporting component Or to even change the default PDF exporter ...Show All

  • Visual C# Replace char in c#

    I had a string "2006/01/27 00:00:58.747", and I would like to replace "/", ":" and "." with "_". Can anyone let me know how to do it in C# Thanks Hi, Check out String.Replace method. You may need to call it 3 times: string myString = "2006/01/27 00:00:58.747"; myString = myString.Replace('/', '_').Replace(':', '_').Replace('.', '_'); Hope it helps, Thi ...Show All

  • Visual C# How can I cover the menu item's shortcut?

    Supposed I have a form with KeyPreview=true and a menu item whose shortcut is CTRL+C. Add a Textbox on the form. When I select some text in the Textbox and press CTRL+C, the selected text just can not be copied because system just call the menu item's OnClick event handler. And then how can I copy the selected text via CTRL+C, that is to say, how can I cover the menu item's shortcut Onclick event handler in some particular situations Your idea and suggestion will be highly appreciated. Thanks! Hi,   I know how it feels like. But you could have a work around. In your menuitem_click event check first if the this.Activ ...Show All

  • .NET Development Generate Managed Class

    hi, in .Net i have used 'Generate Managed Class' to generate win32_printer.vb how can i use this class to get all all the printer names on my computer thanks Take a look at the InstalledPrinters collection that is a property of the PrinterSettings class (System.Drawing.Printing). To enumerate through each name you can simply do the following:         Imports System.Drawing.Printing and         For Each printerName As String In PrinterSettings.InstalledPrinters             Con ...Show All

  • Visual Studio List All Available Snapshots of a Report in Report Viewer

    Dear Anyone, Is it possible to list all available snapshots of a particular report using report viewer We're looking for the same feature of report manager when a use clicks on the history tab of a report. Thanks, Joseph The report viewer itself does not expose this information via its API. But you can connect to the report server management endpoint directly to get this information. The method you are looking for is ListReportHistory. ...Show All

  • .NET Development I couldn't find advantage of StringBuilder in .NET 2.0

    I have written a small application to test differet way of appending strings Method 1: Use + operator. Like s = s + " " + str1 + " " + str2 + " " + str3 + " " + str4 + " " + str5 Method 2: Using String.Join. Like s = String.Join(" ", new string [] {s, str1, str2, str3, str4, str5}); Method 3: Using String.Format. Like s = String.Format("{0} {1} {2} {3} {4} {5}", s, str1,str2,str3,str4,str5); Method 4: Using StringBuilder. Here is the tick time I got for 5000 iteration: Method 1: 19438310752 Method 2: 19796152256 Method 3: 48454067568 Method 4: 24874657960 ...Show All

  • SQL Server ReportingService2005.CreateReport() warning...

    I am using Reporting Services 2005 on SQL Express with Advanced Services... I am dipping into the SOAP API and trying to add DataSources and Reports dynamically, as is how I would like to be able to deploy them... My problem is this: I have a shared datasource and a report that were deployed to the server via the 'Deploy' method in VSTS...I can access that report just fine, and it obviously uses the shared datasource... Next, I copy the .rdl file of the report I already deployed and give it another name ("NewReport.rdl"). What I want to do is add this report to the server (it's an exact copy of the functioning report wi ...Show All

  • .NET Development Resource editor suggestion?

    I'm looking for a resource editor (for use with VS2005) that better than what's included in Visual Studio.  Primary will be working strings, and some binary data. Anyone have any suggestions, recommendations TIA, Richard My single biggest gripe is the limited viewable space for entering in text strings.  The longer the string, the more of a pain it is. Also, I just came up with a need to put in some binary data, which offhand I didn't see a way of doing.  I guess could Base64 encode it, but then I'm back to the above paragraph. ...Show All

©2008 Software Development Network