ckoppang's Q&A profile
Gadgets Rendering problems of the gadgets (mainly the height)
About the ccs problems, the problems rendering the height of the gadgets in Live Spaces. Maybe is not just that the problem... I have noticed that if I right click the gadget and I refresh the start.com service which starts the gadget, the gadget is rendered always in the right way. This happens with any gadget... So probably it is a problem of the page loading event or of the start.com service processing all the requests. ciao Looking to http://2gadgets.spaces.live.com all the gadgets are redered well now, the problem seems solved. --- ...Show All
Visual Studio Express Editions Cascading Comboboxes
I'd like to be able to mimic Access cascading comboboxes where Based on selected value in databound cbo1, cbo2 is filled Based on selected value in cbo2, cbo3 is filled An example of this is found here: http://www.fontstuff.com/access/acctut10.htm http://www.utterangel.com/pages/access_downloads.aspx Please can someone point me to similar code in VS2005e or tell me how it can be achieved Thanks ! Hi Ultrawhack, What I would do is use SQL Express (which comes free with C# Express) to creat a table that lists one type of item (the countries) have two fields (ID and country), then create another table that has the cities in with three fields (ID, city and countryID). I would then populate the da ...Show All
Visual Studio Team System Add ChangeSet to Work Item
how programmatically add ChangeSet to Work Item Add existing ChangeSet Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem wi = store.GetWorkItem( WrkItemId ); RegisteredLinkType type = store.RegisteredLinkTypes[ "Fixed in Changeset" ]; Changeset ch = vcs.GetChangeset( ChangeSetId ); wi.Links.Add( new ExternalLink( type, ch.ArtifactUri.AbsoluteUri ) ); wi.Save(); ...Show All
SQL Server Difference between SSIS and Biztalk
Hi Can anybody please tell me the basic differences between Biztalk and SSIS and when to choose which technology over other Regards, Sandeep Saran Sandeep Saran wrote: Hi Can anybody please tell me the basic differences between Biztalk and SSIS and when to choose which technology over other Start with this whitepaper describing possible approaches: http://www.microsoft.com/technet/prodtechnol/biztalk/2004/whitepapers/integration.mspx ...Show All
Visual Basic Extended Euclidean Algorithm
Read from message 4.. Here's the code that will accomplish what you are looking for: Function ModularArithmetic( ByVal Base As Long , ByVal Power As Long , ByVal Modulo As Long ) As Long Dim Result As Long = 1 Dim ExpCount As Integer = 0 Do While (Power > 0) If (Power And 1) Then Base = Pow(Base, 1 << ExpCount) Mod Modulo Result = (Result * Base) Mod Modulo ExpCount = 0 End If ExpCount += 1 Power >>= 1 Loop Return Result End Function Function Pow( ByVal base As Long , ByVal power As Long ) As Long Return CLng(System.Math.Pow(base, power)) End Function Do note that ...Show All
Windows Forms UserControl resizing in a container
Hello, I have a user control in a tab page, which is in a tab control section. Whenever the main form window resizes itself, I can't get the user control to redraw in the newly available width. I set the SetStyle() method with a flag of ResizeRedraw, but no avail. How do I resize Do I have to do it programmatically Or tap into a resize event Hello All. bmains: When your form resizes, does the tab control resize as well I'm assuming it does, since you say that on resize there is newly available width for the user control. Check the anchor settings for the user control, and anchor it Top, Bottom, Left, and Right. That's if you don't want it to fill the tab control page. If you do want it t ...Show All
Visual Basic Multiple windows in TaskBar
I have a VB.Net app that can open multiple windows. When a few windows get open, they collapse on the task bar with my application Icon, the number of open forms, and the title (WindowsApplication1). Is there a way I can change the title to be my application title Thanks Hank Thanks for the tip, but it only shows 'WindowsApplication1' when I have many forms open from my application and then Windows compresses the windows into 1 taskbar entry. That is the entry that says windows application 1. I have changed the application name and namespace and it has not changed this behaviour. -Hank ...Show All
Software Development for Windows Vista WorkflowSubscriptionService
Dear sir please give ideas about WorkflowSubscriptionService. I am excepting some examples also. Advance thanks to all Regards vijil Bangalore Hallo Vijil, I have found a source code example that illustrates the use of the WorkflowSubscriptionService in the appendix to the following article: Author: Chris Auld Title: Simple Human Workflow This article is located at the home page of http://msdn.microsoft.com/winfx/technologies/workflow Hope that will help you, Iris ...Show All
Visual Studio Express Editions Creat Thumbnail, and View Image on Click
I would like to create a button or other object that would create a thumbnail of the image it represents. When someone clicks on it, I would like the larger image to display in a PictureBox on my form. I would appreciate any help anyone can give me, as I have not been able to get any of this to work... Thanks, i believe picturebox4_Click signature should be.... instead of PaintEventArgs, try EventArgs in regards for placing the other line of code I posted earlier, place that when the user clicks on the control when you wish to enlarge that picture and show it into the picturebox control :-) Either on a button click such as "enlarge image" or some other picturebox control where you are display ...Show All
.NET Development Getting protected controls using reflection
Hi, I am inspecting an assembly that has a form, and this form has some controls that are inherited from a BaseForm class. Using GetFields I get to know its controls. However, the inherited controls do not show. I have set BindingFlags as follows: BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic; Am I missing something, any ideas Thanks in advance. Yeah but I would need to create an instance of the form to do that, and I would like to avoid that whenever possible since it may be quite a performance hit. My bad for not saying it in the first post. Would it be possible to inspect inherited controls without creating an instance of the form ...Show All
Visual Basic COM Object BeginInvokes at Program Close?
We're writing a program where we have a COM object that is created and used several times through the runtime of the program. I'm finding, though, that I get this bizzare error after closing the program. I've verified that this error comes after an Application.Exit() call, and the stack trace doesn't involve any of our code, so I have no idea how to diagnose this (if I could just supress it, I'd be fine, since the program can finish closing after I hit F5 when the exception comes up in the debugger). Yeah, I had tested that and it didn't change it, but... I found when I was digging through some of my collegues code that he wasn't disposing of a dialog that had a COM object on it. We didn't think much of it at the time, probably, because w ...Show All
SQL Server Iterating the rows of a script component
Hi There, Can someone please let me know what is the best way to iterate the output rows of a script component and stick in those ids in a where clause of a select query (to retrieve additional info from a database) Is this possible at all If not, what is the best way to deal with this situation Thanks a lot!! Sam_res03 wrote: Thanks Jamie. I will investigate it. By the way, if I have a dataflow task(source and the destination) in a foreach loop container and if the number of items it is iterating is x items , does it mean that it will make x calls to the source database Yes. ...Show All
Windows Forms Datagridview combo unique values problem
hi, i have a combobox in a datagridview control. this combobox retrieves a list of values from another table. Durnig an insert of a new record, i wnat the user to select a value from this combobox. I can get the list of values ok but these are repeated. How can i make them distinct. Please help as i am new to vb.net 2005 and datagridview in general 1. Are the values coming from a table with distinct values example: suppliers, and it will already be distinct. 2. If not that case, the you will need to query the table for unique values. right click your adapter add query... some code like - select distinct names from namestable. save the query.. . something like fillby . . in your code.. ...Show All
.NET Development Help needed with XslCompiledTransform
I had an issue to the XslCompiledTransform.Transform method, i am using the following code to transform xml to html public string transform(string source, string xslPath) { string rtnXml = ""; XmlDocument xmlDoc = new XmlDocument(); xmlDoc.InnerXml = source; XPathNavigator xpNav = xmlDoc.CreateNavigator(); XsltSettings settings = new XsltSettings(true, true); XslCompiledTransform xsl = new XslCompiledTransform(); xsl.Load(xslPath, settings, new XmlUrlResolver()); StringBuilder sb = new StringBuilder(); StringWriter sw = new StringWriter(sb); XmlTextWriter writer = new XmlTextWriter(sw); xsl.Transform(xpNav, null, writer); sw.Close(); writer.Close(); ...Show All
Windows Forms Dialog result without closing / event handling
For reference, I'm working in VS Express, C#. I'll try to keep background short and need-to-know. Also, my apologies on the font size - I tried to make it normal and apparently I have failed... In my efforts to follow a good OO approach to programming a project, I have created an abstract object called Item (as in an item on a test) with an abstract method Display (which displays the item and returns an int that is the answer given). I also have a TestAdministrator class that selects the items in a test and presents them to the test taker. Furthermore, in an effort to keep load times to a minimum, I have created an ItemDisplayForm class that gets passed into the Display function. The idea was to have ...Show All
