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

Software Development Network >> Michael Oberhardt's Q&A profile

Michael Oberhardt

Member List

steve13
Sewoodford
Crystal1
Tico
Serge A. G.
jimsch
P_a_u_l
NHK
jaspax
rev3nant
Chandra Murali
Jonas Hälldal
lachlanj
Subhankar
PLion
Claude Turner
Eric Morceau
EricVanRoy
Sorex
Aun
Only Title

Michael Oberhardt's Q&A profile

  • Visual Studio 2008 (Pre-release) Error while trying to serialize Cyclic Dependencies

    I have a following cyclic dependencies between two classes in my object graph: [DataContract] [KnownType(typeof(Person))] public class Company {     [DataMember]     private IList employeesList;     private IList EmployeesList     {         get         {             if (employeesList == null)             {                 empl ...Show All

  • Windows Forms Programmatically Databinding a Combobox

    Ok, in ASP.Net I could programatically bind a combobox to a dataset  and have full functionality. It would be something like:      Dim ds as new dataset      ds = GetMyData()      combobox1.datasource=ds      combobox1.datatextfield = "displayfield"      combobox1.datavaluefield = "datafield"      combobox1.databind  It se ...Show All

  • Visual Studio 2008 (Pre-release) BitmapEffect and MediaElement

    It seems applying any BitmapEffect to a MediaElement will cause it to render only a black box (audio still plays). Is this expected behavior Must I do something with BitmapEffectInput Unfortunately applying a BitmapEffect to a MediaElement is unsupported in current builds of WinFx. We’re investigating a fix for this, but make no guarantees that it will be fixed for the final bits. If you’d like to get it to work, there is a simple (but kind of expensive) work around. With the BitmapEffect applied to the MediaElement, try animating the width of the MediaElement very slightly. This will force an update and h ...Show All

  • Windows Forms Getting Reference to an existing Control's object @ runtime ?

    hi all In particular I want to get the reference of a control dynamically based on the Control’s Name, I’ve control name and I want to get the reference of it so that I can disable or do any operation on that control at runtime. UserControl has one method GetContainerControl() it is returning IContainerControl But how do I get my desired control from this list. Or do we have any other method Thanks! Regards Karthikeyan I'm getting all the Control's name and its reference by calling GetContainerControl() of a UserControl's object, but how do I get a particular control's reference from this list Note : ...Show All

  • Visual Studio Team System How to hide code coverage coloring?

    OK, coloring the code after code coverage is great.  Now how do I turn it off I'm not talking about no longer doing code coverage - I just want all the coloring to go away so I can work on the code without all that visual noise. Yes, I was referring to the context menu in the text editor, but  I don't see a compelling need to have the control on a file by file basis - it's just one of the places I'd looked for it.  I agree that the View menu is the most sensible place - analogous to Tab Order when the forms designer is open. ...Show All

  • Windows Forms Embedded Resource rather than a project reference

    I have two projects in my solution. One builds a custom control(.dll) and the other is a Windows Forms Application (exe). The Windows app uses the control on several forms, and I have a reference to the dll in the Windows App. project. My question is when I deploy my application I have to deploy both the exe and the dll. Is it possible&n ...Show All

  • Microsoft ISV Community Center Forums VBA excel - problem with having clause in sql with adodb.connection/recordset

    Hi i am getting error in VBA excel when i am using having clause in the sql. i used adodb.connection and adodb.recordset. my problem is, i need to check duplicates in the oracle table. so i used the sql statement as follows select count(*) from table-1 having count(*) > 1 group by field-1,field-2,field-3. and string the count in a variable. var-1 = rs.fields(0). when i execute that i am getting error as runtime error : 3021 and here is the description " Either BOF or EOF is True, or the current record has been deleted. Requested operation requires current record" here is my code strsql = "select name,product,product_numbe ...Show All

  • SQL Server SQL 2005 Express Edition setup from Installshield

    I tried to execute SQL Server Express Setup through InstallShield Script and it says that i required Admin Privilege. I checked and i have an Adnming privilegers. Here is the Script. And the check says that i am an admin. if ( Is(USER_ADMINISTRATOR, "") = TRUE) then MessageBoxEx("Admin...","Install",SEVERE); else MessageBoxEx("Non Admin...","Install",SEVERE); endif; setuppath = "C:\\Program Files\\dir\\Setup.exe"; sqlcmd = "ADDLOCAL=ALL"; LaunchAppAndWait(setuppath,sqlcmd,LAAW_OPTION_WAIT); if(LAAW_PARAMETERS.nLaunchResult != 0) then MessageBoxEx( ...Show All

  • Visual C++ Tracking Reference (%), value, ref??

    For a while now I have been reading the documentation, for Visual C++ 2005, in an attempt to migrate from native code to managed. I find it hard to understand how to use the different types, and what the equvivalent in native code is. Look at this code: ref class rc{}; value class vc{}; f1(rc^ c1){} f2(rc^% c1){} is rc^ myrc = gcnew rc; equvivalent to rc * myrcN = new rc; in native code And is " Handle to Object on Managed Heap " the same as " Pointer to Object " What is the difference of ref and value If i want a object on managed heap do I use the "ref" keyword, and value keyword if I want it on ...Show All

  • Visual Studio Debugging Problems in VSNet 2005

    When I start a web project using Debug-->Start Debugging, I get the error: Microsoft Visual C++ Runtime Libary - Runtime Error! Program: C:\Program Files\Internet Explorer\iexplore.exe The application has requested the Runtime to terminate it in an unusual way. Please contact... Then when I click "OK" I get: iexplore.exe - Application Error. The exception unknown software exception (0x40000015) occurred in the application at location 0x7813461a. Click on OK to terminate, CANCEL to debug. Whichever one I choose, it doesn't matter, because I get: Microsoft Visual Studio - Attaching the Script debugger to process '[14052]IE ...Show All

  • Visual C# Unknown Object

    Ok. I kind of need everyone to use their imaginations on this one and kind of help me out and investigate for me. It will be greatly appreciated. Ok, I think mostly everyone here has Visual C# 2005 right Ok, so I will use that as the example. Ok, now you know when you get an error and the "Error List" comes up. I need to know what the object is. Ya know, how it says: _____________________________________________________________________ |   | Description             | File             | Line      | ...Show All

  • SQL Server Scripting in C#?

    Is it possible to script a script component in a dataflow task using C# or is only VB.NET supported If so, will support for C# be added in the future Regards, Henk Allow me to clarify. Scripting in C# will not be available in the SQL Server 2005 timeframe. We hope that new developments will make this possible in the next version of SQL Server. -Doug ...Show All

  • Visual Studio Express Editions Bindingsource.find

    I’m sorry to ask something so basic but how do I get bindingsource.find to work Below is the dreadful code I have in place and it always complains that the column name CarMake does not exist when it happily displays it as the column heading suggesting it does exist. The actual error text is DataMember property 'CarMake' cannot be found on the DataSource. If you can help me gain momentum I’ll be very grateful. It's obvious I don't understand something but I'm not sure what. Mike Public Sub FillGrid() 'set up the dataset Dim SQLTxt As String Dim ConnStr As String Di ...Show All

  • Windows Forms Copying 1 APP to Another

    Good Afternoon, I have an data entry form that is bound to a db. I have the 4 requisite controls on the form - dataset, bindingsource, tableadapter and bindingnavigator. I want to create the same application but I want to change the db that the form is bound to. The form has many fields (displayed thru textboxes) that are bound to the db. I want to copy app 1 db1 to app2 db2 , db1 & db2 are different. Remaining functionality is the same. Would I just create another table adapter, dataset and then drop this on my form I want to keep my original dataentry form and just change the databinding properties of the textboxes. Has anyone e ...Show All

  • Visual C++ Compiling code written in C in .NET2005

    Hi, I am using .NET 2005 and I created an empty project, Win32 Console Application,and the code I wrote is simple C, not C++. When I try to compile it it gives me this warning : C4996: ' scanf' was declared deprecated. When I run my application it stopes after the first scanf function. I read in MSDN that they changed something about this functions, but what #include <stdio.h> #include <conio.h> #include <stdlib.h> struct nod { char inf; struct nod *left,*right; }; struct nod *creation() { struct nod *p; p=( struct nod*)malloc( sizeof ( struct nod)); printf( &q ...Show All

©2008 Software Development Network