Jeroen Alblas's Q&A profile
Smart Device Development Getting system information via P/Invoke... ?
Hello there, can anyone tell me how I can access the following information of a pocket pc using the Windows Mobile 2003 API: - state of the GPRS connections - state of the inserted SIM (if it is inserted generally) - the net the SIM has booked in Is it possible to gather these information using the Win Mobile 2003 API Using Windows Mobile 5.0 I already solved this problem ( I used the Microsoft.WindowsMobile.Status namespace). I'm using Microsoft Visual Studio 2005 and C#. Thank you very much in advance. Alex State of SIM - lineGetEquipmentState Operator - lineGetOperatorStatus GPRS - lineGetRegisterStatus and lineGetRadioPresence ...Show All
Windows Forms filling a datagrid
Hi, i need sombebody to explain me how can i fill a datagrid with information comming from different tables in a unique DB, or a link to anywhere explaining with an example.. Thanks! I'm using VB .NET and a DB created with Access. MarcoVid wrote: Set the datasource for the datagrid to the dataset. And the datagrid will show all tables retreived. I've to choose DataGridView, and it asks me where is the datasource... But i've declared it before.. Dim con As New OleDb.OleDbConnection Dim ds As New DataSet Dim da As OleDb.OleDbDataAdapter Dim sql As String What i have to do Because, i've done the filling sql = "SELECT * FROM Consumers WHERE Consumers.id = " & Cstr(id) da = ...Show All
Visual Basic Login Form VB 2005
Hi , i can’t make a loging form, checking a database users, i already have the users db, but how can i made th validation, a full step explanation it'll be great, please help me i already read a lot of books about vs2005, but i still with this trouble i'm usin Microsoft SQL server, thanks a lot!!! hmm. not sure I Follow. The code only does it for any username/password you give it but only executes it everytime the user presses the button to see if the details are in the database. if you want to do it for say 4 users then you need to either do it 4 times or create a different query but you would need to then know the usernames/passwords to search with. so where are these 4 users in the database if so then o ...Show All
Visual Studio Visual Studio 2005 Professional Product key
My MSDN subscription lapsed in March last year. I have MSDN CDs for Visual Studio 2005 Professional and now I want to install it. Although I can still log in to the MSDN subscribers' area, I don't seem to be able to view product keys anywhere. I accept that this may be because my subscription has lapsed. The only product key in the printed documentation is for VS .NET (i.e. 2005 not specified). Is the product key the same for all versions - i.e. can I use this key to activate Visual Studio 2005 Professional Thanks in advance. Your license to use Visual Studio 2005 from the MSDN Subscriber downloads expires with your MSDN Subscription and you can't use the key for VS.NET 2003 to install Visual S ...Show All
.NET Development PickupDirectoryFromIis
I'd like to configure <mailSettings> in my machine.config so that all developers can use the setting specified there. The applications should send mail using the local IIS SMTP server. What is the correct format for my machine.config I've seen it done a few different ways. <mailSettings> <smtp deliveryMethod="PickupDirectoryFromIis" <network defaultCredentials="true" host="localhost" port="25" </network> </smtp> </mailSettings> OR <mailSettings> <smtp deliveryMethod="PickupDirectoryFromIis" </smtp> </mailSettings> Thanks. It ...Show All
.NET Development OleDbCommand.Update method bug - parameter values overlap
Here's a weird one I haven't been able to figure out. I have a DataSet with several new rows that I need to insert into my Access database. I have a query in access called 'insNewUser' that takes a single parameter -- 'UserName'. My DataAdapter fills the DataSet with no problem. If I add a single new row to the DataSet and then call my DataAdapter's Update() command, the row gets added without a problem. If, however, I add 2 new rows to the DataSet and call the Update() command, the first row gets inserted properly, but the second row contains "left-over" text from the first row! For example, if I added two new rows with the values: 1) "UsuallyPrettyKnowledgeable" 2) "Stumped" my DataAdapter would ins ...Show All
Visual C# Storing Font data for use on other PC
Hi all In my application special user fonts are used and have to be stored in a document. Later this document is printed on another PC, where those fonts are not installed. So I have to serialize not only the font description, but also the font data. How can this be done I tried it with the FontFamily object, but this class is not serializable. Reiner Obrecht Fonts in Windows are stored as TTF or FON files. You need to install these on the target machine. You can then serialize out the font data (family, italic, size, etc) and use it on the target machine. To distribute the font you can attach the font file as a resource in your assembly or add the file to your distribution program. Michael Taylor - 11/30/06 ...Show All
SQL Server MSSQL 2005 client application running slow on local PCs but not terminal server
Hi, I am the IT support officer for an office who have recently installed MSSQL 2005 and the application that uses it. However, they have found that when there are more than around 6 users (intotal there are 21) accessing the client system the queries run slowly, 30secs as opposed to 2secs. They have also notified me that when this is occuring and they run the client application from a terminal server, the application on the terminal server run the action at normal speed (2 secs) . The people who installed the client application say that it is a networking issue, but i tested this as the terminal server and some of the PCs share the same switch and the PCs still run slowly. The actual network access appears to be fine, file browsing etc ...Show All
Windows Forms Designer Support when Control has abstract base class
We have a set of user Controls that must derive from an abstract base class BaseControl. BaseControl itself is derived from UserControl. Is there a way enable designing and modifying those user Controls in the VS 2005 Forms designer AND have them derived from an abstract base class Currently we get this Excpetion when trying to open those user controls in the designer: The designer must create an instance of type XYZ.Controls.BaseControl' but it cannot because the type is declared as abstract. at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink) at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSe ...Show All
.NET Development Inner join selects and returned results with a datareader
Hi, I'm writing my application in C# and it sends and retrieves masses of data from many SQL server databases (using one as a master database). As the databases all vary in shapes and sizes, I have to make the C# program create all my columns and populate the database by sending commands to SQL server. I have an INNER JOIN statement I am executing to return some rows of data from the same table which looks a little like this (self joins I think you call this): SELECT F1.*, F2.* FROM MyDataBase INNER JOIN MyDataBase F2 ON F1.LineIndex < F2.LineIndex AND ...etc...etc... rest of my select statement Now, because I am returning two selections, labelled with F1 and F2, I have to be able to read the columns of data returned in my D ...Show All
Windows Search Technologies WDS 3.0 RTW gives error trying to index Outlook Express message store
When WDS 3.0 RTW tries to index the Outlook Express message store, I am getting the pop-up error: "Outlook Express could not be started. The application was unable to open the Outlook Express message store. Your computer may be out of memory or your disk is full. Contact Microsoft support for further assistance. (0x80004005, 183)" I have plenty of memory and the disk is not full. Does this version index OE Any idea how to resolve this Same problem. Windows XP HE and OutlookExpress V 6 with latest patches. 2GBs of system memory and over 40 GB free space on the C drive. I use Outlook Express to access hotmail and store messages I want to keep (and be able to search) in several Outlook Expre ...Show All
Windows Forms accessing the registry and the %windir%system32
Hi.. in my application i need to copy 2 files to the %windir%system32 ... one of which is .ocx and the other is .lic and then i need to run regsrv32 to register this component .. i dont know how to do either :) so please could anyone advise me thnx hi .. the ClickOnce seems to increase the security and the handling over the setup project.. thats great but it doesnt fill my needs... what i need to know is how can i put a file into the system32 folder! the third party component im using is a voice conference component.. they say that to register the end user (distributed ) application.. a file something.ocx must be located in the folder system32 and then i need to run the regsrv or somthing with some parameters to register the comp ...Show All
Visual Studio 2008 (Pre-release) proxy creation
Hello I posted very similar thread but I can not get the answer yet, so please allow me to post another thread. Here is the code from the service side app.config file which I downloaded from the following page http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2006/06/08/5848.aspx CommentPosted=true#commentmessage < xml version="1.0" encoding="utf-8" > <configuration> <system.serviceModel> <services> <service name="Service" behaviorConfiguration ="serviceBehaviour"> <endpoint address=" https://localhost:9500/service " binding="basicHttpBinding" contract="IProvideService" bindingConfiguration =&qu ...Show All
Visual C++ LogonUser
I am running a exe on windows 2000 which have LogonUser function. LogonUser fails because the Process that runs it does not have SE_TCB_NAME privilege. How do I set this privilege Regards Pankaj Hi, if you cannot follow the SSPI alternative, suggested by pintu you can add the privilege from Start->Administrative Templates->Local Security Policy : Local Policies->User Rights Assignment : Open "Act as part of the operating system" and add the account that needs this privilege. But be aware that processes running in that account now have powerfull rights on that machine. -- SvenC ...Show All
Visual Studio Express Editions call event
Does anyone know how to raise an event when the enter key is pressed. you should do this: if (e.KeyChar == Keys.Return) { //Do Something } on a KeyDown event. It's better to do this on a keydown event than a keypress event simply because there is no need to do a char cast as well as making it slightly easier and making it a bit more logical sense :-) ...Show All
