DarkFire2's Q&A profile
Visual Studio 2008 (Pre-release) IIS and .svc file
Hi, I hosted all services in IIS, for every service must be a .svc file to mapping. The question is whether can combine all .svc file to a single file or can not use .svc file Thanks, Zhihao Hi Michael: As your description whether need to add .svc file if I host the WCF service library in IIS Thanks, Zhihao ...Show All
Visual Studio How to display Barcode in crystal reports.
I have to generate a barcode for a set of characters and I need to display it in crystal report. How to do this Hi Murali, I need to generate a barcode image in a asp.net appliaction on the fly. is there some code i could use. Thank you, Ram ...Show All
Windows Forms help me
Is there anyway to programmatically change state of datagridviewcheckbox column from true to false and vice versa.(VB2005).Is there any tutorials for complete understanding of datagridviewcheckboxcolumn. ...Show All
Visual Studio 2008 (Pre-release) Triggers on TreeViewItems and escaping the routing
I wanted to give a highlight to a TreeViewItem in a tree like this: <Style TargetType="{x:Type TreeViewItem}"> <Setter Property="IsExpanded" Value="True" /> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Cursor" Value="{x:Static Cursors.Hand}" /> <Setter Property="Background" Value="LightGray" /> </Trigger> </Style.Triggers> </Style> But when I do this the TreeViewItem parent gets highlighted along with the Item i've moused over. I tried IsMouseDirectlyOver, but that didn't work as I'm sure the mouse was directly over a TextBlo ...Show All
Visual Studio Team System SMTP Server with non-default port configuration
How do I configure TFS and SharePoint Services to use SMTP server with non-default port I tried setting server name to mail.mydomain.com:587, but it does not seem to work. Is it possible at all hey..good question..please do the following steps.. To configure the Team Foundation Alerts.... <Drive>:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services locate web.config and add the following, <add key="emailNotificationFromAddress" value=" someone@onetouch.com " /> <add key="smtpServer" value=" <IP address of the SMTP server> " /> and save the config file and reset the IIS. To configure Sharep ...Show All
Visual Studio see-reference to generic method from addiotional content htm file
Hello, using the Sandcaste Help File Builder, I have a bunch of "additional content" htm files where I sometimes use <see ..> tags to reference the generated documentation. How do I correctly reference a method with a generic type parameter from such additional files I tried both <see cref="MyClass.MyMethod{T}(byte[],bool)" /> and <see cref="MyClass.MyMethod<T>(byte[],bool)" /> but neither works. The former version is the syntax that works within the class library docs, but does not seem to work coming from additional content. Thanks Karlo Thanks, I did some experiments. It was a good hint to look into the reflection. ...Show All
Commerce Server small bug in catalog and inventory schema manager
When I click edit property metadata in the commerce server catalog and inventory schema manager the application crash with the following error in the application log: Event Type: Error Event Source: Commerce Server Business UI Event Category: None Event ID: 100 Date: 23-01-2007 Time: 09:48:54 User: N/A Computer: PH Description: System.OutOfMemoryException: Error creating window handle. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.CommerceServer.UI.CatalogSchemaEditor.EditMetaData.SetPropertyLists() at Microsoft.CommerceServer.UI.CatalogSchemaEditor.EditMetaData.EditMetaData_Load(Object sender, EventArgs e) at System.Windows.Forms.UserControl.OnLoad(EventArgs e) at Syst ...Show All
Audio and Video Development Loading Resources
After I installed the newer iHDSimulator none of my projects would load. I get a resource load error and have to Ctrl+Alt+Del and kill the app. I ran the validator and it doesn't find any of my resource files. So I thought maybe this is a good time to start loading from and ACA. I've read the spec, and looked at HD-DVD release titles and have noticed that some titles load resources from an ACA by declaring it as an ApplicationResource and others load from a TitleResource. First question: what is the difference In both examples they seem to be using it to load per Title. Second question, why is my playlist no validating properly on resource load ### Playlist ### <Playlist xmlns="http://www.dvdforum.org/2005/HDDVDVideo/Playlist" xmlns:x ...Show All
Visual C# Intellisense
Hi I made a reference to a class library in my project , but i cannot see it's members through intellisence. Is it because it's a console application Does intellisense work in console pplications BTW - the project compiles OK, and runs as expected. it's just that intellisense does'nt work. Any ideas TIA 1)No. 2003. 2) Yes. csharp. 3) Yes. As said, It compiles, and runs OK, using methods belonging to this type. 4) Have'nt tried it. 5) The namespace is the default one: ClassLibrary1(I'm just practicing here...) . I thought about namespaces. 6) I tried both. project reference or a reference to the dll itself. didnt work. 7) Yes i have. TIA ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Image File Extension .dds
My problem surface, when I need to add image file, say texture1.dds to my game project. WindowsGame1 Add Existing Item... then from the dialog I select Files of type Image Files (*.gif,*.jpg,*.jpe,*.png,*.bmp,*.dib,*.tif,*.wmf,*.raw) So my problem is missing image file type *.dds . DX Tool creates it and is supported by XNA Texture2D.FromFile(). Is there published solution avaible or should I change with hexeditor for example *.jpe (never seen jpeg files with this extension) to *.dds If I hard code extension, then where lives dialog recource Any comments will do Peca Sorry, but drag&drop don't work. If you look "File Name" property, you see only pure file name without path. ...Show All
Windows Forms "Index was out of range." error. Gridview.
Hi, I'm trying to pass the contents of a data cell onto a command using GridView. I keep getting the error that's listed in the subject on the line in red below. If I have a line like: lblStatus.Text = Convert.ToString(e.CommandArgument); (lblStatus is just an arbitrary label on my page) The output returns the correct row number. What is going on Thanks! protected void gridSearchResult_RowCommand( object sender, GridViewCommandEventArgs e) { if (e.CommandName == "PingURL" ) { if ( Convert .ToInt32(e.CommandArgument) > -1) { int index = Convert .ToInt32(e.CommandArgument); GridViewRow row = gridSearchResult.Rows[index]; string Pingy = ( string )row.Cells[1].Text; ...Show All
.NET Development Bug? : Sgen breaks web-service serialization
I am using the noaa weather web service and it works fine if I have not run sgen on the assembly. I have sgen disabled in the project settings and instead run it explicitly in the main build. I run sgen using the command: sgen /a:myassembly.dll /force /compiler:/keyfile:myassembly.snk This creates an [assembly_name].XmlSerializers.dll and when running the application again, the same call to the web-service fails with the following exception. This is internal to the web-service code so I'm stuck for what to do other than not run sgen: System.InvalidOperationException: There was an error generating the XML document. ---> System.ArgumentException: Item has already been added. Key in dictionary: 'myassembly.gov.weather.www.productType' ...Show All
SQL Server Designing SSIS package to Cater to SQL Queries invloving multiple joins
I have a query that works fine in SQL Server, SELECT TC.[TestId] ,TS.[NameId] ,[regressionLevel] ,Mstr.[MethodId] ,users.[UserId] FROM [db_db].[dbo].[TEST] TC join [NEW_DB].[dbo].[Users]users on users.FirstName=TC.Username join [New_DB]..[Method_Master] Mstr on Mstr.Description=TC.Method join [New_DB]..[TestSource] TS on TS.Name = TC.TestName basically there is a join between three tables to repalce all the varchars to the corresponding ID. Please guide me in how should I go about in designing my SSIS package to achieve this requirement. thanks in Advance Jamie Thomson wrote: Can you not use as many LOOKUP components as you have keys to look up --Jamie ...Show All
Windows Forms single instance form
Is there a setting that allow me to have some forms have only single instane in one application. if not how do i go about/ public partial class Form2 : Form { private Form2() { InitializeComponent(); } private static Form2 mInstance; public static Form2 Instance { get { if (mInstance == null) { mInstance = new Form2(); mInstance.FormClosed += mInstance.Form2_FormClosed; mInstance.Show(); } return mInstance; } } private void Form2_FormClosed(object sender, FormClosedEventArgs e) { mInstance = null; } } This isn't my favorite way to do it. You cannot supply an argument to the Show() method. As an alternative, you can use this code in your main form: private Form2 mForm2; pr ...Show All
.NET Development Post Data to web.
Hello, i would like to POST something to an php page, like a contact form, which the user fill in, it posts to a php page, and the php page will do his work. Does anyone know how to do this What would even be better is to see the reaction of the php page, so the user can see if the contact form is posted correctly. I hope someone understands me, and someone can help me. Thanks Chris Aha yea i see this part actually looks like Get: 13 builder.Append(System.Web.HttpUtility.UrlEncode( "Bill Clinton" )); 14 builder.Append( "&country=" ); But the method is post, well this answer helped for me thank you very much Chris ...Show All
