lachlanj's Q&A profile
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 FoxPro install shield Express & FoxPro 9
I am having a wierd problem creating my install with install shield Express. I seem to be creating the setup file okay and it is even installing good and running the app good, with 2 exceptions. the shortcuts that are created on the desktop and the start menu are only available for the user profile of the person who installed the app. The program seems to execute only when the installing person not anyone else. Even if the other person is an administrator. Please help I am new to this Install shield, before I used VFP 6 with its own installer. Thank You in advance. The user that installed was an administrator and is able to run the application just fine. He can read, write and even dele ...Show All
SQL Server DT_GUID to DT_WSTR yields braces around uniqueidentifier
I'm using a Lookup component to add a DT_GUID column named cat_id to a data flow, which is used in a downstream Derived Column component to add a DT_WSTR column named value. The DC expression simply casts the uniqueidentifier to the desired type: (DT_WSTR, 434)cat_id But when the values are persisted in the destination table's nvarchar(434) column, they have braces around them, e.g. {F475DB7F-5CB0-4EE1-9BF2-758C77D7A6D7} What is introducing those braces, and what do I need to do to prevent it Michael Entin - MSFT wrote: You may remove the braces by using SUBSTRING function in the DC expression: http://msdn2.microsoft.com/en-us/library/ms137541.aspx SUBSTRING((DT_WSTR, 434)cat_id, 1, 40) (if I remember GUID length, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA has it's own GamePad DeadZone?
I've been looking at the output of the thumbsticks, and it appears a value less than 24% (0.24) is ever returned. I know it's very important to implement deadzone in your programs, but why has it been done for us Someone may want to write a game that needs a smaller deadzone, but as far as I can tell it would be impossible given we don't have full access to the output right the way from 0 to 1. Is this behaviour intentional Many thanks, Adam Miles When I click Andy's link I get a Page Not Found error. Hmm Personally I'd like to see the deadzone percentage be a property. 0.24 can be the default, but allow games to supply their own lower bound (including letting them set it to 0.0, which effectively tur ...Show All
Visual C# Quick Find in visual studio 2005 disappeared
I used to be able to hit control key and F key, it pops up the Quick Find window, now this does not work anymore. All the options listed under pulldown menu Edit and Find and Replace do not display any window. it just did nothing. could anyone please let me know how to get those functions back. Easy:) Go to tools Customize Keyboard... Type "edit.find" into the show commands containg press ctrl and F into the "Press shortcut key" text box and click Assign Should be all working now:) Ross ...Show All
Visual C++ Visual C++ and Access
Dear All, I am new in programming with visual C++ and I have a simple question. I have an Access database which I would like to manipulate. The access contains 8 tables. Each table has 5 columns. I would like to inform if is possible to have eight simultaneously recordset open at the same time so be able to read all tables at once. Currently I am using the ODBC (because is the only technique I know). If your answer contains some other solution please include an example of use. Thanks in advance for your time. Thank you Sir. To do that i need to made different sql connection string (one for each table) or is it some method which i call and do the rest ...Show All
Visual Studio 2008 (Pre-release) Threading problem in WPF
I'm having a problem which I expect is by design, but I can't find any documentation on it. When I create an object on another thread and then try to databind to it from the UI thread I get a System.InvalidOperationException with the message "The calling thread cannot access this object because a different thread owns it." That seems to make sense. The object was created by another thread so access to it is restricted to avoid potential problems. It's just that owning thread has exited and I want to go on using the object. If the object has been stamped with the ID of the thread that created it, is there a way to change it Just out of interest, if I call Dispatcher.CheckAccess() before I databind the object it returns tr ...Show All
.NET Development How to overcome the problem associated with querystring ?
Hi .. i have developed a website. As usual im using quertystring to passs value from one page to another . EX:If im moving from page ABC.aspx to PQR.aspx with some querystring Till here everythinh works fine . my problem starts here say i reached PQR.aspx name="Sachin" it will show all the data related to name="Sachin" but if somebody in querystring changes name="Nitin" it shows data related to nitin . i Dont want user to get details of other users . rather if somebody changes tehn he shud be redirected to say Login.aspx PLs provide me some tips or C# code Looking forward for ur reply thanks Sachin Question regarding asp.net are ...Show All
Windows Forms removing rows from TableLayoutPanel
At runtime, whenever I remove a row from a TableLayoutPanel, the actual size of the last row is increasing. The table is intialized as follows: _table.AutoScroll = true; _table.AutoSize = false; _table.RowCount = 10; for (int j = 0; j < 10; j ++) { _table.RowStyles.Add( new RowStyle(System.Windows.Forms.SizeType.Absolute, DEFAULT_HEIGHT)); } The remove code is as follows: void RemoveLastRow() { _table.RowCount = _table.RowCount -1 _table.RowStyles.RemoveAt(_table.RowStyles.Count - 1); } After I do the remove, the new last row now has a height that is double what it used to be. The RowStyle for this row still reports DEFAULT_HEIGHT, but the GetRowHeights method reports the new size. The combined heights of all of t ...Show All
.NET Development App works in debugger, not otherwise
Help! I want to shell to cmd.exe and run a mysql command. This works fine when running in the the VS debugger, but the cmd shell either doesn't launch, or doesn't get the standardInput characters when I run my .exe outside of the debugger. The code I want to work is: Dim myproc As System.Diagnostics.Process myproc = New System.Diagnostics.Process() myproc.EnableRaisingEvents = False myproc.StartInfo.FileName = "cmd.exe" myproc.StartInfo.RedirectStandardInput = True myproc.StartInfo.UseShellExecute = False myproc.Start() myproc.StandardInput.WriteLine("mysqldump " + DataFileName + " -u root -pspa -r " + Chr(34) + SignalFileName + Chr(34)) This seems very weird. Any help is greatly appreciated. Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA content pipeline importer questions
Hi, I am new to XNA and C# as well. I am using the code from here ( http://andyq.no-ip.com/blog/ p=16 ) to get a bounding box information. However it crashes at when I do the following -> box = ( BoundingBox )myModel.Tag; I have added the custom importer dll to the properties tab under the content pipeline tab. I cant figure out why its giving this error saying object reference not set to an object. It's pretty much the same idea. In your custom Content Processor, override the Processs() method. In there cast the NodeContent input to MeshContent. The following snippet returns a List<Vector3> of each of the positions of the mesh. Then you can do whatever you want with the vertex soup. private List < Vector3 ...Show All
Windows Forms How to Fill 1st textboxcolumn of Datagrid...
hi, In my application...I have a datagrid on my form.My datagrid contains a textcoxcolumn & a comboboxcolumn…so I want to know how I can put values in textbox column on form load event…. Say I have 5 rows & I want those 5 rows to have 5 strings in the textbox column. Strings are(string1, string2, string3, string4 & string5). So how I can put it in that datagrids 1 st textboxcolumn (in form load event ). Thanks, Vinay ya... Thanks...can u tell me ...how by default i can select 1st option of each ComboBoxColumn in the DatGridView on Form Load Event... Thanks once again... Vinay ...Show All
Smart Device Development Textbox LostFocus and Gotfocus
Hi, The Textbox LostFocus and GotFocus events fires every time the form loads.I need these events to be fired only when i touch the textbox.I am using netcf 1.0.how to solve this I got some other problem with the focus in visual studio 2005 .NET. There is no got or lost focus event in C# Visual Studio 2005 .NET (at least not for textboxes, I haven't looked but I expect the same for other controls) I need these events to be there! (at least I do today for this project) Now I'm pretty sure I can find another way of solving my problem, but I still think each control should have a lost and got focus event by default. In this project I need lost and got focus events for most of my con ...Show All
.NET Development Convertig objectSID (or SID) to String (vb.net 2005)
Hello, I need help to convert the SID or objectSID to String in Visual Basic 2005. I see some code but always for C++ Can someone help me Thanks The code was a help, but putting it into VB.net (as requested by original post) would have been more helpful. The typeof() doesn't seem to work ...Show All
Software Development for Windows Vista Can't download .NET Framework 3.0 June CTP SDK
When I try to download it, it reports : The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. but it contains files with no content. cabs can't be extracted. i'v tryed VirtualCD from microsoft and Alcohol 120%, both give same result. ...Show All
