zwp's Q&A profile
Visual Studio Team System Can't access TFS through proxy server
I've been having major problems connecting to TFS through a proxy server. I've enabled the ISAPI filter and configured the site for SSL, and that all works great - until I try to connect from behind a proxy. The error I get in DevStudio is: TF31001: Team Foundation cannot retrieve the list of team projects from Team Foundation Server on domain.net. The Team Foundation Server returned the following error: The remote server returned an error: (407) Proxy Authentication Required.. When I saw this error, the first thing I tried was connecting to https://domain.net/services/v1.0/serverstatus.asmx using the browser that is built into DevStudio. I am able to connect with no problems at all, so I know the connection isn't being blocked. T ...Show All
Visual Studio 2008 (Pre-release) GridView padding??
There seems to be some Padding setting somewhere in the Columns when using a GridView. Where can I change this setting XAML to reproduce (note the white padding between the red columns): < Window x:Class = " XAMLSandbox.Window4 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " XAMLSandbox " Height = " 300 " Width = " 300 " > < Window.Resources > < DataTemplate x:Key = " dataTemplate " > < TextBox Background = " Red " Width = " 100 " Text = " {Binding Mode=OneTime} " /> </ DataTemplate > </ Window.Resour ...Show All
Visual Basic Help! Insert Text Into Rich Text Box
I can't seem to figure out how to take text read from a listbox and insert it into a richtextbox. I thought this would work: Dim insertText As String = ListBox1.SelectedItem.ToString myPos = RichTextBox1.SelectionStart RichTextBox1.Text.Insert(myPos, insertText) What am I doing wrong Help!!!! Thanks! Thanks for the quick response! I should have explained better... My bad... I am populating RichTextBox1 with what amounts to a tab-delimited text file that I am reading from my UNIX server: Dim file As New System.IO.StreamReader(editFile) words = file.ReadToEnd() file.Close() Kill(editFile) Me .Hide() Dim frm15 As New Form15 frm15.RichTextBox1.Text = words frm15 ...Show All
.NET Development TAPI programing problem
Hi. I have a voice modem name "IC+56K External Data Fax Voice Modem Pnp". I using TAPI 2.0 to write an application to dial out and generate wave file to information to customers. Example i dial out to number 0236789, i meet a problem as follow: The phone number 0236789 still not pickup yet, but in my application it get the message the line is connected. So it do generate wave file to the line while it is not connected in real. I don't know why, i use Windows XP. Do you have any experience in this field. Please, help me. Thanks. My knowledge is minimal about TAPI but if you look Michael Dunn's TAPI Site , there maybe is answer or links to your problem. ...Show All
SQL Server Cursors - Curse or blessing?
Could someone elaborate on or describe a circumstance when a cursor could be beneficial and when using a cursor would be a bad idea Adamus Well I'm glad I posted this to the forum. It generated a lot of good feedback. Because all answers were correct, I can only pick one so no hard feelings. I will pick the first response. Thank you, Adamus ...Show All
Visual Studio Express Editions are methods called asynchronously in the same thread better than those called in another thread?
i was just wondering since calling methods asynchronously in the same thread acts just like calling the method on another thread. so which is better or preferred by you programmers out there are methods called asynchronously in the same thread better than those called in another thread What might the difference be Not really sure what you are driving at, but regardless, the asynchronous method executes on a separate thread. So it 'acts' the same. However, you have no control over how that thread operates - it's taken from a thread pool. This may be fine for a simple operation (file I/O for example). Similarly, the background worker object offers al the benefits of asynchronous operation in a simple package. Once again, though, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Texture Surface Level
I am encountering problems sizing using the following code: textureA = TextureLoader.FromFile(device, filename); SurfaceA = textureA.GetSurfaceLevel(0); the file that I am using for textureA has dimensions of 549 x 710 yet the SurfaceA is coming up with dimensions of 1024 x 1024. What am I missing Thanks! wow. 60+ views and no one has a potential suggestion Ok, I've tried changing the texture to be rendered to to be a texture created in photoshop with an alpha channel. windowTexture = TextureLoader.FromFile(device, Path + WindowTextureTest, windowWidth, windowHeight, 1, Usage.RenderTarget , Format.A8R8G8B8 , Pool.Default, Filter.None, Filter.None, colorValue); I do... sprite.Be ...Show All
Visual C# ListView Project.
Hello All, I'm doing a project like the Event Viewer Form " frmViewMessages " where I have a ListView " lvMessage " that is showing me the list of X items. If you double click an item the detail form " frmMessage " open and display the information in read only Text boxes. In that form " frmMessage " I have two buttons which I intend to move the select Item in the form " frmViewMessages " to the preview or next items. Here is were I have the problem. Could some one tell me how to achieve this part. Here is the code I have so far and is working OK but only allow me to move to just one Item down. For further refernce look the Event Viewer "Application log " in your PC. and d ...Show All
Visual C++ C++ Newbie needs a c++ expert converting bits to bytes
Hello all, I need some C++ experts to help me with a problem I have in converting a PBM file to a PGM file. These files are used to store digital images. The PBM file uses monochrome to display images while the PGM file is a grayscale image. I have written a test program that works somewhat. The problem I have is that the PBM format uses 1 bit to represent a pixel while the PGM format uses 1 byte to represent a pixel. Therefore 1 byte in PBM format represents 8 pixels. I need help in converting those bits to bytes for the PGM format. I am not sure how to achieve this. I have never really had any experience in masking bytes. Here is my code thus far: #include <iostream> #include <fstream> #include <string> using namespace ...Show All
Visual Studio 2008 (Pre-release) Client equivalent of IServiceBehavior
Hi, Does anyone know what the client side equilavant of the IServiceBehavior interface is. I know that with the IService behaviors I can defined functionality that is applied to all endpoint\contracts etcs of a service but how do i define a behavior that can be applied to all endpoints , contracts on the client in a single step. I know about the IEndpointBehavior interface but i have to apply this to every endpoint, is there i way to just defined something at a client level. Somehting like a IClientBehavior interface Thanks Dave DotNetDave, the sealed ClientSection class doesn't have a BehaviorConfiguration property like the ServiceSection has it, therefore there is no i ...Show All
Game Technologies: DirectX, XNA, XACT, etc. My first game on Xna
I made my first game(1946) with Xna. you can move your plane with mouse, canon is left mouse button new version! (0.1) http://s1.upload.sc/request/38ca5cf656f179755c9bd1d11dea24ae/owner changes; 1 new plane, 2 new sounds, fixed bullet bug. old download link; http://s1.upload.sc/request/f6db77a9f09b025ca438d0dca6855812/owner if anyone has a question please send here or genjurosei@gmail.com thanks New version is here http://s1.upload.sc/request/38ca5cf656f179755c9bd1d11dea24ae/owner changes; 1 new plane, 2 sound, fixed bullet bug. ...Show All
Visual C# Adding labels to form
hi everyone..in my project i add labels to form.. i created a label array with name yazilacak..how can i add this labels to form.. yazilacak[i, j] = new Label(); yazilacak[i, j].Location = new Point(700, 30 + 17 * j); yazilacak[i, j].Size = new Size(60, 17); yazilacak[i, j].Text = b[i, j].cihaz_no; i think i must use Form2.Controls.Add(yazilacak[i,j]; but it gives an error like this: An object reference is required for the nonstatic field, method, or property what must i do_ thank you..i think this is the answer which i was looking for..thank you for your attention and can you explain me "this" function..i know it from C++ but in the visual studio i ...Show All
Visual C# BackgroundWorker & Mutex
Hi, I am converting some old dotNet 1.1 C# code to dotNet 2.0 C#. He used a number of mutexs to prevent threads from simultaneously accessing a single variable. I am changing all those programaticaly contructed threads into BackgroundWorkers. The question is this: Does the BackgroundWorker need to use the mutex method, or do they automatically lock the variable they are accessing I have spent hours scouring the Internet for an answer to no avail. So now you experts get a chance at it. By the way, I like C# so much I broke (pun intented) the bank and bought the Pro version. It is quite a bit better and nicer then the express version. Thank you for your quick replies, they are very much appreciated. Both answers w ...Show All
SQL Server Row yielded no match during lookup
In SSIS. I am having trouble exporting records that don't match from a lookup transformation. I get the following error: Row yielded no match during lookup. I would really like to have a list of all records that did not match so that I could send an email of those missing rows Please give me solution with example Thanks I use a lookup often for different purposes. For example currently i'm using it to pull "Open House" information for Properties. Only a few of those have open house schedules - so what i do is i have two outs from Lookup - and they both go to Union All transform. ...Show All
SQL Server if true GO ON else END PACKAGE
I am designing a package performing some data imports from a text file to some tables, passing by a temporary table. My specific requirements are: initially the package checks if the input file exists, if it doesn't it will not continue. I have implemented this with a Script Task, and if the file doesn't exist I fail the all package (Dts.TaskResult = Dts.Results.Failure). Is this the right way after copying the data into a temporary table, it checks via SQL if some conditions are verified, if not it will not continue. I would have liked to do it via an SQL Task, but I don't know how to stop the package if the conditions are not what expected. Anybody can help Thank you. srem wrote: I am desi ...Show All
