Friedrich B's Q&A profile
Smart Device Development Wheel input on Smartphones
Is there a way to distinguish the up and down events of a wheel in the smartphone, as opposed to the up and down arrow key. Right now they both fire the Keys.Up and Keys.Down events but I want to do different actions based on whether this comes from the wheel or the keys. Any ideas Thanks The .NETCF team is unaware of how to do this. There is no explicit support for this in the managed API. As far as I can discover, this would require using a phone vendor specific api, or it may be the case that this can be done by using the HardwareButton class. David Wrighton .NET Compact Framework ...Show All
Visual Studio Express Editions Serial Port, Data Received does not work
Hello there... For my diploma thesis I am developing a program that controls a measuring instrument via rs232. I am quite new in VB and programming but I am trying hard:) I was quite successfull in writing on the rs232 port, reading i working, too. My problem is the data_receved handle. this code works: Public Function Read() sRead = SerialPort.ReadByte() sRead = SerialPort.ReadExisting LB_Kom.Items.Add("RX: " + sRead) End Function But, I have to initiate this function manually. Ths is not exactly what my program should do, it should run automaticlly:) Thus I tried this: Public Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataRece ...Show All
Visual Basic Detection of Insertion and Removal of USB devices
I am having problem with my FYP that my application is based on the detection of Insertion and Removal of a device. I am aware that this would happen using Win32_VolumeChangeEvent class or WMI. (Please notify me if I am wrong). Kindly solve this problem and send the code for Console Application in VB.NET. Please do not send code in any script language or C#. Also to get the device information. IamWasim wrote: I am having problem with my FYP that my application is based on the detection of Insertion and Removal of a device. I am aware that this would happen using Win32_VolumeChangeEvent class or WMI. (Please notify me if I am wrong). Kindly solve this problem and send the code for Console Application in VB.NET. Please do no ...Show All
SQL Server Deploying reports to MOSS 2007
Hello, I wonder if anyone can help me save the few remaining hairs on my head I am trying to deploy reports created in SQL Server Business Intelligence Development Studio to SharePoint running SQL Server 2005 Reporting Services in SharePoint integrated mode. Whenever I try to deploy a report, the Reporting Services Login window pops up no matter which user/password I provide it won't accept any. I have the Reporting Services database set up to use Windows credentials and my Domain adminstrator account so I presume that this is user that I should be providing when prompted when deploying. Can anyone give me any clues Thanks, Michael Can you make sure you are using the upgraded Report Design ...Show All
Visual C# How to nest any custom files, other than .designer.cs /.designer.vb or .aspx.cs, in VS.NET 2005
Hi, I want to specify somehow to VS.NET 2005 which extensions to nest in the solution explorer. For example it automatically knows to nest some files such as .Designer.cs or .aspx and .aspx.cs. I have my classes, and I want to extend that feature to other keywords, such as .Generics.cs or .Properties.cs etc. My first thought was that there should be some registry keys where you add what keywords are "nesting" the files. After a lof of research with no luck, I have decided to make my add-in or macro to nest my custom files together. But, no luck yet, since there is no DOC for these clasess/properties. E.g. The only doc about FileProperties2.IsDependentFile is on MSDN: This member provides internal-only ...Show All
Windows Forms MultiThread Visual Application
I have TreeView on my Form. This application has 2 threads and I want to make changes with my treeView in 2nd thread, but here is such exception: name: InvalidOperationException and Message: "Action being performed on this control is being called from the wrong thread." what can I do with it thanks for your help I've just discovered that if I use:- delegate instead of D elegate as in you example it now compiles! Don't know if it works yet. just about to find out. ...Show All
Visual Studio Express Editions Adding to default context menu in a textbox
I found it really nice that a textbox has a fully functional context menu built in, ready to go. I needed to add an additional item to the pre-defined context menu recently, so I added a context menu control to the form and linked it to the textbox. That zapped all the pre-defined stuff and I had to manually code in that support as well as the one item I was adding. Is there a way I could have piggy-backed on the standard context menu and added my one item instead of having to re-code the whole thing Oh well, just thought I'd check..... There seems to be almost zero good examples about using API and PInvoke etc. under visual basic express. And for those of us that missed the days of programming in C or VB6, trying to c ...Show All
Visual Basic zip files
I need my app to deal with compressed files (any format will work, zip, gzip, rar, ect) I need to -Take several files, add them to a compressed file, with a non-standard extension, instead of making it something like .zip make it something like .app so the file can be associated with my app. OR Take several files, add them to a compressed file with encryption & user specified password, with a non-standard extension, instead of making it something like .zip make it something like .app so the file can be associated with my app. -Attempt to extract the files to a temp directory for use as if they weren't encrypted, if it works then its done, if not my app will need to know then it can prompt the user for the pass ...Show All
.NET Development after publish the program, if i wanna change the data from Access database, where i can edit it?
hi i have a program with MS access database after i publish and install the program at the other PC where i can edit the database without re-publishing the program thx for your attention hunb I'm guessing, but my guess, for whatever it may be worth, is that perhaps the problem is the difference between the absolute path on the development system and the absolute path on the server Possibly what the original poster is looking for may be the MapPath method If so, perhaps the following link to an MSDN search result might help ... http://search.msdn.microsoft.com/search/default.aspx query=mappath -- Brendan Reynolds wrote in message news:974fac26-b312-4540-891f-a88f4087ce77@discussions.microsoft.c ...Show All
.NET Development 2.0 OracleClient + Oracle 8: oci exception (System.AccessViolationException: Attempted to read or write protected memory.)
hi, From time to time we get an execption when we try to create an Oracle connection. Could anyone give an indication what might be wrong or how we can examine this problem... The 2.0 application is a batch application executing on a win2003 server. The DB Client is an OracleClient 8.1.7 client and the DB server is Oracle 8. We use the .NET 2.0 System.Data.OracleClient. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Data.Common.UnsafeNativeMethods.OCIEnvCreate(IntPtr& envhpp, MODE mode, IntPtr ctxp, IntPtr malocfp, IntPtr ralocfp, IntPtr mfreefp, UInt32 xtramemsz, IntPtr usrmempp) at System.Data.OracleClient.TracedNativeM ...Show All
SQL Server Loggin userid from trigger using APP_NAME
Hi I have to implement table level loggin on a bunch of tables. The problem is that I also have to log the user that made the changes Obviously the right way would be to run everything tru stored procs - but that is not possible for me because there is a lot of existing functionality built already - some direct sql and a super large number of sprocs. So I wanted to go with a trigger based approach .However since the changes are being made by a web app SQL has no idea who the actual web application based user is. I originally tried to solve the problem by adding a LastUpdatedBy column to some of the tables and forcing the functions to update that too - so that the trigger can read that column but that has turned out to be v ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to get a lit sphere colored sphere/cube in XNA
I've been trying to do this for the past few days asking many questions to get to this seemingly simple goal, but i just run into problems at every step. In MDX I just created a mesh object, then: myMesh = mesh.Box(...) or myMesh = mesh.Sphere(...) In XNA I've had to go through making custom vertex formats, manually drawing all the sides of the box, and now even worse it seems I have to manually input the vertex normals and am STILL unsuccesful...i have no idea if i'm expected to do this for a sphere. This seems too massive a step back for something that is supposed to be superior to MDX, so I clearly have to be missing out on a key point... I realised MDX is being discontinued and i decided to move on to XNA, but I'm considering just goin ...Show All
Software Development for Windows Vista Access Denied insufficient rights
This weekend we purchased the toshiba A130 loaded with windows vista. I deleted some of the programs that i wouldn't use and added my printing software with no problems. But when I tried to load my Pinnacle software I received the following message. "Access denied, insufficient rights-to install software you must have administrative rights. Please log on as Administrator and start the installation again." At that time I was the only user and already WAS the administrator. I called toshiba and spent a very long and frustrating time NOT getting helped. I tried a few more things on my own but admittedly I have very limited computer skills. Can anyone help me Thanks! The only pop up box that I get b ...Show All
Visual Studio 2008 (Pre-release) Sylin' a Panel's Navigation UI
Hello Is there a way to style the navigation UI on a panel. I'd like to add more buttons around it. I saw a post about styling navigation ui for the navigation window. But I'm not sure how to style a panel so that its navigation ui would show more buttons. Thanks Houman ...Show All
Windows Live Developer Forums Pushpin Detail not Displaying Correct
For some reason, when the Pushpin Detail is displayed for Pushpin's close to the bottom of the map, the the detail displays outside the map.... Does anyone know how to fix these In Firefox they display correctly, it is only in IE. Any help would be greatly appreciated. --Erick_the_Redd Do you have more information on this issue We are trying to come up with a work around and could use more information. ...Show All
