Alistair4267's Q&A profile
SQL Server Clustering failure on install
Hi, Where can I post issues with SQL 2005 clustering. Is there any prereq that needs to be followed before installing SQL 2005 on a windows cluster Thanks go here http://msdn2.microsoft.com/en-us/library/ms189910.aspx ...Show All
Windows Forms Starting a .NET Application from .NET Windows Service
Hi there, I have been trying to strart a bunch of instaces of an application (XYZ.exe targets framework v1.1) from a service (also ABC.exe targets framework v1.1). Using ProcessInfo ( e.g. System.Diagnostics.Process.Start(ProcessInfo pi or String file)) object. This works alright until the count is less than or equal to 24 but as soon as I try to start 25th process I get the following error in the event viewer: The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: .NET Runtime version 1.1.4322.573- XYZ.exe - Common Language ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Basic collision detection...ModelsUnderRay?
Hello, I worked with Macromedia Director quite extensively in the past. They had a built in function called "ModelsUnderRay" that would create an array of models that existed under a given vector. You just needed to provide the direction in which you wanted to cast the ray. You could also just return the data of the first model in which the ray came into contact with rather than build an array of models. Part of the data returned was the vector of the contact point. My question is whether or not this is possible to create in xna currently. It would be awesome to have this function for basic collision detection. Any help would be greatly appreciated. Thanks, Keelo Unfortunately, there is no ...Show All
Visual Studio Express Editions PLEASE HELP!! BindingNavigator removes twice in my Database
Hi all, i have an ms access database which i have connected to my c# programm, and i’ve included a bindingnavigator from toolbox. If I click delete on my bindingnavigator it deletes 2 times,i mean 2 rows heres my code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.OleDb; namespace uebung { public partial class Form1 : Form{ private string strCon; private OleDbConnection con=null; private OleDbCommand cmd=null; public OleDbDataAdapter da=null; public DataSet ds = new DataSet(); BindingSource bs = new BindingSource(); DataTable table = null; public Form1() { InitializeComp ...Show All
Smart Device Development How to page up and page down in datagrid ??
I want to map the hardwareButton control so that the navigation button can be used to perform pageUp and PageDown in datagrid. Current datagrid only go by line by line. What method or properties to use for datagrid to pageUp and pageDown thank Ilya, thank for the suggestion. Though your suggestion might work, but the issue is I'm yet to know know how many row to advance ahead. Basically, I'm developing a text reader. The text reader will move line by line in datagrid in a time interval. If the last line of the page is read, the next line will start as the first line of next page. This behaviour is similar to clicking on the vertical scrollbar of datagrid. That probably, why I will like to know if the scrollbar can be accessed to i ...Show All
.NET Development Report error detail in exception at client side
When an exception is thrown at server side, it will be searialized and be rethrowed at the client side. but i find when the server and client is not running in the same computer, the rethrown exception will become into an "Server internal error" exception just like ASP.net. I've tried the " customErrors" config section in server's app.config, but does not work. I've processed the exception at serverside,but still want the user know what exactly the error is, the infomation contained in exception is very enough for this, i don't want to lose it. Thanks in advance by the way: For some reason, I config the remoting setting manually like this: TcpChannel chan = new TcpChannel(1989); ChannelServices.RegisterChannel(chan) ...Show All
Visual Studio Express Editions Changing installation drive (on VB)
Hello! I'm trying to install Visual Basic 2005 Express Edition on another drive, other than C. Thing is, the installation wizard has a will of itself and still wants 1gb of my drive C and only 80mb of the destination drive i want it to install to. How can i fix this problem without involving manual file moving Thank you Have you been able to figure out this problem, I'm trying to install Visual C# Express Edition, as well as MSDN & SQL Server, it's asking for 1.4GB for C:, and 60mb for F:. I want it all on F: !!! I haven't figured it out also Is there a way to strip all the ' dependencies' off the drive and start from scratch ...Show All
Visual Studio Team System Freetext search?
Hi, is there any freetext search facility for WorkItems best regards, /Tomas Actually, strictly speaking Teamprise 2.0 doesn't do full text searching, although a client-side full text index is something we're considering for a future release. I think what Luis is referring to is a "quick search" dialog in Teamprise. This still runs a "normal" work item query, but it's quite a bit faster than using the row-based query builder for certain kinds of simple queries. For instance, often a user just wants to search across Title, Description, and History for term or set of terms. That would be an example of the kind of query possible with the Teamprise quick search dialog that is faster than t ...Show All
Visual Studio Express Editions display date and time
I cants eem to get the datetime things to work. I want to be able to display a label with Day of week, day of month, month, year, hour, min, am/pm Any advice appreciated. I cnat find any samples on the forums or microsoft or web. I get this to work for the time at least Public Class Form1 Private Sub Timer1_Tick( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Label1.Text = Now.ToShortTimeString End Sub Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Timer1.Interval = 1000 Timer1.Start() End Sub End Class No these mistakes are all mine. ...Show All
Windows Forms System.Drawing.Imaging.ColorMatrix and overflow
Hi, I'm wondering how is the ColorMatrix handled by the drawing methods when its coefficients happen to make the RGBA values "overflow". For example: float c = 2.0f; ColorMatrix matrix = new ColorMatrix(new float[][] { new float[] {c, 0.0f, 0.0f, 0.0f, 0.0f}, new float[] {0.0f, c, 0.0f, 0.0f, 0.0f}, new float[] {0.0f, 0.0f, c, 0.0f, 0.0f}, new float[] {0.0f, 0.0f, 0.0f, 1.0f, 0.0f}, new float[] {0.0f, 0.0f, 0.0f, 0.0f, 1.0f} }); When the framework multiply, let's say the R color value with matrix[0][0] for a given pixel, will the result be rounded, truncated, or some other behaviour, when R * matrix[0][0] > 255 I have read somewhere that in order to make a correct contrast change on a given Image, the ColorMatrix should be: Color ...Show All
Visual Studio Express Editions Master/Details form
G'day I am new to Visual Basic and am trying to set up Master/Details form using two tables. I have been able to do this using to grid views but want the Master table to be in Detail view. How can I achieve this. Thanks for previous help. Chas T Hi Chas, Please take a look at this article. http://msdn2.microsoft.com/en-us/library/57tx3hhe(VS.80).aspx . The image of the Data Sources tool window matches your scenario. To display Master table in Detail view, you can set it like the Customers table in the image, drag and drop it on the form. Then drag and drop your Child table under the Master table node like in the image on on the form. Best regards, ...Show All
Visual Studio Express Editions Issue with slowness! Please help!
My problem is that as I am building a website I am connected through ftp. Is there any possible way to continue working on the website without being connected. Everytime I type even 1 letter it has to obtain all the pictures etc from the web, which takes forever so it takes me like an hour to type out one sentence. I really need to get this site done and it is taking way too long due to the program being connected permanently! Why not just download all the web files via FTP work ion it on your local server then upload the finished work. Working directly on the running site is quite risky in case you make a major error. Hope this helps. Matt ...Show All
SQL Server Package variables "disappear" from job properties
Creating a SQL Agent job to run a package works just fine. On the Step Properties, Set values tab, I can add variables and the values I want for them, no problem. The job runs just fine. If I want to go edit the values however, they're always gone. Is there some security setting that hides the variables and their values which is on by default GregsListAcct wrote: Creating a SQL Agent job to run a package works just fine. On the Step Properties, Set values tab, I can add variables and the values I want for them, no problem. The job runs just fine. If I want to go edit the values however, they're always gone. Is there some security setting that hides the variables and their values which is ...Show All
Smart Device Development How to refresh once created panel after some updates in child controls?
Hello. I modified Microsoft example (Stack Form) and I use cache and stack for panel creation and visibility handling.Everything works fine but there is small problem - when I preload panel with data from database, items in my listbox are visible and the same as in database. But when I try to cache only panel with empty controls and then add data everytime when I show panel (retrive it from cache and data from db) it fails - listbox is always blank, but data is retrived (I debugged and data is there). I think the problem might be in : refreshing panel, modyfing controls once created, invoking controls (listbox) Here is part of my cache manager responsible for panel loading: public void LoadPanel(Type PanelType, bool visible, bool stackable ...Show All
Visual Basic Try using GetPixel within 2 nested FOR NEXT loops.
A friend of yours answered my first question about "Comparing Graphical data", but it was only for completely identical images, that source code will be posted later on. Now I want to know how to compare that graphical data but not so accurately, like, to compare every third, fifth, or whatever pixel in the image Is this possible Here is the source code: Private Function CompareBitmapImages(ByVal b1 As Bitmap, ByVal b2 As Bitmap) If b1.Width <> b2.Width OrElse b1.Height <> b2.Height Then Return False End If If b1.PixelFormat <> b2.PixelFormat Then Return False End If Dim bytes As Integer If b1.PixelFormat = PixelFormat.Format32bppArgb Then bytes = b1.Width * b1.Height ...Show All
