Radamante's Q&A profile
Microsoft ISV Community Center Forums How to use ADO retrieve MSAccess attribute ?
i want to know the table is hidden. Hi, There is no direct method of ADO to list table property. If you want to stick with ADO, then you have to include the ADOX library (ADO extension), from there you can have access to the database schema. Alternatively, you can use DAO to list the object in the database, in DAO there is a property named TableProperties. Hope this can help. ...Show All
SharePoint Products and Technologies MOSS 2007 RSS Viewer's XSL Link not working
Has anybody been able to get the MOSS 2007 RSS Viewer Web Part to work with the XSL Link I have an RSS feed file and a style sheet in the same anonymously accessible location. It works fine if I just point the web part at the RSS feed. If I try to use the XSL link, it fails every time with this error in the logs: RssWebPart: Exception handed to HandleXslException.HandleException System.ArgumentNullException: Value cannot be null. Parameter name: s at System.IO.StringReader..ctor(String s) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform() at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform() I started by using the default XSL copied from "XSL Editor..." in the web part. ...Show All
.NET Development System.IO.FileLoadException: Could not load file or assembly 'OleDb (0x800736B1)
Hello, i work on a VS 2005 Solutions with 10 projects. One of this profects is a C++ project (OleDb.dll). This C++ project use many external .dll. On my PC a can start the \bin\Debug\project.exe without any problem. But when a copied the \bin\Debug directory in to another PC without VS 2005 it can't start all .dll. I become the following exception (traduction from german): System.IO.FileLoadException: Could not load file or assembly 'OleDb, Version=5.2.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This application can not started because the applicatiion configuration ist not correct. To solve the problem you have to re-installed the application again. (Exception from HRESULT: 0x800736B1) File name: 'OleDb, V ...Show All
Visual Studio Replace All Text
If I have a reference to a ProjectItem (say a C# code file), what is the easiest way to replace all of the current text with new text without deleting and re-creating the file Thanks, Scott. If the ProjectItem is open, you can get its objProjectItem.Document property, cast it to EnvDTE.TextDocument and then use the objTextDocument.ReplacePattern method. If it is not open (objProjectItem.IsOpen(...) returns false) then you can open it calling objWindow = objProjectItem.Open(...), which returns a window that will be invisible unless you call objWindow.Visible=true. ...Show All
SQL Server Project 2003 and SQL 2005
Is SQL 2005 compatable with Project Server 2003 Are there any issues that I can expect when using SQL 2005 for a Project 2003 server Thanks ...Show All
Visual Studio 2008 (Pre-release) Convert VS.Net 2.0 Project to C# 3.0
I've got a lot of VS 2005 code that I'd like to start using LINQ/C# 3.0 features in. I've got the same references as a LINQ project and I've got the same "using" clauses. However, I am still getting a compilation error that System.Array does not contain a definition for "Where" Anyone have an idea on how to accomplish this I think what is missing is the call to the C# 3.0 compiler. If you didn't update your csproj files, the C# 2.0 compiler is still used. To use the new compiler, you need to replace <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> at the bottom of the csproj files by <Import Project="$(ProgramFiles)\LINQ Preview\Misc\Li ...Show All
Smart Device Development InternetReadFile errors
Hi, I've got my internet connection working, and everything sends fine. No I wanted to read back the data from the site I connect to, but I keep getting an ERROR_INVALID_PARAMETER . I've tried some different combinations of parameters for the InternetReadFile function, but to no avail. Maybe it is something else I am doing wrong My code so far is: DWORD dwContext = 1; char errorMsg[100]; hWaitForHandleCreation = CreateEvent(NULL, TRUE, TRUE, NULL); hWaitForCompletedRequest = CreateEvent(NULL, TRUE, TRUE, NULL); ResetEvent(hWaitForHandleCreation); ResetEvent(hWaitForCompletedRequest); // Open the internet connection and send the URL http = InternetOpen(L "CeHttp" , INTERNET_OPEN_TYPE_DIRE ...Show All
Windows Forms "A generic error occurred in GDI+." Exception occured when drawing custom items in ListBox
I wrote a simple example just for purpose of some customized drawing on items. Here is the whole class definition, class MyListBox : ListBox { public void DrawCustomItems() { for ( int idx = 0; idx < this .Items.Count; idx++) { //Graphics graphic = Graphics.FromHwnd(this.Handle); Graphics graphic = this .CreateGraphics(); DrawItemState state = DrawItemState .Default; if ( this .SelectedIndices.Contains(idx)) state = DrawItemState .Selected; if (! this .Enabled) state |= DrawItemState .Disabled; Rectangle bound = this .GetItemRectangle(idx); DrawItemEventArgs e = new DrawItemEventArgs (graphic, this .Font, bound, idx, state, Color .Red, Color .Yellow); ...Show All
Windows Forms errorProvider not clearing icon
I have a requied textbox. The problem is when I tab out of the textbox after entering data, the validation fires, but doesn't clear the error icon on the textbox. It still displays until I tab back into the textbox and tab out again. private void sUBJECTTextBox_Validated( object sender, EventArgs e) { HDDataSet . HELPDESKRow ticket = ( HDDataSet . HELPDESKRow )(( DataRowView )hELPDESKBindingSource.Current).Row; if (sUBJECTTextBox.Text.Length > 0) { ticket.SetColumnError(hDDataSet.HELPDESK.SUBJECTColumn, "" ); } else { ticket.RowError = "Error on ticket" ; ticket.SetColumnError(hDDataSet.HELPDESK.SUBJECTColumn, "Subject is required." ); } } ...Show All
Visual Studio Express Editions How can a class run a function within the class it was initiated from?
I am reasonably new to C#, but have a reasonable understanding of programming in general though I only began to understand the use of OOP a few months back. Basically I have two classed, Schedule and TrayIcon; the TrayIcon class is initiated from within the Schedule class. Obviously it is easy to set the properties and run the methods of TrayIcon from within Schedule. However I need to run a method defined in Schedule from within Tray Icon. At the moment, when I initialize TrayIcon I write "trayIcon TrayIcon = new TrayIcon(this);" and in the TrayIcon constructor I grab the Schedule object. This allows me to run all public methods of Schedule. Although this method works, I feel there must be a better way of doing it; is there ...Show All
Visual Studio Tools for Office Call macro from C#
Hello: I have an Excel Workbook Project withs VSTO and what i need is to run an existing vb macro. I create the macro with Visual Studio Macros (Alt-F11) inside VS 2005 and the look like this: Imports System Imports EnvDTE Imports EnvDTE80 Imports System.Diagnostics Public Module Module1 Public Sub Test() MsgBox( "Hola amigos" ) End Sub End Module Then i want to excute this macro from a sheet of my project, the look look like this: using System; using System.Data; using System.Drawing; using System.Windows.Forms; using Microsoft.VisualStudio.Tools.Applications.Runtime; using Excel = Microsoft.Office.Interop.Excel; using Office = Microsof ...Show All
.NET Development How to send a SMS message programatically from a desktop app using C#?
Thanks. Best regards, chance. You can purchase a GSM Modem for a few hundred dollars, Insert sim card in it, Attach to USB Port and use Serial Port component to send SMS from it. There are AT commands for GSM modem and SMS, MMS, EMS have their own formats. If you are interetsed in creating your own solution then I would recommend doing som study abou it. http://www.developershome.com/sms/GSMModemIntro.asp May be this is your starting point. Best Regards, Rizwan aka RizwanSharp ...Show All
Software Development for Windows Vista Increasingly unable to install apps on Vista
I'm running Vista RTM x64 Ultimate with UAC. I right click on the install programs and do run as admin. The domain account i'm using is in the local admin group. This happens under the re-enabled disabled default admin account too. I'm getting these corruption errors on multiple computers allrunning Vista RTM (one is x64 and another is x86) These are two samples from Event Log. Help! Level Date and Time Source Event ID Task Category Error 11/30/2006 8:11 MsiInstaller 11335 None Product: J2SE Runtime Environment 5.0 Update 9 -- Error 1335.The cabinet file 'Data1.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an ...Show All
.NET Development call stored procedure in C#
This is as far as i could get but i am trying to call a stored procedure from my C# application and use a textbox to pass the parameter to then i want to click the button and it uses whats in the textbox as the @OrderID which is the parameter i need to pass it then i want to add the items it returns based on what i enter in the textbox to my listBox1.Items.Add("data".ToString());....any help where i should go string connect = System.Configuration. ConfigurationManager .AppSettings[ "conn" ]; SqlConnection scn = new SqlConnection (connect); SqlCommand spcmd = new SqlCommand ( "CustOrdersDetail" , scn); spcmd.CommandType = System.Data. CommandType .StoredProcedure; spcmd.CommandText = "Cu ...Show All
Visual Studio Express Editions get and set image button..
Hi all.. i'm trying to get an image button.. and set the same button with a different image when click on it.. any idea how Also,...i would like to incoporate these images to the programe...without pointing to a directory.. See Properties of Button, There is a property Image, Browse an image and select it! It'll be shown on the button. Next you need 2-3 other images to show wheter button is Pressed, or Highlighted. Add 2 images to Project Resource Files and then Add 3 event HAndlers for that button: MouseDown, MouseMove etc: Change the images in these events accordingly using somthing like this: button.Image = projectnamespace.Properti ...Show All
