Wicket's Q&A profile
Visual Basic Binding Combobox to Data Class - .Text or Lookup?
Hi Everyone, I have 2 combo boxes on my form, which are made visible when the user needs to select (text) values for “Category” and “Location” fields. These values are actually stored in the database as foreign keys. Because the available Categories and Locations rarely change, I populate the combos when the form loads. This saves me running back to the database every time they need to be captured or altered. I have bound each combo box’s “text” property to the corresponding data property in my data class. The class properties handle the resolution between the text value and the foreign key value via private data tables (i.e. lookup tables), which are populated when the class is initialised. (This makes the code in my class more readable ...Show All
Visual C# Screen Saver notifications
I want to get notifications of various System Events in my C# app (Shut down, logoff, Session change, etc). So far I found that the SystemEvents class is very useful ( http://msdn2.microsoft.com/en-us/library/microsoft.win32.systemevents_members.aspx ) However it is missing the notifications for Screen Saver start and stop. Does anybody have an idea to subscribe to Screen Saver events Regards Thanks for the reply and hint. However, I need to trigger the event of a screen saver starts as soon it happens (by registering a delegate or to an event). I am doing a 3D preview that I want to stop as soon as the screen saver starts, and then resume the preview when the screen saver stops ...Show All
SQL Server Getting a Package's ExecutionID
Hello everyone I'm logging the execution of my package into a SQL SERVER table. Everything works right. I'm also executing this package using a web service, I'd like to retrive the package's executionId after it is executed. By the way, i'm using a Microsft.SqlServer.Dts.Runtime.Package object but i haven't found any property that could give this. any clue thanks a lot Have you searched this forum for executionID There has been many threads around this topic and the current version of SSIS' shortcomings with respect to logging the execution ID. ...Show All
Smart Device Development Why the DataGrid's Scrollbar is not visible?
I use DataGrid to display data.But when the data is too much.the DataGrid althought can display data .But it's srollbar is not visible. Why Please Someone tell me. It’s not possible to tell without your source code, but most likely it's either disabled or you don't have enough records/columns for it to show up. ...Show All
Visual Studio CR always ask password for login to MSSQL when open form
My CR always ask password for login to MSSQL when open form all data is come from that SQLServer , How to stop CR ASK user & password when i open form thank you This will store the credentials and apply them for a report and subreport....hope this helps Protected Sub Page_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load Dim report As New ReportDocument() Dim connection As IConnectionInfo Dim serverName1 As String = "yourservername" Dim userID As String = "yourusername" Dim password As String = "yourpassword" report.Load( "c:\inetpub\wwwroot\Crystal Reports\yourreport.rpt" ) ' Set Da ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shader states, etc? (HLSL effects not working right)
I'd like to call upon all the shader gurus here for some help :) I've been experimenting with writing some of my own effects, meaning I'm a HLSL newbie, and have been using NVIDIA's FX Composer to do my work. After producing a cool (albeit simple) effect, I decided to try using it in my little model viewer. The problem is that the way it shows up through XNA is different than the way it shows up in FX Composer, and I can't figure out why. You can find the code to my effect here: http://www.hiranipra.com/data/help_attach/gb1_shader.txt - it's just fairly simple environment mapping-ish stuff. A screenshot of what it looks like in FX Composer: http://www.hiranipra.com/data/help_attach/FxComposer1.jpg - it's hard to tell, but the ...Show All
SQL Server copying from sql 2005 to my laptop which has both sql 05 and sql 2000 installed
I am a novice to server maintanence and i've just installed sql 2005 on my laptop, however when moving or restoring client databases to my machine it only picks up the instance of sql 2000, shouldnt it be easy for me to move things around from my client's server (sql 2005) to mine, as I have sql 05 does it have to do with the way i installed it thanx in advance. ...Show All
.NET Development Common language runtime error - Please help
I was trying to load a programme & came up with the following error "Common language runtime debugging services" process id = 0xf8c(3980) thread id = 0xf90(3984 The programme wil not execute & this error continues to pop up Any advise It is trying to tell you there's something wrong with your program. Check this webpage if you want to turn that off. ...Show All
Visual Basic Help Making A Simple Web Browser
Hello everyone I was wondering if anyone could help me. Im trying to put a Progress Bar in My Web Browser to see How much og the Page Has Loaded like in IE. Thanks alot Brad implement the ProgressChanged event of the webbrowser control. This event is fired when the progress changes of the downloaded document. the event gives you a WebBrowserProgressChangedEventArgs. In here there are 2 properties, one is CurrentProgress and the other is Maximum progress. So with these 2 I guess you can do some calc or just keep seeing what the currentProgress downloaded is and build up your progress bar this way. http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.progresschanged.as ...Show All
Windows Forms Finding selected cell's info
How do I retreive the selected cell's size(height and width) and position on click of the cell in the data grid view Thanks. Regards Alu On the click event or cell changed event use the following: DataGridView.SelectedCells(0).Size.Height Cheers, Luc ...Show All
Visual C# help with events to make this little code from patterns & practices work
Hi I saw this code in patterns & practices for defining events for business entity: My question is right at the buttom. // Define a common event class for all business entity events public class EntityEventArgs : EventArgs { // Define event members, to provide information about the event } // Define a delegate specifying the signature for business entity-related events public delegate void EntityEventHandler(Object source, EntityEventArgs e); // Define a custom Entity class that raises events when the business entity state changes public class OrderEntity { // Define 'before' and 'after' events for business entity state changes public event EntityEventHandler BeforeChange, AfterChange; // Private field ...Show All
Visual Studio Express Editions Create 300 excel worksheets
I have to create a little over 300 worksheets (this is a common task and I want to make it some want automated). I have an excel workbook that contains the names of each tab(worksheet) A1-A304 (in this case). I want to be able to first open that workbook and pull that data out into an array or whatever you suggest and then run a loop to create new worksheets in a new workbook for each cell (A1-A304). Thanks Imports Excel = Microsoft . Office . Interop . Excel Dim XL As Excel . Application Dim xlwb As Excel . Workbook Dim xlsheet As Excel . Worksheet XL = New Excel . Application ...Show All
Visual C# Custom app crashes with 0x800736b1
I'm developing a custom application (GUI.exe), primarily in C#. My business objects (BOLData.dll) are in a managed C++ dll that's part of the overall project. The other dlls are all C#. The program runs just fine on the developers machines. We're all using VS2K5 w/SP1. It works under XP Pro, Win2K3 and Vista -- if VS installed. When I tried running the program on a clean XP Pro computer, it immediately crashes with a cryptic reasons: EventType clr20r3, P1 gui.exe, P2 1.0.0.23358, P3 45d76c7d, P4 bol, P5 1.0.0.23357, P6 45d76c7b, P7 a4, P8 13, P9 system.typeinitialization, P10 NIL. In the Program.cs file, I threw in a try/catch around the main form loading and then ran it again. This time I got a lot more info about why it's failing: System ...Show All
Visual Studio Express Editions Encryption
Hi, I am making a simple (not very secure) chat program. This is basically how it works: The user signs in with a username and password. (Database already done) The username is used as the senders name. When the user sends a message the recipients name is carried with that message and stored in a remote sql database. (database already done) When the message is in the database the recipient who has also signed in is able to see it. In other words a query to see if the name of the person the message is for matches the name of someone signed in. I would like help with these portions of it and i would like to include encryption if possible. I know this is a lot to ask but it would be helpfull to get information on this. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Files and endianness
Hello, First I'd like to say thanks to the guys at MS for being so open about the development of the XNA Framework and associated tools. The recent blog posts have been really excellent. At the moment for opening files I use File.OpenRead(). To read the data from the Stream it returns, I use Stream.ReadInt32() and so on. Obviously on my little endian PC platform, reading little endian data, there is no problem. But on the Xbox, does System.IO.Stream exist And if so, does Stream.Read*() do endian conversion on the fly Thanks again, Peter In .NET, the long type is always 64 bit. The standard C# types are: byte = 8 bit unsigned sbyte = 8 bit signed short = 16 bit signed ushort = 16 bit unsigned int = 32 bit signed ...Show All
