Quentin Mayberry's Q&A profile
.NET Development tcp/ip problems
Hi, need some help ut it needs to be in simpe terms as I only have very basic computer knowledge. My friend has a lap top which is connected to the net via broadband and a wieless router. For some reason the connection was lost and when trying to resolve this porblem I was getting ' tcp/ip transport not installed' eror. I rectified this by clearing then reinstalling tcp/ip as described on microsoft site. My problem now is the laptop will connect to the net at my home yet it wont connect when I take back to her house but my own Laptop will connect at her house as well as my own. When trying to repair the connection 'failed to renew ip address 'comes up. Any help would be apreciated, even a pm to 'dsl356@yahoo.com' as I need to ...Show All
Visual Studio Express Editions Displaying numbers in a label box.
I'm trying to create a dice rolling program for 6 sided dice. It has a textbox, a button, and a label. what I would like to do with it is put a number in the textbox, click the button, and have the label display that many results. For example, I put 3 into the text box. The program runs the randomizer and comes up with 3, 1, & 6. I would like the label to display 3, 1, 6. Here is my code. Using it, I get one number displaying in my label, but I'm not too sure how to get the others to show. Can anyone help please Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load ' Initialize the random-number generator. Randomize() End S ...Show All
Game Technologies: DirectX, XNA, XACT, etc. D3DERR_NOTAVAILABLE while build of first example in help how to do
I used to code in pascal, cobol, assembly, basic, etc, but not C. From: Your First Game: Microsoft XNA Game Studio Express in 2D following along and doing the first build, I get the error above. I did not think I was calling the 3d engine only the 2d. I cannot find any help on the error, where to look, etc, except what is in the error window when you cursor over it. I cannot figure out how to copy the error in that popup window to look at it further. I know some dislike nubies, but please help if you know the answer. Its disheartening to type in only 6 lines of code and not be able to debug it! To say the least. Thanks OH OH OH, I figured out how to copy the error: Error 1 Building content threw InvalidOperationExcept ...Show All
Windows Forms Regex and datagrids..
I am trying to get a count of all instances of "IN" from a populated datagrid using: Private Sub Counts() Dim INCount As Integer = 0 Dim INFinder As Regex = New Regex( "IN" ) For Each row As DataGridViewRow In Me .dgResults.Rows For Each cell As DataGridViewCell In row.Cells INCount += INFinder.Matches(cell.ToString).Count Next Next tslIN.Text = INCount tslOUT.Text = Math.Abs(INCount - dgResults.RowCount) End Sub But instead " cell.ToString" is yielding "DataGridViewTextBoxCell { ColumnIndex=0, RowIndex=0 }" Any ideas Also what would be the best way to search on a specific column TIA, Stue I did that before but being new and all d ...Show All
Windows Networking Development Trying to use Winsock control in Microsoft Access Database Form
I'm trying to create a telnet session within my microsoft access form. I included the microsoft winsocket control and some text boxes to place the recieved data. The problem I'm having is I recieve data but it is all scrambled like yt%yy and it doesn't take any of my data I'm entering. The current telnet software I'm using is using VT101 emulation if that might have something to do with the scrambled info, but I dont want to use this software and Access. I would like to keep it all in one application if possible. I just need some help where I might be going wrong or any other idea's. Here is a sample of the code I'm using. Option Explicit Const EchoPort = 23 Private Sub cmdConnect_Click() Dim temp As String temp = ...Show All
Visual Basic Problem with foreign key update
Hello everyone, I am having trouble with a table I am trying to update. The table contains information about a client's cases, so it has a foreign key to the CLIENT.CLIENTID column. However, when a new record is created, the CASE.CLIENTID column is always blank. Note: I am using databound textboxes to show this information. I certainly don't want a databound textbox where the user has to manually enter the CLIENTID value for this particular case. So there must be a way to, before the commiting the new row to the list, setting this columns value, manually. After trying various ways to reference the new row's CLIENTID column, including using the BindingSource.AddingNew event, and trying to set the value manually into Bindingsource.Cu ...Show All
Smart Device Development open under user and password on net
Hi everyone, i got this problem: when i make a simply fileopen on a net (i guess vpn or local isnt important) i see the file and i read it but if the directory on the lan is closed with user and password i cant see files and read it. I can imagine i need something such "netuseradd" but i dont find it on Evc++. So...how i can do it pleeease help me,thanks. The call to use is WNetAddConnection3. Here is a managed sample - it should be trivial to convert it back to C++ http://blog.opennetcf.org/ayakhnin/CommentView.aspx guid=44f7179b-502d-4ca9-9d4e-520e8d3b236a ...Show All
Visual Studio Team System FROZEN rule behaviour
When the FROZEN rule is applied to a field, it is still possible to select other values, but you can not save them. An error message "The value for field "foo" must be empty or the same as the original value" is displayed. Why is it still allowed to select other values If you do select another value, you will have to look in the history to find the original value before you can save any other modifications. The UI could be smart and not let users change values. But the logic to determine whether to disable selection could be complicated because that rule could change based on transitions and on other field changes and doing that determination ahead of time could get tricky and I believe ...Show All
SQL Server Editing ModelGenerationRules.smgl
Hi, I need to modify the ModelGenerationRules.smgl file to increase the mandatory filter setting of 5000 records. This is much too small for our database. I know where the file is but I need to know how to make the change. Does anyone know how to change this Thanks BB I wound't recommend changing that file, but it is possible. There are multiple instances of the file, one is in Visual Studio's PrivateAssemblies folder, it is for Model Designer. Others are in ReportingServices\ReportServer folder of every instance of Report Server, they are for server-side model generation. You can open the file in any xml editor, for example, Visual Studio. The limit must be changed in 2 rules ($MarkLargeListsRuleName and $MarkVeryLar ...Show All
Windows Forms kill form from a thread
I have a form from which I'm calling a thread. I want to exit the form when the thread is done. How can I do this Can this be done... There are several options Pass the Form to the start of the Thread. At the end of the Thread, invoke onto the Form's Thread and close the form. private static void MyThreadStart(object state) { Form f = (Form)state; try { ... } finally { f.Invoke((MethodInvoker)delegate { f.Close(); }, new object[]{}); } } Create a timer on the form and every second check and see if your thread exited There are a lot of ways besides these two to get it to work so if this doesn't work, post back and we'll add some different ways. ...Show All
Visual Basic Moving projects
Hi there, This might be a really stupid question but I'm having trouble saving VB.NET projects in other locations as backup. What I want to do is save the project somewhere (eg memory stick) so that if something bad happens I've got a copy somewhere. However, when I choose save as a message box pops up stating that the project must be saved in the original location. I can save the forms and module elsewhere individually. Thats fine for this project as there are only a few things in it but what about larger projects I can save the solution elsewhere but then it can't find the project because it's expecting it in the original location. What I need to know is, is there a way to save the project, taking the forms with it, in another l ...Show All
SQL Server Export to Excel
Hi! When i export my reports with tables to Excel cells border style get changed for unpredictable reason. Some cells keep style i set in designer, some don't. Is there a reason for that\ way to fix this I do use RS 2005 with no service pack installed. I'll try to find and put somewhere the .rdl file for you. Also i experience different problem with Reporting Service when i user temporary tables( #tmpTable ) in a stored procedure. This problem also affects report designer. Should i post it here or start another thread ...Show All
Visual Basic Vista and the VS2005 Configuration Manager?
I know this is going to sound crazy but....... I just installed RTM VS2005 Team Suite on a new RTM installation of Vista and in installed one security update from Ms. However, there is no sign of build configuration selection on my Build menu. It's just not there. And yes, I have checked the box in tools options - show all choices. What is going on The default which shipped with VS2005 was not to show configurations (regardless of OS) -- there are reasons for this, mostly to do with providing a F5 vs. Build experience similar to that of VB6. If you open a project that had modified configurations in it, then I believe we do show it for that project, which would account for the disparity you're seeing. So, I'm reas ...Show All
Silverlight (formerly WPF/E) "Loading" Support
Does anyone know of a good location for an example of how to add a "Loading..." sort of support to WPF/E My assuption is that some small XAML is loaded to do the "Loading" screen, then another XAML object is loaded via AJAX or XmlRequest to do the loading of a larger amount of XAML or code. Ideas WPF/E Pad does this. It shows the main UI which is fairly small from a download perspective and then use XMLHTTP to download additional XAML. A textblock updates the user of which files is being downloaded and is hidden after the last file has been downloaded See it here . Source is here . ...Show All
Visual Studio CR 11 exporting problem
Hi: I am suffering a CR 11 exporting problem. I am using exportToDisk function to export file to pdf. It works good when my web page and SQL are on the same page. After we seperated web server and database server, it only work in VS2005. When I access it from browser, it gives me error: Failed to open the connection.Failed to open the connection. C:\WINDOWS\TEMP\MonthlyCoverage {280AE9FF-C35E-4E16-BABE-ED435910FB14}.rpt I believe this is a security issue and did some search but not success. Please advise, thanks in adv. I've tried specify database name and password in the setDatabseLogon function, but still only work in the VS2005 dev. envirnoment. objRept.SetDatabaseLogon(strUser, strUser_Pass, "192.168.0.1" , " ...Show All
