bob10's Q&A profile
.NET Development Regarding WebException During using Web Service
Hi, I had programmed an webservice and saved it on the server, when i access this webservice through internet explorer on the client it works fine. And even it works fine when adding an web reference. But when i accessed it through the code it gave me WebException Saying error occured while accessing the network through a pluggable protocol. I thought it would be due to usage of proxy server which will be blocking webservice protocol. If Same is true then how to get rid of this error. I have written the webservice in C#.Net and i am accessing it through VB.Net may this be an cause ( I dont think this would be a cause because .Net Framework handles it ) ...Show All
Windows Forms Insert text
Hey, how do you make it so that with a rich textbox it will insert text at the spot you are typing in the richtextbox Thanks :) Is this what you want this .richTextBox1.SelectedText = "Hello"; It will replace anything you selected with the string, then if you don't select, the string will be inserted to the caret. ...Show All
Software Development for Windows Vista Building with Vista Platform SDK and Visual Studio 2005
What is the intended "strategy" the Vista Platform SDK has for how projects designed under Visual Studio 2005 should be built in conjunction with the Platform SDK If it was supposed to be obvious from the documentation, I guess I'm still missing it. For a makefile-based project or sample, things still seem obvious and/or unchanged. Between SetEnv.cmd and Win32.mak a bunch of appropriate decisions regarding pre-processor definitions like WINVER and APPVER, default libraries, and the include and lib paths appropriate for the build mode that was selected, etc., are established. The VCIntegrate.exe "integration" seems to be nothing more than setting the include, lib and path directories via .config files updated unde ...Show All
.NET Development How to match regular expression
Hi all, I am new in using regular expression. Let's say if I have a string as follow "A12345.BC" how can I use a regular expression to match it as "CDDDDD.CC" where C is character and D is digit. How can I do a check in C# Thanks Hi, Thanks for your help Just to check with you, I had an expression as follow: "ABC12345-01-A1" May I know is my regular expression right And also, may I know how to convert string to string array I had tried using charArray, but it won't work. Thanks string testStrings = txtID.Text; string [] test = testStrings.ToCharArray(); foreach ( string str in test) { if ( Regex .IsMat ...Show All
Visual Studio MSDN for Visual Studio 2005 First CD keeps asking for CD 1
Can anyone tell me what the labels are for MSDN CD1 CD2 and CD3 I downloaded the three CD from the MSDNAA site for out school and after buring the software just the first CD it keeps asking for CD1 right at the beginning. The school is trying to located the orginal CD but they have not yet found them. So if anyone has MSDN 2005 for Visual Studio 2005 Professional please let me know what the names or labels for CD1 and CD2 and CD3 Thanks Thanks for the download link. I'm downloading right now. I tried difference combination of the names for the lable thinking that would fix the issue and even after copying the entire three (CD1 CD2 CD3) downloads to separate directories it would still ask for CD1 dur ...Show All
Windows Forms WebBrowser History Problem
Hey, I am using the same code I have in my webbrowser program that I used for the bookmarks, but I checged everything int he bookmark code to the name History instead of Bookmark, So I fixed 7 errors and thought it would work but then I got a runtime error when the form opened up, it was: An unhandled exception of type 'System.StackOverflowException' occurred in SurfScape1.exe For this line of code: this .TheCollectionOfHistory = value ; in this little group witch is all I need to show you guys becuase I dont think the other lines of code do anything with this...but here is what the group of code this line of code is in: public List < History > TheCollectionOfHistory { get { return this .TheCol ...Show All
Windows Forms Force a form to redraw
Hi all, When opening my application it needs to load quite a lot of images. I would like to show a progress form so I made a second form containing a progressbar and a label. When an image is loaded I update the label and the progressbar and then call Refresh() of the progress form, otherwise the label does not update correctly. This works fine, but when the progressform is moved, or another application is shown over the progressform (because it is maximized) and then minimized, the progressform does not update anymore. How can I solve this kind regards, Jef You could use a Backgroundworker control to do it async. Your form won't do anything as long as it's loading the images. A possibi ...Show All
SQL Server Evaluate a String Expression
Hi, I have a table which has expression as a column and the data looks similar to the following . ID (int) Expression (nvarchar data type) 1 8*(1/2)-6 2 278*(1/4)-2 3 81*(3/5) +4 I now have the expression as an nvarchar. (Ex: 8*(1/2)-6) Now I need to evaluate this expression and output the result (which is -2 in above Ex) .Can someone give me idea on how do I evaluate the expression which is available as a string. I need to write a procedure for this. I am unable to cast/convert nvarchar to float/int Any sample code would be greatly appreciated. This a very urgent requirement for me.Please get back Thanks S ...Show All
Visual C# "ntdsutil" command
hi everybody: to get the log file in active directory i should do the following: How to Move Log Files Use the move logs to command to move the directory service log files to another folder. For the new settings to take effect, restart the computer after you move the log files. To move the log files, follow these steps: 1. Click Start , click Run , type ntdsutil in the Open box, and then press ENTER. 2. At the Ntdsutil command prompt, type files , and then press ENTER. 3. At the file maintenance command prompt, type move logs to new location (where new location is an existing folder that you have created for this purpose), and then press ENTER. 4. Type quit , and then press ENTER. ...Show All
Visual Basic image looping problem
Hello, I am trying to loop through some images in a folder, have them displayed for a period of time based on the first two numbers of the name (e.g. 10birds.jpeg = 10 seconds for this image). Then when we reach the end of the folder we start again. Sub ShowPics() Dim i Dim strPath As String = Application.StartupPath & "\Images\Pic" Dim oDirInfo As DirectoryInfo = New DirectoryInfo(strPath) 'Sets path to Folder Dim oFiles() As FileInfo = oDirInfo.GetFiles 'Gets File list from Folder Dim oFile As FileInfo 'timer1.Interval = 5000 'not sure how to pass the interval in dim timeToRun For Each oFile In oDirInfo.GetFiles Path = strPath & "\" & ...Show All
Visual C# How can I move a property from a control to another form already shown?
I have form1, form2 on-screen, both of them already shown. When I press a button on form1, I want : form2.txt2.text = form1.txt1.text Note: form1, form2 are already on -screen, so something like: form2 f2; f2 = New form2(); f2.Show() would produce a second form2 form, and I really don't want that ... Please .... This is definitely solving my problem (keeping the instance global...). Millions of thanks! And Application.OpenForms opens new horizons for me. How can I access all the components named "txt_temp" in all the opened forms I think Application.OpenForms .txt_temp.text = "test 2" will not work ...Show All
Visual Studio 2008 (Pre-release) Viewport3D and real time
Hi, I am working on project of software to supervise an assembly line in real time. I am beginner in 3D environment and I would know if someone could advice me an “optimum method” to calculate the transformation of models with a minimum calculus. I am work on 3D model of Robot Arm. The Robot Arm is compound of: BASE, FOREARM, ARM and HAND. Each one depends of previous one so I declare the model like this: // Structure 1 < Model3DGroup x:Name = " base_Group " > < Model3DGroup x:Name = " BASE " > </ Model3DGroup > < Model3DGroup x:Name = " fo ...Show All
Software Development for Windows Vista oscilloscope over running video
I am trying to display an oscilloscope (aka audio scope) over a running video. The directshow filter i am using to produce the audio scope is in: http://virtualvcr.sourceforge.net/html/virtualvcr/filters/scope.php. This filter creates its own window and produces the scope. What I want to do is, instead of creating its own window, it should display the audioscope over a running video. Please point me in the right direction. The filter does not create its own video window... this is a simple transform filter that replaces the incoming video by its histogram. It is the virtualVCR application that does insert it in the graph, and render the histogram to a videowindow when requested by the user. You ...Show All
Visual Studio Express Editions Adding Rows
Hello, Im not having problems, im just looking for some extraways of adding rows, well this is it. example: i have a table with two fields, name & address. to add a row im doing this: DataRow NewDataRow = DataSet.tables[table].NewRow(); NewDataRow["name"] = "Julio"; NewDataRow["address"] = "226W 242St....." But what if i have a table with 10 fields Im planing to make a class so i dont have to repeat the code everytime.. can you guys help me out, even building the class or shearing your xp. well you need to create 10 items (field values) in an array in that case and add it into the datatable/dataset. Example: object theRowOfData[] = new object[] { "item1", "item2", &q ...Show All
Visual Basic Visual Studio 2005 Clickonce Deployment error
I am attempting to deploy an application for others to use. I have been trying to install this application for 3 weeks and have run into many different errors while running the setup.exe on client pc's. I have worked through all of them except for this one: WindowsApplication1 has encountered a problem and needs to close. We are sorry for the inconvenience. This error occurs on every pc that I run Setup.exe on that doesn't have Visual Studio installed. There is no other message that gives me any idea as to what is missing or what to look for. Does anyone know what I can do to successfully deploy this application Thanks, S. Richardson ...Show All
