KavyaKonda's Q&A profile
Visual Studio Express Editions BindingManagerBase Position_Changed Problem
Hey Everyone, I have a program that has several textboxes bound to 1 dataset which contains only one table. When the form loads, the data is displayed in the textboxes allowing the user to add, edit, delete, etc., as well as navigate through previously entered records. However, when trying to navigate through the records, it doesn't do anything. The recordCountLabel, which keeps track of the record number that is displayed, changes, but the first record stays on the screen. Here is a little of my code. Protected Enum Record RecordNum DDate Shift ATO Vehicle End Enum Private Sub Form_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load 'Loads data into the 'TripSheetI ...Show All
Architecture Using Object Relation Mapping Tools
I am planning to use Object Relation mapping tool in our project, presently we zeroed on Nhibernate. Just before implementing i want to seek advice on the below points Any cons of using OR mapping tools Any known issues Any performance issues TIA, Sudheer. The answer to all your questions is Yes. If you do not intend to use the Domain Model Pattern, then O/R mapping is probably not for you. If this is your first time implementing a Domain Model, I would suggest reading the book Domain Driven Design by Eric Evans, or Applying Domain Driven Design and Patterns by Jimmy Nilsson, BEFORE you get started. More importantly, if you haven't tried persisting objects yourself, then you might ...Show All
Visual Basic How To Make A Quadratic Equation Calculator
Hi guys i am working With Visual studio 2005 and i want to make a quadratic equation calculator in a visual Baisc (windows Form) Could someone plz help me with it. Would be nice. Thx Thank you very much. It helped me totaly because i couldn't figure out the code i was trying and trying but i didn't get it. I searched on Wickipedia and google for the formula how a Quadratic equation works but i found nothing. No it was not a Homework problem. It is to help me to get the Formula in my head.i have to prepare for some assignment and this will help me totaly. i have made already 30+ programs but they were all in VB6 Codes from the Microsoft Visual basic 6 Book and i had to convert them for 1.My self to learn and 2. For the teacher b ...Show All
Software Development for Windows Vista Draw buttons cleanly on Aero Glass
Using Vista RC2, I've been digging into Aero Glass and the DwmExtendFrameIntoClientArea function. That much has worked nicely and I've got a glass area at the bottom of the form. Now I'd like to add buttons to it. The problem is that the button is drawn with an opaque white border and transparent text. I've tried owner-drawing it using a variety of DrawThemeBackground/DrawThemeText (etc) functions, but no change. Am I attempting the impossible, or is there a correct way to draw the button that I've missed Thanks! Rob Most GDI functions produce incorrect alpha values in the destination surface, and therefore are not suitable to draw on glass. So if you want to use controls, you need to ...Show All
Visual Studio 2008 (Pre-release) Base Class in xaml
Hi, I'm trying to build a user control in xaml that would serve as base class for other user control. I searched the forum for answers but didn't find anything that was working, so if anybody has a working example or can explain it in details out to do it, would be great. Thanks in advance. Ok, with a ListView, I develop a usercontrol in wich we can sepcified different cell tamplate to make some sort of editidable grid. From that user control, I want to develop a specific user control that can only accept a certain type of cell tamplate, in this specific user control, there are functions and events develop espacially for those type of cell tamplate. That is want I want to do. Is this ...Show All
Internet Explorer Development A problem with IWebBrowser2:Navigate() under IE7
I have a problem with ie7, the method Navigate of interface IWebBrowser2 can't work as before. My application is a C++ one, there is a Browser control (BrowserObj1) which is created in the main thread, hosted in the main window. The browser control will direct to a html file ( index.htm ) using method Navigate of IWebBrowser2. There is a custom control (MyControl) embeded in a table of the index.htm. My control is a visible one which hosts another Browser control (BrowserObj2). Till here, all the codes work fine under both ie6 and ie7. Then, invoke method Navigate of BrowserObj2 in main thread, to load another html file (page1.htm). Now, the method Navigate fails to navigate page1.htm under ie7, and the return value is "the requ ...Show All
SQL Server Connection error : SQL Server does not exist or access denied
hello , i'm very new to sql server. i'm using sql server 200 & winXP. I have a local server called "JO" and a dsn named "LocalServer". Authentication is sql server authentication & window with username of "cying" and password "admin" i can ping my server "JO" but cannot telnet it's sql_server_tcp_port. this is the error code i obtained when try to open the connection: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. my connection string is as below : set objcon = server.CreateObject("ADODB.Connection") strConnection = "Provider=MSDASQL;Driver={SQL Se ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Integrating Joystick
Hello, I am fairly new to the .NET platform and currently using VB.NET to read joystick input. I am using DirectX 8 and following a reference I found on MSDN. However, this piece of code is generating a run time. EventHandle = inp_device.CreateEvent( Me ) EventHandle of type long, inp_device is of type DxVBLibA.DirectX8. The exception generated reads as follows: Cannot cast windowsApplication1.joystick_controller to a DirectXEvent8 object. I would appreciate any direction in this matter. Thank you, Nath I'm really susprised you could find good DX8 documentation. You should be using ManagedDirectX 1.0 or XNA (which is the only other managed alternative). Right now though XNA is only supported with ...Show All
Visual C++ Structure Alignment/Packing issue
I have developed a VC6 X application. In X application i am reading/ writing structures in the binary file. These files are used by Y application which is also developed in VC6. Untill now everything was working fine but as soon as i changed the order of struture members i have started getting junk values in Y application. I have changed the order in both the application but my X application is reading them properly from the file but my Y application fails to read from the same file. Can anyone tell me why is this happening. Any kind of help will be appreciated Thanks in advance Can you please elaborate new Y' application to be made lil more. I am unable to get your point. I have tried simpl ...Show All
Windows Forms Catch all Exceptions
Hi I have a program with several Forms. What I need is to log all exceptions (save them into a database). Is this possible without having to write a "try{ ... } catch(...) {...}" everywhere (and call a static log-method within the catch-body). Kind Regards i have seen ThreadException and the other related to AppDomain exception but is it really useable for windows apps for unhandled exception scenarios i'd rather catch it in the proper places where i expect them to be raised, in my opinion. ...Show All
Microsoft ISV Community Center Forums Error handling problem
Hi - i have an end of month routine that will run - however it brings up error 3021: no current record. this occurs if the user presses the command button where they have not entered any activity that is greater than the 'datelastsubmitted' date because the form loads with the following code: Private Sub Form_Load() Me!officer.SetFocus officer.Value = loginname Me.submit.Enabled = False Dim rsdbase As Database Dim rstemp As Recordset Set rsdbase = CurrentDb Set rstemp = rsdbase.OpenRecordset("SELECT SUM(activityhours)AS [availablehours] FROM [qryavailablehours]WHERE [loginname] ='" & CStr(Me.officer.Value) & "'") With rstemp .MoveFirst Me.availablehours = Format(Nz(!availablehours, ...Show All
.NET Development Converting .net byte[] to java byte[] in j2me
I am using .net web service from j2me client in which the web method is returning a byte[] but when i create stub using wsdl, while converting byte[] it says, error: Found unknown simple type: byte[] Migt be wrong forum to post, but couldn't find solution anywhere else. ...Show All
SQL Server A thought this would be simple...
I had originally thought a full outer join would solve this, but alas I'm a roadblock. Perhaps it's because it's a Friday! The goal is to create the most efficient query that will display results of the daily calls and sales as this: Date EmpID Calls Sales 7/1/2006 1 20 5 7/1/2006 2 25 7 7/1/2006 3 NULL 1 7/1/2006 4 10 NULL The problem is a simple full outer join ends up ignoring EmpID 3 who has no Calls in t1, but I still want that row displayed in the results. Any ideas TIA create table t1 (Date smalldatetime, EmpID int, Calls int) create table t2 (Date smalldatetime, EmpID int, Sales int) insert into t1 values ('7/1/2006', 1, 20) insert into t1 values ('7/1/2006', 2, 25) insert into t1 values ('7/1/ ...Show All
.NET Development CPU problem for multiple TcpListener's running on separate threads?..
I have a Windows Service which runs multiple TcpListeners, each on its own thread (approximately 200 concurrently). When I am running the service on my dev machine (XP Pro SP1), regardless of the number of client requests at any given moment, everything is fine. But on the other servers which have Windows Server 2003 Web Edition SP1, the same service sometimes consumes 100% CPU for half a minute to half an hour when there were NO requests from clients. This happens both in production (Release configuration) and when I run it in Debug mode from VS 2003 IDE. Then CPU usage drops (again, without any obvious reason), and can go up again in a few minutes. There is no pattern in that behavior. There are no other programs running on thos ...Show All
SQL Server Reporting Services Instance not found
Hi, I am getting the following error - "Report Services instance could not be found". However, from services, I am able to start and stop SQL Server Reporting Services. I get the error when I try to connect to Reporting Services from Management Studio. I am using Sept CTP. How do I verify that I have this installed correctly From the folder structure, I'm seeing MSSQL.1, MSSQL.2, and MSSQL.3, so I am pretty sure I installed all components that's on the CD. Any help is appreciated! -Lawrence Me too - I have this problem and don't see the simple fix. It seems you need to "configure" reporting services first. From the operating system Start menu, go to ...Show All
