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

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

Tiziano27

Member List

Jason Stangroome
rdasugo
edozio
Matt354245
imnotbillg
Steve Wash
f.ritz
Emy_P
Paula M
HeathM
Tony Klotz
huabing78
Naum
Rups11
LISA86
Latso
Mike Brown
I am me
LKNikko
dsula
Only Title

Tiziano27's Q&A profile

  • Visual C# generic constrains by shape?

    I really want to do this: public static class MathEx { public static T Square<T>(T a) { return a * a; } } because then, at least in C# 3, I can simply say: float x = 5; double y = 5; MathEx.Square(x); MathEx.Square(y); And the compiler will infer the type of the arguments and call the proper templated method (ie I dont have to write a million overloads of Square, but it can be used as if I did) but of course it doesn't work because the compiler doesn't know that T has a operator* method. So ideally I'd constrain T to INumeric...but that doesn't exist. So what am I to do Does C# 3 let me make a constrain based on the shape of T...something like this: public static class MathEx { p ...Show All

  • Visual Studio 2008 (Pre-release) Vista Window Shadows and Transparency

    I made an application with no title bar, and a tranparent background. The problem is that the application now has no shadow and doesn't look right in Windows Vista... I have noticed that 'Yahoo Messenger for Vista' has custom shadows, so they don't change when the Window goes in and out of focus. I can do this too, but I does't look right. I haven't seen a WPF application pull off shadows and transparency at all. Is there a way to make 'proper' Vista shadows on my application without having a title bar or is it really impossible ...Show All

  • Windows Forms How do i do multipage forms

    Hi, i've been using asp.net 2.0 for a few months now and found it pretty easy to pick up coming from a web development background. However i'm developing a code generation script for my multi tier website and i would like to do it as a windows form. I thought this would be a good time for me to fully utilize visual studio 2005. So far i am able to add a new project and have two text boxes and a button which has an onclick event and adds the numbers together and displays it in a label control. The problem i have is that my application needs to be a little more difficult than this :). What i need is a multipage form which i can fill out and then finally click finish and then i handle the data. In asp.net i would simply use the wizard c ...Show All

  • SQL Server Create database permision denied in database ' master' (MS SQL SERVER, ERROR 262

    Cn not do anything with my sql server, everything i trt to do i get this message, user does not have permision, etc, , I am running windows Vista Business, SQL SERVER 2005 so what going on here SQL Server SP1 is not supported on Vista... U must have SQL Server SP2... but sp2 is in CTP version... SP2 is to be released soon...so wait for a while... http://www.microsoft.com/sql/howtobuy/windowsvistasupport.mspx Madhu ...Show All

  • Visual Studio Team System Data compare - CTP7

    Every time I do a data compare in CTP7, write the updates and then press refresh, Visual Studio crashed without a warning, I am just back on the desktop. I know it worked in CTP6. It this a bug or an error of my installation Thanks Hi Edv, Based on the limited information, it is hard to know what exactly is happening. If you may work with us, we may reach to the bottom of it. I would request traces of the run to know more about it. I am giving the steps to collect traces below. Please go to following location in the registry: [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\DBPro\Tracing] and change two setting to the following: TraceSwitch = 4 TraceToLogFile = 1 Please also no ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Minimize/Restore MDI Child with DirectX problem

    I managed to have an MDI child form which uses directX, it's somehow convoluted, but it works, the problem is that when I minimize the form and restore it again, I get an exception in the device.Present() call. What I'm I missing You’ve more than likely lost the device, check the type of exception generated. Maybe you should pause rendering when resizing and then check the device with the TestCooperativeLevel() method. You can also check whether the window is minimised and not just changing size. It could also be a good idea to perform the same validation by overriding OnActivated() and OnDeactivate(). ...Show All

  • Visual Studio Sandcastle - which NDoc tags are scheduled to be supported

    Can someone confirm which NDoc-only tags will be supported by the RTM version of Sandcastle The NDoc Tag Reference at http://ndoc.sourceforge.net/usersguide.html lists a number of NDoc-specific tags. The ones I use most frequently and would like to see supported are: <overloads> <threadsafety> Other ones I use rarely or not at all: <event> <exclude> <preliminary> (I prefer to use the "Preliminary" project option for this purpose) <note> > ... and other tags Any hints about which ones <threadsafety> ...Show All

  • Software Development for Windows Vista Vista IFileDialog & IFileDialogCustomize Questions

    Can anyone answer these questions concerning the new file dialogs in Vista: 1) How to detect (w/o hooking) when the user has clicked the help button on the dialog 2) How to add a drop down using IFileDialogCustomize::EnableOpenDropDown() How do you enter the string list and ultimately determine what was selected 3) Why at times IFileDialog::AddPlace() seems to add the folder to the favorites listing and other times not I thank anyone who knows these answers. ...Show All

  • SQL Server Export image content from database as a file

    Dear friends, I have some images inside my database. How can I export the content of an image field to a file in a Windows Directory Thanks! I have tried this sample script for export into new JPG file and it works. But this new file is bigger then original JPG. I use program XNVIEW.exe for display JPG. Export BMP file does not work. BPC utility export data into TEXT file and can change original binary data from 00 hexadecimal value to 20 hexadecimal. I do not know, why in SQL Server is not simple way to export binary data as windows file. Probably you have to use special C# or Visual Basic program and you will need to create the assembly ( CREATE ASSEBMLY ... and then CREATE PROCEDURE ... ) . Regards Jiri ...Show All

  • .NET Development VB6 Library import / tlbimp problem on x64

    I have a VB6 DLL (with a class called PiWorker) that I need to import into a .NET 2.0 RCW. This works fine on x86, but I need to do this dynamically at runtime across a mix of x86 and x64. It doesn't work on x64. I am able to run VB6 applications fine, so this isn't just a VB6 runtime issue. I use the following code to load the library: Object typeLib; LoadTypeLibEx(typeLibraryFile, NativeMethods . RegKind .None, out typeLib); . . . TypeLibConverter converter = new TypeLibConverter (); ImporterNotifySink notifySink = new ImporterNotifySink (); AssemblyBuilder asm; Version asmVersion = new Version (1, 0); TypeLibImporterFlags flags = TypeLibImporterFlags .PreventClassMembers | TypeL ...Show All

  • Smart Device Development GPRS Configurations not working

    My mobile phone service provider (Celtel Zambia- http://www.zm.celtel.com/en/index.html ) has just started providing MMS, WAP and Internet services. Unfortunately they can't configure my I-mate JAMin to access their GPRS services and the configurations they provided are not working. Does anyone know why i can't access the internet or send/receive MMS with the following configurations or is there someone with the know how of coming up with a cab file Internet Settings: Account Name = Celtel Internet Home page = http://www.google.com IP address = 010.010.010.010 Username = none Password = none Port = 9201 APN = internet WAP Settings: Account name = Celtel WAP Home page = http://portal.zm.celtel.com I ...Show All

  • Visual Studio Express Editions Unload project/Edit project/Reload project

    The Unload project / Edit <projectfilename> / Reload project context menu items seems to be missing from the Express Edition. Are they really missing and I've got to find another way to edit the project file or have I missed some setting somewhere You haven’t missed them... they aren’t included in the Express editions with their scaled back interface. In order to have them you'll need to use one of the higher versions of Visual Studio. ...Show All

  • Visual Studio 2008 (Pre-release) How to force a Binding-bound property to refresh?

    If I have something like : <Setter Property="Source" Value="{Binding SomeSource}"></Setter> where SomeSource is a property that returns different values depending on one or more variables, what I find is that WPF does some sort of caching and it binds the value only once. Now even if SomeSource has changed (as in it returns a different value), WPF won't do a re-binding (to use a non-word). Note that SomeSource is a read-only property. Interestingly there's an UpdateSourceTrigger property. But there's nothing like its opposite (which is what I want). Something like a UpdateBindingOnSourceChange property would have been perfect *sigh* Any help is hugely appreciated. Nish, There are seve ...Show All

  • Commerce Server Getting the Tracking Number From Commerce in the basket

    Hello, Is it possible to get a TrackingNumber from commerce before I create an order I want to avoid to create my own Tracking Number system. The API doesn't seem to expose methods to grab the next Tracking Number and I couldn't find a stored procedure. I traced the calls to the DB and it seems to be calling the IdentityCounter table from internally. Thanks, Patrick Hey Patrick, You can assign the tracking number yourself before saving it as an order. We ended up doing this because CS2007 allocates 5,000 order numbers for each application instance. If the application pool is reset you jump up to the next block of 5,000. We noticed this first when unit testing. Here's the stored procedu ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Exciting News

    The whole xna thing sounds very exciting, giving the hobyist easy to use tools to create games. Im hoping Garage Games can help development with some easy to use tools so its not to hard for complete beginners to get somthing up and running. If the hobyist communiny takes off then this could be huge. It seems like a lot of hobbyists would want exposure, maybe MS could have a competition say every month or every 3 months and the best game decided by them gets to go on marketplace. Would be a good incentive to get people interested. MS has already had some competitions for .NET apps and such so a competition for indie developers to get a game onto Live Arcade or the Marketplace would be cool. I'd be in in ...Show All

©2008 Software Development Network