wls1973's Q&A profile
Visual C# ExtractAssociatedIcon not working well for some extensions (ex: .XML)
Hi, I am using the Icon.ExtractAssociatedIcon to retreive the icon associated with some file extensions. While the code works generally fine, it does not return the expected Icon for some extensions, say .XML for example. I have also tried the Interop route (using the WIN32 API SHGetFileInfo, etc...), and it does the same thing, which I find quite logical. I suppose this is an issue with Windows more than .NET. Has any one fixed this Thanks Do you have a specific case that is causing you problems I am having no problem. Any icon displayed by Windows Explorer is working using Icon.ExtractIconAssociation . Here is the code I'm using for a simple WinForms app containing a text box, button to browse and a picture box. ...Show All
Windows Forms webbrowser remove frame
is it posible to remove the 3d borde of the webbrowser i understand that that can be done with an active x or soemthing like thta.. and there is an article about this on codeproject.. but right now their site doesnt work for me.. any help I will recomment another demo for you. In this download there are 101 examples which are provided by microsoft,you can find the webbrowser example easily. I hope this will help you. ...Show All
Visual Studio Team System Moving the Data Tier
Okay, I have an issue that I am having trouble find good information on. When TFS was installed on our production server (One-server install) everything was installed on the 40 gig C drive and the 900 gig E drive was left untouched. Now the server guys want to move the backend SQL databases to the E drive. Can we just move the SQL DB via SQL 2005 w/o effecting th cube Which by the way would remain on the C drive. Moreover, I think this means the data-teir would also still be on the C drive just the back end DB would move to the E drive. My SQL guys say there is nothing to worry about but I still have my concerns. Any advice on how best to resolve this situation would begreatly appreciated. Thanks BJHop Yes I ...Show All
.NET Development How to create a web services for retrieving Microsoft Access Database from the internet server using vb.net application
i am new comer in the vb.net , i don't know how to create web services for retrieving the Microsoft Access database from the internet services if any one possible to send me a sample code vb.net application for that plz. my e-mail id is irshad@akt.co.in , irshad8_8@rediffmail.com See some of the following examples: http://www.google.com/search sourceid=navclient&ie=UTF-8&rls=GGLG,GGLG:2006-05,GGLG:en&q=web+service+return+dataset ...Show All
SQL Server visual basic 2005 problem
Hi i am trying to trying to delete a reocrd from a Microsoft Access Database in Visual Basic 2005 Express Edition, but come up with this error with the following code. I'm new to vb 2005 and I'm no expert. Appreciate any help given. ----------------- InvalidCastException was unhandled Unable to cast COM object of type 'System.__ComObject' to class type 'System.Windows.Forms.TextBox'. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface Dim db1 As Connection Dim rs As Recordset db1 = New ADODB.Connection db1.Provider = "Mircosof ...Show All
Visual Studio Express Editions Running programs that are outside my own
the objective is to make a menu for a autorun CD that once clicked on an item runs a particular .exe file separate from my own. the file is very old dos file made from .bas with QB7.1 but i got it to work with the command "System.Diagnostics.Process.Start()" though it doesn't show the PRINT as this: prog inputs: dia#: Mes#: ano# But does't show nor this print for input nor the result print: the screen is black but if you press the keys it goes to next line as if it was working but not showing. Any sugestions Thank you, JDuarte. See my post at this link: (2nd page) http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=185278&SiteID=1&PageID=1 and see if it ...Show All
Visual Studio 2008 (Pre-release) Event Trigger RoutedEvent Problem
I have written the following code which grows and shrinks a button when a mouse moves over them. However, both buttons seem to grow when the Mouse is over one of them. I ideally want only one button to expand at a time. Can someone shed some light on what needs to be changed. Thanks <EventTrigger RoutedEvent="Mouse.MouseEnter"> <BeginStoryboard> <Storyboard Storyboard.TargetName="btnNew" Storyboard.TargetProperty="Width"> <DoubleAnimation Duration="00:00:01" From="100" To="120" /> </Storyboard> </BeginStoryboard> </EventTrigger> <EventTrigger RoutedEvent="Mouse.MouseEnter"> <BeginStoryboard> <Stor ...Show All
SQL Server Bar chart report
hello, I am creating a bar chart report which contains a datetime information on the x -axis. The unit of the x-axis value depends on the parameters value(StartDate and EndDate). For example, if the difference between StartDate and EndDate is > 2 years, say 4 years for instance, then the value of the x-axis should be presented on a yearly basis, like this: Hi Joel, That was not my question. As I mentioned earlier, I want to change the x-axis value based on the parameters value. The main thing is grouping the datetime info based on the parameter condition(yearly, monthly, etc.) as I mentioned earlier. Please refer the highlighted values in the previous post. On the top of that, the two examples that I mentioned earlier ...Show All
Smart Device Development Can't find pinvoke dll PLEASE HELP
I have a compact pc application written in C# running on window mobile 5.0 witch compact framework 2.0. It works ok but sometimes , Depends on the order that i call to the unmanageg function it crashes with the error "Can't find pinvoke dll ..." I found a work arround by changing the order of calls to the functions. But when I try to debug the application it always crash with the error above. Can any one help me with this. This is critically important for me because changing the order of calling to the ubmangaed functiond helped me but when I sent the installation of my software to a customert with newer version of the window mobile 5.0 ( ver 5.1.1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Complete N00b
okay, im a complete and uder n00b, i know absoulutly nothing and would like to know how you guys started off to point me in the right direction. Thx in advanced! I have put together a small post for Beginners starting off in the world of XNA, here is the link . ...Show All
Visual Studio Team System Work item Action list
Hi, There is more work item actions beside - Microsoft.VSTS.Actions.Checkin If there is, where can I find them Thanks in advance, shmulik. I read the documentation link and don't see how this answer the question. Lets say I take microsoft.VSTS.actions.checkin and copy it to mycompany.tfs.actions.mymethod and want to call it from within TFS as an action. Where do I store mycompany.tfs.actions.mymethod What do I compile it as a DLL How do I register it with TFS Server so that when I call it in a transition as an action it performs the action I have read the MSDN documentation and read lots of stuff on add-ins and all I want to be able to do is kick off a s ...Show All
.NET Development Error using money datatype parameter and DBNull.
Hi, I am getting an error executing a SQL Server stored procedure with parameters of type money. The following code fails: With cmd ... If mActualCost = Decimal .MinValue Then .Parameters.AddWithValue(PRM_ActualCost, System.DBNull.Value) Else .Parameters.AddWithValue(PRM_ActualCost, mActualCost) End If ... .ExecuteNonQuery End With mActualcost is defined as type decimal. PRM_ActualCost is a string constant defining the parameter name. By convention I define a decimal value type member variable to have the value decimal.MinValue when it's value is unknown and therefore to be stored as null in the database table being updated. The stored procedure being executed is doing ...Show All
Windows Forms DataGridView ComboBox
Hi all, I'm facing a big problem in my development in C#. I'm a newbie I would be needing all the help you can give me. I would like to add a combobox column in my DataGridView control. How can I do it Assuming I have this table detail... MyDatabase MyTable, with fields myID, myItemDescription I would like the field myItemDescription be in a combo box in my DataGridView. How can I do that Please help. Much as possible please start with the database connection .... Thanks, Beast Hi all, If we can not fix this problem, can somone help me with a very simple sample that has one table only. Let say, productTable productID, productDescription, productUnit, product ...Show All
Visual Studio 2008 (Pre-release) ToArray() / sub query / DLINQ possible bug.
Hi Guys, I'm using DLINQ to access my test Database. I get this error when evaluating the following query; Cannot assign sequence of LINQTest.MarineLocationKills to type LINQTest.MarineLocationKills[] var query = from m in marines select new { m.ID, m.Name, m.Age, m.Sex, Kills = ( from k in marineLocationKills where k.MarineID == m.ID select k). ToArray() }; var temp = query.ToList(); If I change .ToArray() ...Show All
SharePoint Products and Technologies SharePoint with LDAP ?
I saw a SharePoint demo in Quebec city yesturday.... It is a great product, I need to get this....! But... We don't use Active directory because we are in a Novell Environement... There is no way we'll change it for now ! Could SharePoint adapted to work on a LDAP Network... LDAP and AD are a bit similar.... Hello, I also tried to use a LDAP identification, but I don't get something : To consult the content of LDAP annuary, you must have some credentials in order to log in it. But I don't find WHERE I must put the authentification informations... The content of the URL from technet doesn't specify a login/password for the LDAP annuary but I need one, because my LDAP is not Microso ...Show All
