TheQuietShadow's Q&A profile
Visual Studio Team System Exception using TFS client in Web App
Hi All we have a web application which communicates with TFS. This application creates new Work item on the server. We want to create the work item using the credentials of the user logged on to the web application. Therefore we use impersonation in the web app. The solution works fine until the windows profile of the current user exists on the server, but it crashes immediately if there isn't one (HKCU file is absent). I got the following exception: Access to the registry key 'HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\TeamFoundation\Servers' is denied. System.UnauthorizedAccessException: Access to the registry key 'HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\TeamFoundation\Servers' is denied. a ...Show All
Software Development for Windows Vista DirectShow or DirectSound
Hi, I need to write a C++ application that searches all audio inputs (enumerate all sound cards and for each card enumerates all inputs) for audio. Then, if audio found, analyze it. I first though I'd use DirectSound, but strangely DirectSound does not support input-pin enumeration. Then I went reading the DirectShow manual, and found that it interfaces with the sound card through DirectSound, so it does not make sense to me to use it. Please note that I target my application for both XP and Vista and I must use C++. Any comment Thanks Shaul Hi LGS, I could not make my mind whether DS stands for DirectShow or DirectSound, so I'm gack in square one. As for GraphEdt, it is similar to wha ...Show All
Game Technologies: DirectX, XNA, XACT, etc. main menu
Will you be able to create a main menu and if you can how will it be done LegacyOfHerot wrote: Having spent some time working on a MDX game, I found the UI samples a bit <crude> to say the least. As Windows developers, we're accustomed to being able to drag and drop buttons, sliders etc onto a design surface, and wire up the events. The MDX version is, well, a little limited. With Vista offering xaml based UI, what I'd like is a xaml based interface in xna - I know it would be a big job, but why reinvent the wheel Think of the cracking UIs we could have in games then - video in buttons, dynamic gradient shading, etc all without having to write code...Nice. That's a very good idea. I don't ...Show All
Windows Forms TabPages.Insert Bug?
Is anyone else out there having problems inserting TabPages I thought it might be a problem in my main project, so I created a new WinForms test project, dropped a tabcontrol on the form, and added a line to insert a tab at position 0. Nothing else. My constructor looks like this: public Form1() { InitializeComponent(); this .tabControl1.TabPages.Insert(0, "Test" ); } But when I run I only get the two tabs the designer adds by default. I've tried all kinds of other permutations and still nothing. No errors, but no inserted tab either. Thoughts Mark Rideout wrote: I personally feel that this is a bug in the tab control so I opene ...Show All
Smart Device Development how to hangup a call?
how to hangup a call hi alex: I have seen the api about lineInitialize, lineOpen, lineGetNewCalls and lineDrop. But there are no the data type for these api at c#. Such as, LONG WINAPI lineGetNewCalls( HLINE hLine , DWORD dwAddressID , DWORD dwSelect , LPLINECALLLIST lpCallList ); there are no the data type of HLINE DWORD LPLINECALLLIST in c# .net cf how to call these api at c# .net cf 2.0 code Please give me a samples code Thank you. ...Show All
Visual Studio Express Editions Changing Label.text on MDI Child from another form
Hi all. Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.IsMdiContainer = True ToolStripButton1.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText End Sub Private Sub ToolStripButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton1.Click Dim NewMDIChild As New Form2() 'Set the Parent Form of the Child window. NewMDIChild.MdiParent = Me 'Display the new form. NewMDIChild.Show() End Sub End Class --- Public Class Form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form3.Show() End Sub End Class --- Publ ...Show All
SQL Server Can i Send query string to reporting services 2000 ?
I would like to build the query on my code behind and send it as is not to send params and use a build query on the R.S Can i do it how can i do it Hi, what do you mean by "build query" If you just want to open a report you can go with the URL Access syntax which can be found in the BOL. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Forms FAQ for Winforms designer section
shouldn't there be an FAQ for this section i have participated in this section when it was under windowsforms.net and i noticed that the same questions has been asked (like how to notify the designer host for a particular component property change, etc.) i know that online resources for designer related articles are scarce and it will really be helpful for starters to know where these links are. joeycalisay wrote: The usual sir, filtering out unwanted inherited properties for components using designers, change notification of properties at designtime, design-time integration basics, etc. maybe even post the useful articles online about designers... Sounds like a good place to start. I'll see if I can whip something together ...Show All
.NET Development About SmtpMail.Send() Method
Hi all, This is Hari, In my application I need to generate a report for different people and send it through mail as attachment, and my approach to this task is I will generate a report for single person ,And send it to his Mail ID and then I will delete the report and generates next person’s report and send it. To send the report I am using SMTP server. I am able to send the mails if all the mail ids are correct, if the mail id of a person is incorrect in between I am able to handle the exception but I am not able to delete the report of that person the error I am getting is "Internal system error. Access to the path.... "Even I am not able to delete the file manually .How can I come out of this plea ...Show All
Visual Studio 2008 (Pre-release) Binding Combobox to TexBlock.VerticalAlignment?
I'm trying to bind a combobox to the VerticalAlignment property of a Textbox. The combobox should display Top, Center, Bottom, Stretch and change the property on the TextBox when I change it in the combobox. Not sure how this can be done. When using the Create Data Binding wizard in Expression Interactive Designer only a few matching properties show up for the TextBlock. I think I'm missing something. Suggestions would be welcome. Tnx! Ah...that looks like it might be what I was searching for. Hrm...an object data provider needs to be created to create the enum This is surprising. I wonder why it couldn't just be MyComboBox.ItemSource = "Binding Source={DynamicResource MyTextBox.VerticalAli ...Show All
Visual Basic Application Expire in 30 days
Hello All, I have been trying to come up with the best way to make a trial version of software to expire in 30 days that is not based on the system clock. How is this done Below is some code that uses the system clock but I know that this is not the best way to do this. Can anyone provide some help Thanks! Dim d As Date = Today Dim d2 As Date = My.Settings.StartDate If d.Subtract(d2).TotalDays > 30 Then MessageBox.Show("Expired") Application.Exit() End If do a search on the forums. There are a few suggestions. Don't think about using the registry to hold a key value: you may not have permissions to read/write to the registry user could easily find the ...Show All
Windows Forms from string to form
Suppose you have the name of the form : string fname = "FormSomething"; How do I create a form object with fname as name Apparently this is not enough: Form f = new Form(); f.Name = fname; Also tried: f.CreateControl(); Can anyone please tell me how to get the form object Thanks!!! public class FormsCollection : CollectionBase { public Form Add(Form FormObject) { base.List.Add(FormObject); return (FormObject); } } private void butCreateAll_Click(object sender, EventArgs e) { Assembly asm = Assembly.GetExecutingAssembly(); ArrayList result = new ArrayList(); foreach (Type type in asm.GetTypes()) { if (type.I ...Show All
Visual C# scheduling a windows service to run at a particular time..
Hi, i have created a Windows Service in C# .NET . it should start running automatically at 8.30 PM daily. how can i schedule this i think i can do this by adding this Service to Task Scheduler available in Windows 2000/NT etc. but i want to know whether i can do the same without using Schedulers ie setting some properties of the Service.. pls help me. Thanks in advance , sajitha jose I would use a simple console app that is scheduled to run through Scheduler. I'm very much against creating services just to create services. I think there is already too much stuff running on Windows as it is to have yet another idle service running. Create a console application that retrieves the data from the websites. Although I do ...Show All
.NET Development using xslt to create excel file - having problem conditional bolding text in cell
With the following xslt, I need to bold the first two lines of text in a cell, with the third line not bolded. I have not been able to find the right combination of code to make it work. Any suggestions <xsl:for-each select="Event"> <Row ss:AutoFitHeight="1"> <Cell ss:StyleID="s29"> <xsl:choose> <xsl:when test="@EventID=9997"> <Data ss:Type="String"> <xsl:value-of select="@EventValue"/> </Data> </xsl:when> <xsl:when test="@EventID=35"> <Data ss:Type="String"> <xsl:attribute name="font-weight">bold</xsl:attribute> ...Show All
SharePoint Products and Technologies WSS3 Search Engine not working
When i try to search with Sharepoint Version3, I get the following error. The site http://ynd01-svr-015/documentation/ could not be found in the Web application SPWebApplication Name=SharePoint Parent=SPWebService Is this a common problem whould love to have the step by step to tell me how to fix this. Can anyone help me my boss is asking for this. Thanks a lot I believe a colleague of mine Kurt might be able to provide the answers you're looking for, check out his two blog postings about SharePoint search errors: http://home.infusionblogs.com/kguenther/Lists/Posts/Post.aspx ID=35 http://home.infusionblogs.com/kguenther/Lists/Posts/Post.aspx ID=321 ...Show All
