ledwinka's Q&A profile
Visual C# Show BackGround image in windows form project
How to set BackGround in a form in windows form project when I set BackgroundImage Property it dosn't show it Me .BackgroundImage = New System.Drawing.Bitmap( "c:\image.jpg" ) ...Show All
Software Development for Windows Vista regsvr32 is failing for dll compiled in visual studio 2003 or 2005
I have c++ dll (abc.dll) which is create in Visual Studio 6.0. I can successfully register this dll by using "regsvr32 abc.dll". But when I compiled this dll in Visual Studio 2003 , I can't perform regsvr32 successfully and gives me error "DllRegisterServer in ABC.dll failed. return code was 0xc0000005". here is entrypoint defined in dll STDAPI DllRegisterServer( void ) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); COleObjectFactory::UpdateRegistryAll(); return S_OK; } I don't know what is reason for it in 2003. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Any XNA books on the horizon?
Hi. I was wondering if Microsoft (or any other publishers) are planning on releasing an XNA guide for the final release Such a book will encourage many more XNA coders by making it more accessible. I personally think it's a must. Even an electronic version would be fine. Learning from forums or the odd tutorial you find around the net is great, but it can't replace a good solid well thought out book by your keyboard. Otherwise, XNA could go down the road of Dark Basic. Plenty of keen bedroom coders frustated by the lack of a good comprehensive nuts and bolts guide. If there is one, I hope it doesn't try to cover the fundamentals of C#, there lots of books for that. Here's a ...Show All
Visual Basic The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Hi, a Visual Basic 2005 project was saved on a USB memory. Then it was copied to the hard disk. When trying to open the project from the hard disk, it is not possible to load some forms and this is the message that appears: Errores al cargar el disenador. Los errores se citan a continuacion. Algunos errores se pueden corregir volviendo a generar el proyecto, otros puede que requieran cambios en el codigo. The specified module could not be found. (Excepcion de HRESULT: 0x8007007E) Ocultar en System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid) en System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid) en System.Windows.Forms.AxHost.Create ...Show All
Software Development for Windows Vista UAC Privilege Elevation
I have created a very simple IDispatch COM object that I want to access through a simple Visual Basic Elevation moniker so that I will get the UAC Elevation dialog box. I have added what I believe are the appropriate modifications to the registry for this COM object so that UAC Elevation will be successful i.e. Elevation key and value, LocalizedString, DllSurrogate. In fact, I have been successful at getting the UAC Elevation prompt when I have accessed the COM object from a C++ client, a Jscript client and a VBScript client. However, I am not successful with a VB Application. Following is a snippet of the VB application that I am using to get to the COM object Dim obj As Object Set obj = GetObject("Elevation:Administrator! ...Show All
Windows Forms should i use MDi or controls
hi all. i have to create a simple application with a main form and a grid on it. when the user dbl-click the grid rows a second form will show more detail's on that row. i want to build an mdi applicatin, but i was tald that there are bugs in the MDI property and sometimes the mdi lost it's pointer to the child forms, and this is why i sholud you a main form and controls, insted of forms, that will be docked to the main from. is it true I'll second Cos C's opinion. I've done a decent amount of MDI work and haven't encountered any problems that can't be solved by re-reading the documentation and fixing my own mistakes. ...Show All
Audio and Video Development Application Deactivation : Doubt on iHD Sim Behaviour
I hav a scenario ::::: APP_FOO is active. step1) Script ( through DOMCORE API) changes the BUTTON from "red" to "blue" step2) Script deactivates the current app APP_FOO ( which contains the BUTTON ) step3) Script activates another app . ....later we activate APP_FOO again . Now guess the color of BUTTON Result on ihdSim: BUTTON is red DOUBT : Should not it be blue ..since the script changed the loaded DOM Or does deactivation implies flushing out changes on a) LIVE DOM b) LOADED DOM c) BOTH offcourse if answer is c) then iHDSim behaves nice and correctly. Peter Torr - MSFT wrote: De-activating an appli ...Show All
SQL Server Rotation of Column Headings in a Grid Report
Is there any way to specify that you want a column heading rotated to 45 or 90 degrees I have a grid report with single character values in the grid but the column headings are very lengthy so the resulting report is several pages wide. I'd like to be able to rotate the column headings 90 degrees (this is easily done in Excel) to get the report to fit on a single page. ...Show All
Software Development for Windows Vista XAML Based WF Linked to Assembly
I am trying to set up an XAML based workflow where all of the activities are either common activites or defined in a custom assembly. I am loading the xoml file at runtime using an XMLReader to load the xoml file, then calling CreateWorkflow with the XMLReader. After working with this a bit I was finally able to get the workflow to load correctly. The workflow starts with a While Activity. The While activity calls a member of my custom SequentialWorkflowActivity class named 'ContinueLooping'. 'ContinueLooping' sets args.Result = true; This should result in a continuous loop, however, the workflow always completes right away. If I put a message box in the 'ContinueLooping', I never see the message box. If I change the name of the 'ContinueL ...Show All
Windows Forms I have already painted datagrid cells, but how do I paint them one by one?
How do I set cell color (one by one) in a datagrid. I set the columns (with tablestyles), according to a range of time (dinamically), so, the datagrid is not built by a specific datasource, I mean, I declare a DataTable with 4 defined columns, and the others are made dinamically. Then, I get some records from the database, and I make a "foreach" sentence to loop trough the records, for each record I made a DataRow and I set the values for "myRow[indexColumn]", after that I add that row to the DataTable that I declared before. Well, I've been using Events and custom DataGridTextBox in order to solve my problem...but it doesn't work yet, when I declared my DataGridTextBox to a TableSyle, I set a Handler /*********************************** ...Show All
Silverlight (formerly WPF/E) Lessons to learn or "Something's rotten in the state of Denmark"
Recently I discovered this amazing promising new technology called WPF/E. I am not a tech guru - the lessons yet to learn are teached to me and to all the other people out there working hard on every day webdriven software. As a developer having to deal for a long term with Flash I am quite upset with its shortcomings - it is always basicaly been provided so much functionality, that is enough to build visually appealing apps to serve the current "eye candy" hype at a time, but for some more serious functuanality you would always have to rely on their server software and therefore limiting your userbase to the amount of money you are willing to spent on machines running Flash Media Server. And now there is a new 'David' stepping on the sc ...Show All
SQL Server Why Notification services
Hi folks, I have not worked on Notificatioin services.Currently I am using COM+ to send messages to the customers.Is there any additional advantage by using by Notification services.Help me(Give me atleast related links) Hi - I get this question quite a bit when talking with people about SSNS. I'm sure that there are a lot of very talented people who could develop their own notification application. But before you do, consider: SSNS is built using technologies you already know - SQL Server, T-SQL, XML, and the .NET framework, so you're not having to learn some proprietary protocol. SSNS offers quite a few features out of the box that you'd otherwise have to c ...Show All
.NET Development Client-side redirect problem
If I unplug my primary server from the network, the client side redirect fails to work. I have the connection string “Data Source=primaryserver;Failover Partner=backupserver;….”. If the data source machine is not present on the network I get the error “An error occurred while establishing a connection to the server. When connecting to SQL Server 2005….”. It seems to work fine as long as the machine is connected to the network (e.g. if the SQL Server service is shut down and I have failed over onto the backup server). Any ideas Hi Will, Did you ever have any luck with this I seem to be having a similar problem. I connect to my primary database and then start writing transactions every s ...Show All
Visual C++ Hidden/Missing FindReplace/FindInFiles dialogs in VC++ 2005?
My Find/Replace and FindInFiles dialogs have gone missing when working in VC++ 8 (2005). It looks to me like the dialogs get the focus but that they are offscreen somewhere and I have not been able to locate any registry information on the location of those dialogs so that I could bring them back onto the visible portion of my screen. Does anyone have any advice on how to get my dialogs back so I can see them Do I need to resort to reinstalling VC8 Thanks. ...Show All
SQL Server ADO.NET DataSet relations and Reporting Services
This question is really more oriented to local reports. Anyhow, I have a very basic question. Do .rdlc files recognize data relations that are present in ADO.NET datasets If so, does anyone know of a good reference site that I can go to for this (i.e. - something that shows me how to use such relations in Reporting Services) I need to display something as basic as all orders associated with a given vendor and I'd prefer to use the relations in my dataset rather than relying on a database query. Anyone have any ideas ...Show All
