Software Development Network Logo
  • Visual Studio
  • SharePoint Products
  • Windows Forms
  • Windows Vista
  • IE Development
  • Microsoft ISV
  • Smart Devicet
  • Game Technologies
  • Visual C++
  • Audio and Video
  • Visual C#
  • .NET Development
  • VS Team System
  • SQL Server
  • Visual Basic

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

Alistair4267

Member List

acf
Vijay R
CodemasterMM
DavidADugan
Mark Macumber
Dario Galvani
pblecha
Carpet King
meho
Bala_SSRS
minkee.s
sanjeevm
paraGOD
Rob1234
LLOYDLOYTON
Shrek.NET
Matthijs Koopman
silkkeng
lawlessSaturn
Guy F
Only Title

Alistair4267's Q&A profile

  • .NET Development A Read-only dataset

    I have a singleton class which contain a DataSet. And also provide a property which return the dataset. How can i return a readonly dataset so that the object that is asking for it wont modify the data and the structure of the dataset Thanks, Hi Just seen this as was looking for same answer to do the exact same thing, quick method is to use DataColumn.ReadOnly = True. This will cause exceptions if someone tries to edit your lovely dataset after you've specnt all that time loading it! Obviously this is quite limited as someone could change these properties back again but it may help stop someone doing by accident! ...Show All

  • Smart Device Development CF 2.0 installation on a Mobile 5 device - Persist clean cold boot

    Hi, I was wondering if a Windows Mobile 5.0 device would persist the installation of the Compact Framework version 2.0 after performing a clean cold boot I have read another post on this forum that, by default, version 1.0 of the compact framework is installed on a Windows Mobile 5.0 device, however, if I do perform a clean cold boot, then the installation of the CF 2.0 that I have done is persisted. I might be answering my own question but it would be nice to have some clarification. Thanks for your time. Paul Diston Hi, So if the installation is not persisted then by default the device would have Compact Framework 2.0 installed I have run the cgacutil.exe from the Windows dire ...Show All

  • SQL Server Drill through for visualization control

    Is there a way to get the Drill through to work with model viewer controls Any workaround Also, where would I find more complex data mining models for review SQLServerDataMining site, Microsoft data mining tutorial site, and Data Mining with SQL 2005 book, all checked. Anything else -Young K Support for Drillthrough in the winform viewer controls will be available from Yukon SP2 onwards through a new interface. We'll post a sample on how to use it once SP2 is publicly available. You can build a complex model using the Movies dataset from sqlserverdatamining.com which has nested tables. ...Show All

  • Visual C# How to get a variable from another form?

    I have form 1 that receives 2 strings from the user.  When they hit the accept button this form is destroyed and I need form 2 to have the 2 string variables. As an example on form 1 I have public string FirstName public string LastName on form2 I thought I would make a method something like Form1.GetFirstName.  But this doesnt seem to be working.  Any idea or direction you might be able to point me  Edit+   Ok I think I found out how to do it.  I made the 2 variables on form 1 static and this seemed to work. Im not sure if this is a clean way of doing it though, if anyone could giveme some insight. take a look at this too: http://forums.microsoft.com/ ...Show All

  • Windows Forms is there a limit on Controls contained in VS 2005 .NET Form ? handle creation exception

    I get a Error creating a window handle upon trying to create the 9937'th control. The number of controls when the exception occurs is dependent upon the mixture of controls created, InkEdit controls produce the exception much earlier. I was attempting to reproduce the incosistent behavior of ToolTip in my "real" application which currently has 9,216 controls (previous post that has no solution yet!). This has the feeling of running out of memory OS: Windows XP professional (32bit), patches as of 9/12/2006 CPU: Dual Core Opteron, 2GB Ram Attached is the exception detail and the files that make up the VS 2005 test program. ================================================================== System.ComponentModel ...Show All

  • Visual Studio Express Editions VB Program printed PDF form with data, How???

    I need to print the pdf form with data from access table. What components with need to do that Adobe has a developer/kits or other You'll probably need to a 3rd party component to generate a PDF file Here are some links to places that have PDF components that may be of use - I havent used any personally http://www.devdirect.com/ALL/DCONV_PCAT_1879.aspx http://www.websupergoo.com/abcpdf-1.htm http://www.popularshareware.com/PDF-Maker-Class-.NET-screenshot-29178.html http://www.activepdf.com/products/serverproducts/docconverter/overview.cfm I also think there is a SDK that Adobe provide which may provide you with some functionality. ...Show All

  • Visual C# Applying Property Attributes decorating a class to its member properties

    I am using attributes to supply range values for properties of an object being displayed in a propertyGrid. This works great when I am dealing with primitive types like int and float. However I have more complex data types that I want to decorate with a range attribute and have the attribute applied to member items of the object that was decorated. It should be noted that I have created custom type and property descriptors so that I have control over those description passed to the property grid. This allows me to control how the property grid displays properties dynamically. To apply the range constraints to the property I have overridden the SetValue Method in the property descriptor. The problem is when you are changing the value t ...Show All

  • Audio and Video Development Starting Focus Stuck

    I set my top button to focused()=true on startup - the intention is to have one button start with focus. However in the iHDSim, I cannot nav away from this button. If I do not set focused(), then no buttons have focus, however I can click on one and then get proper navigation. <button id="AUDIO01" style="BTN_AUDIO_01" class="BTN_PLAY BTN_FOCUS" state:focused="true" /> Should be <button id="AUDIO01" style="BTN_AUDIO_01" class="BTN_PLAY BTN_FOCUS" focused="true" /> or <button id="AUDIO01" style="BTN_AUDIO_01" class="BTN_PLAY BTN_FOCUS" focus="true" /> Try both... I will loo ...Show All

  • Visual C++ How to use NetValidatePasswordPolicy API?

    Hello, Thank you in advance. I have a question on using NetValidatePasswordPolicy API. /// <summary> /// NET_API_STATUS NetValidatePasswordPolicy( /// LPCWSTR ServerName, /// LPVOID Qualifier, /// NET_VALIDATE_PASSWORD_TYPE ValidationType, /// LPVOID InputArg, /// LPVOID OutputArg /// ); /// </summary> [ DllImport ( "netapi32.dll" , EntryPoint = "NetValidatePasswordPolicy" , SetLastError = true )] public static extern PolicyValidationDataTypes . NET_API_STATUS NetValidatePasswordPolicy( string ServerName , IntPtr Qualifier , PolicyValidationDataTypes . NET_VALIDATE_PASSWORD_TYPE validationType , IntPtr Inpu ...Show All

  • SQL Server Permission issues

    Dear all, I have 500 tables in a database. How can i grant select ,update and insert permission to a user on all 500 tables of the database at once. Thanks Mohd Sufian If this is SQL SERVER 2005, you can grant all these permissions at the database level itself. So, GRANT INSERT ON DATABASE::Database_Name to User_Name GRANT UPDATE ON DATABASE::Database_Name to User_Name GRANT SELECT ON DATABASE::Database_Name to User_Name You must be connected to the database on which you are granting the permissions ...Show All

  • Visual C++ bug in wingdi.h ?

    Hello, could someone verify this is bug : #define GetGValue(rgb) (LOBYTE(((WORD)(rgb)) >> 8)) Atleast for me it throws runtime-check-error when used. """ Run-Time Check Failure #1 - A cast to a smaller data type has caused a loss of data. If this was intentional, you should mask the source of the cast with the appropriate bitmask. For example: char c = (i & 0xFF); Changing the code in this way will not affect the quality of the resulting optimized code. """ Change to #define C_GetGValue(rgb) (LOBYTE(((WORD)(rgb&0xFFFF)) >> 8)) helps, so it seems like a small bug in headers to me. I wouldn't like to spam the Microsoft Connect with this th ough... Regards, Mar ...Show All

  • Windows Forms Resizable Custom Control

    Hi, I have created a custom textbox, that is drag enabled. I am looking to allow the textbox to resize using grab handles, and resize the text automatically as well. Is there any existing classes that allow me to implement this simply Thanks Well setting the resizable text aside as it is easy enough to implement, is there any easy way of making a textbox resizeable by the user during runtime Thanks ...Show All

  • Visual Studio Express Editions String in VS C++ Express

    Hi guyz.... i have a problem with C++. I was trying to pass the values of type 'string' into the constructor the following way: static __declspec ( dllexport ) void MyAttributeDll(string ProcessName,string Command,string RawData,string Instance,string Instance_Key,string ErrorMessage, int iOccurrence); the compiler gives me a following error on that line: error C2061: syntax error : identifier 'string' if anyone can give a hand with it ...it would be greatly appreciated. Thanks in advance Dimmi Pass neutral parameters like string pointer to buffers. If you use string classes that are based on templates you force each caller to be 100% code compatoble. If you use simp ...Show All

  • .NET Development Can Interop Assembly built by VS2005 be used by VS2003 in some way?

    If the Interop Assembly was built by VS2005, can it be used by VS2003 I have read some articles about the impossibility of forward compatibility between .NET framework 2.0 and 1.1. Just wonder if there is a walk-around I tried to install both Framework 1.1 and 2.0 on the VS2003 machine, but I still got the error, "A reference to XXX could not be added. This is not a valid assembly or COM component. Only assemblies with …", when I was referencing the interop assembly in VS2003. Any other ideas Thanks a lot! Sean Thanks a lot, nobugz and Stan. Now it seems that I have to generate interop assemblies in VS2003 to make them useable in both VS2003 and 2005. But I still have one mo ...Show All

  • Visual Studio Express Editions How can I set aplication to exit when System Indle Process using CPU in 88% or above?

    How can I set aplication to exit when System Indle Process using CPU in 88% or above Language: C# System: Windows XP Hi I recently needed something similar for an application of my own. I found this link quite useful http://www.codeproject.com/csharp/processescpuusage.asp Hope it helps Kev ...Show All

©2008 Software Development Network