Carsten Kanstrup's Q&A profile
Visual Studio Express Editions how to populate label on different form.
I'm trying to populate a label on from. The value for this label is coming from another form which opens up the active current form where the label resides, is this even possible and if so can someone explain how to do it using the C# express designer. you need to have a reference/instance of that form in question, and then access the label property either by making the label control public (so its viewable/accessible by the caller class(es)) or create a public property which can get/set the label property. Example of accessing other forms/controls: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=765625&SiteID=1 same thing would apply for a label, except you just change the properties appropriately. so, you want ...Show All
SQL Server Bulk Load Failure
I have numerous jobs that use the Bulk Load object to transfer data. Once or twice a day, one of the jobs will fail with the folowing error: Error: 0xC0202009 at Data Flow Task, SQL Server Destination [73]: An OLE DB error has occurred. Error code: 0x80040E14. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E14 Description: "Could not bulk load because SSIS file mapping object 'Global\DTSQLIMPORT ' could not be opened. Operating system error code 8 (Not enough storage is available to process this command.). Make sure you are accessing a local server via Windows security.". Error: 0xC0202071 at Data Flow Task, SQL Server Destination [73]: Unable to prepare the SSI ...Show All
Windows Forms how can i use hscrollbar?
hello , i'm mohamed sied i want to know how can i use the hscrollbar componant in vb.net2005 pls inform me fastly thank you for all team........... mohaMED It could be a simple as dropping a HScrollBar on your form and double-clicking it to write the Scroll event handler. If you have a problem doing this, you need to tell us what kind of problem. ...Show All
SQL Server Client Certificates with SQL Mobile replication
I am currently trying to replicate a SQL Mobile 2005 database with a SQL Server 2005 database through web synchronization using SSL Server AND Client Certificates. On IIS, with "Require Client Certificates" unchecked, I can replicate fine. Once I turn it on, I get a message from replication saying "A Secure Socket Layer connection is required to access this site". I have installed a client certificate in IE, and can access the https:// servername /Ojt/sqlcesa30.dll site (I tried removing the client certificate, and I was denied access, then reinstalled it and it worked - so I think that part is working). Does anyone have any experience with this My production operating environment requires client-side certificates. ...Show All
Visual Studio Express Editions Need help filtering Dataset table by a value
I cant seem to filter down my dataset table by criteria in expression. Can someone tell me why I still have the same amount of rows after I use this filter select option. Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .WorkListTableAdapter.Fill( Me .SQLDataSet.WorkList) MsgBox( Me .AccuLogic_SQLDataSet.WorkList.Rows.Count) End Sub Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me .SQLDataSet.Tables( "WorkList" ).Select( "DSK = '999'" , "DSK" ) End Sub How could I keep the statement above using hte select option I ...Show All
Visual C# Register
Hi. I want to make a registration programme that takes windows key, not the serial no. Beacause I want to know if the programme is moved to oneother pc. How can read the windows key with c# Also I want to write and read from the windows register. How I will do it On reading and writing to the register, the following help topic might be a good place to start, if you are looking for code samples. The C# code listings on the following page should give you some clues. http://msdn2.microsoft.com/en-us/library/microsoft.win32.registry.aspx ...Show All
Visual Studio 2008 (Pre-release) Infinite timout on http-bindings
I have an application that hosts a WS using basicHttpBinding. The client calls a method which returns an object. The problem is that the method may take time and won't return anything until the binding has timed out. Is it possible to have an infinite time out (probably not feasable) or is there another way to solve this Another option you have is to use async methods. The Begin method would return right away, and whenever the result is ready the callback would be invoked. More information at the asynchronous sample at http://msdn2.microsoft.com/en-us/library/ms751505.aspx . And yet another option would be to use a duplex contract, where you'd make an one-way call to the method (which would return righ ...Show All
Visual Basic How to stop Regional number-formatting?
I have a form with 2 textboxes on it. The user enters his Latitude and Longitude position into them, in the format: 10.24 or 123.78 All works well for US/UK users but for a Danish user, the numbers were being changed by his "Regional and Language Options" in Control Panel. The result was that the decimal points were being lost, which as you might expect upset other calculations !! I don't want to change anyone's settings, but in the Danish case, where they use '.' as the thousands-separator, 10.24 was converted to 1024 which totally alters the value. Obviously, around the world there are many different ways a number can be entered. I don't want to have to check for each type, and then convert it, as the standard for decima ...Show All
SQL Server Defining a named set
I have built a cube and I want to add a named set. Following dimensions are important: suscriber and handset. The set I want to create should contain only those subscribers for which the handset is different from the handset from the month before. I tried to use the filter function resulting in the following: filter ([Dim Subscriber].[Subscriber].[Subscriber]. members ,([Time].[Month],[Dim Handset].[Dim Handset].[Dim Handset])<>([Time].[Month]. prevmember ,[Dim Handset].[Dim Handset].[Dim Handset])) But deploying the cube returns the error message that "<>" cannot be used with sets... Can anybody help me Thanks in advance... Regards Joos You mentioned that [Dim Subs ...Show All
SQL Server Create database permision denied in database ' master' (MS SQL SERVER, ERROR 262
Cn not do anything with my sql server, everything i trt to do i get this message, user does not have permision, etc, , I am running windows Vista Business, SQL SERVER 2005 so what going on here SQL Server SP1 is not supported on Vista... U must have SQL Server SP2... but sp2 is in CTP version... SP2 is to be released soon...so wait for a while... http://www.microsoft.com/sql/howtobuy/windowsvistasupport.mspx Madhu ...Show All
Gadgets Security overlooked when downloading
Okay so there is a security check when downloading gadgets, but as nobody ever botheres to get their approved~what's the point ! Please Microsoft, you have this great oS (Vista) that *has* security, gone to the trouble of developing a sidebar for gadgets and community for it and all because you wnt people to post you don't enforce the security certificates. I think that is wrong, there's quite a bit of dross in the gallery (no offence) and I am sure it would benefit everybody if the majority were certificatted. ...otherwise people will just revert back to pre-Vista thinking and just assume things are safe, not caring about security checks. What with RSS being the new medium for viruses and gadgets....... I didn't know ther ...Show All
Game Technologies: DirectX, XNA, XACT, etc. End users shouldn't have to rewrite XNA math functions in order to improve performance.
The overhead of passing a 64 byte Matrix by value is significant. Most especially when you are comparing two matrices for equivalency (==), or performing a Vector*Matrix multiplication (Vector3.Transform(Matrix)). The following matrix comparison function performs 5-10 times better than your built in == comparison. If the matrices are equal, then it is about 5 times faster. If they are unequal then it fails fast, and is about 10 times faster. public static bool Equals(ref Matrix a, ref Matrix b) { // i check the diagonal first for quick fails return a.M11 == b.M11 && a.M22 == b.M22 && a.M33 == b.M33 && a.M44 == b.M44 && a.M12 == b.M12 && a.M13 == b.M13 && a.M1 ...Show All
Windows Forms HELP explain this winform behaviour
Hi, everyone. I ran into an UI freeze issue with threading and simplied the problem down to the following sample code. The logic is as follows: 1. The main UI thread creates a non-UI STA thread(m_MainThread). 2. Then the non-UI thread runs and creates derived winform and holds a reference to the winform. NOTE: I don't call Application.Run() because I don't need a message pump on this "hidden form" in my application. I rely on the form's STA thread owner to pump and dispatch non-COM messages to the form window when the STA thread is on a pumping wait call(eg. WaitOne()). This works fine. I can send and receive messages to external win32 process using the hidden form. The code below works fine in .NET 1.1, but causes UI freeze issue ...Show All
Visual Studio Express Editions How do I resize images in Visual Basic 2005 Express?
I completely new at this program or any programming program. I am using the Movie Collection starter kit and I wanted to make some modifications. All I'm trying to do is make all of the images resize themselves when I click on the maximize window button. I was able to get the MainForm image, under mainform.vb, to resize by changing BackgroundImageLayout to Stretch. However, when I try changing the same setting or any other setting for ListDetails and DvdDetailsPanel, under ListDetails.vb, nothing changes. Any help would be great. cappy78, I made a new Movie Collection starter kit, MyMovieConnection1. There are three forms in this project. I checked the ListDetails form and noticed that the ListDetails U ...Show All
Visual Studio Express Editions Using an array with objects question.
I need to use but don't have to a company class, region class and a store class. There is one company, 3 regions and multiple stores per region. I was thinking of using an array for the stores like this: Store [] store1 = new Store [ size ]; EDIT: Ok, that part was wrong, I realized I was making an array of objects too soon with that line. It should be an array of type double. double [] store1 = new double[ size ]; And this array would only hold a sales figure for each store. I think the only thing my store class will need is a variable that holds the sale amount: double salesAmnt = 0; So then I am thinking I will need a region array that will hold the stores that belong to each ...Show All
