Kolf's Q&A profile
Smart Device Development Questions on using RIL on Smartphones
Hello, I am new to developing on the Windows Mobile platform and have just started writing an app for Smartphones running Windows Mobile 5.0. My first task is to get the cell tower ID that the phone is currently registered to. I searched MSDN and other discussion forums and found that I can use the RIL functions to get this information. My first confusion was wether RIL was even supported on Windows Mobile 5.0 since MSDN includes RIL and Cellcore under 'Windows CE Embedded 6.0'. However, judging by some messages on other forums, RIL does seem to be available on Mobile 5.0. So far, so good. I tried to write a simple app using RIL functions but couldn't build it. I can't find any RIL-related files in my SDK install. After some more searchi ...Show All
.NET Development Can not update typed dataset with WerbServices?
hi all, My Application was written by ASP.Net 2.0, It is separated into 3 layer, and used typed dataset as a business object, I can reture this object completed from WebClient through WebService, but I can not update this object through the webservice. You can see my code is below: this code is to create a proxy for the webservice. /// <summary> /// Update client objects by User Id /// </summary> /// <param name="clientDataSet"> ClientDataSet object </param> /// <param name="userId"> User identitifer </param> public static WebServices. ClientDataSet UpdateClient(WebServices. ClientDataSet clientDataSet, int userId) { if (clie ...Show All
Windows Forms Edit a control in a DataGridView
I have a datagridview that has a Combobox column. I want to select the preloaded Act, then on the selected index changed event of the combobox, i want to get a value from the database based on the selection. Simple enough The code below works when I select a value in row 1. It gets the ActID and goes to the database and gets the Acts basic charge... and checks of they are registered for VAT. As soon as I click on the combo box in row 2 , I get a NullException error. Here is the code. private void dgvEnquiryActs_EditingControlShowing( object sender, DataGridViewEditingControlShowingEventArgs e) { ComboBox cb = e.Control as ComboBox ; if (cb != null ) { // Remove an existing event-handler, if pres ...Show All
Visual Basic Desktop in VB2005
Hi, does anybody know how to create a Dekstop in Visual Basic 2005. I have been searching google but all I have found is how to do so in VB6. Please help me I mean, like explorer.exe. I want to create a program that i can run once my computer has started up, that will look like its the normal XP Desktop but it won't be possible to access task manager or install new apps. Also i want no way to close the program without restarting the computer. ...Show All
.NET Development XML socket problem? (C#)
Hi all, I tired create a XML Socket with using c#. My problem is display Exception : System.IO.IOException: Unable to read data from the transport connection: WSACancelBlockingCall ---> System.Net.Sockets.SocketException: WSACancelBlockingCall with my receive Function. Whether because my server is java I sure i can connect server, server and client is using the same port. I guess it is because time out How to fix the problem. Below is my codeing. Please somebody help me. codeing NetworkStream ns; StreamReader sr; TcpClient clientsocket; bool connected; Thread receive; string serveraddress = "127.0.0.1"; int serverport = 4002; private void Connect() { socketConnection(); if (connected) { receive = new Thread(new ThreadStart( r ...Show All
Visual Studio Express Editions ArrayList namespace not found - c# express
Hi, I am trying to learn c#. I was working on a small program, and I needed to use an arraylist. When I type ArrayList myArray = new ArrayList(); , an error message is generated saying that "The type or namespace "ArrayList" could not be found (Are you missing a directive or an assembly reference )" I don't know how to fix this error. I reinstall c#, but I am getting the same error. I am using a Compaq Presario 2100 - Mobile Intel(r) Celeron(R) 2GHz and 128 mb of ram - window xp pro -2002 /sp2. Any kind of help would be appreciated. goto the help section - f1, type in arraylist. You will find that ArrayList is a member of System.Collections if you poke around enough. so put using System.Collections at ...Show All
SQL Server Advice???
hellooo I have an Accounting system(vb.net 2003, SQL server 2000), every new year data is cleared, but i may use some data from previous years (such as liabilities) whats the best way to that -Shall I create programmatically a new clone DB every year (new DB with same structure as previous year) OR -Shall I add a "year field" for tables in DB knowing that data will keep growing every year whats the best solution, knowing that i dont want the end user of my application to do anything manually, such as creating DB ...... Thank you I dont wanna delete anything, I want at each beginning year to create a new DB(same structure as previous year) and may use some Data from pre ...Show All
Windows Forms component inside controls
i'm having a problem with components that i place inside control. i get a object reference not .... when i try access the properties of the component. so i have a custom dgv placed on a custom usercontrol that i place on a form. when i set columns it says object ref. . . why ...Show All
Smart Device Development Good Book For Windows mobile 5.0 application
Could any body Suggest me Good Book For Windows mobile 5.0 application. MSDN is the best resource for WM 5.0 programming. You can check the following: Programming the .NET Compact Framework (Paperback) by Wei Meng Lee , Brian Jepson Writing Mobile Code: Essential Software Engineering for Building Mobile Applications by Ivo Salmre ( Paperback - Feb 1, 2005) Manav ...Show All
SQL Server Transactional Replication- Snapshot agent
When you create a transactional Replication.Is there a way to disable to snapshot agent scheduler. I believe that there is a way to disble it when you create a publisher. Help ME!!!!!!!!!!!!!!! IF your snapshot agent job is currently running on a scheduled basis, you can modify the job's schedule, find the job in sql server agent job list and edit the schedule. ...Show All
Software Development for Windows Vista Confusing conflict of documentation while using STAThread in WPF
Dear Members, In the documentation of WPF in : http://windowssdk.msdn.microsoft.com/en-us/library/ms743714.aspx said that I have to add System.STAThread attribute. After I have installed the Visual Studio "Orcas" August CTP, I can't find Main method in the project files, especially the App.xaml that contains the startup uri for my XAML Window. I have already checked the generated files including the App.xaml.cs, and I can't find any Main method and the class run well while I execute it. What the use of using System.STAThread attribute in WPF. Is it MTA by default like windows form application since the documentation said that http://msdn2.microsoft.com/en-us/library/system.stathreadattribute.aspx I think thi ...Show All
SQL Server Materializing the cubes, absence of CREATE CUBE
Hi all, (1) Does making a cube through Cube Wizard in Visual Studio imply materialiing the view in a database I created a cube in AdventureWorksDW sample database. There is no error after I deployed the project. Still the size of data files and transaction-log files of database remain the same. (2) Is the cube materialized Can we materialize cubes (3) Shall Microsoft introduce operation CREATE CUBE in the MDX I saw only ALTER CUBE, CREATE SUBCUBE, and DROP SUBCUBE in online book. Thank you, Bernaridho 1) No 2) Yes, you can take the cubes offline 3) http://msdn2.microsoft.com/en-us/library/ms145581.aspx ...Show All
SQL Server Warning Messages & failure Installing MSSQL 2005 Enterprise Client tools
I am trying to install the client tools for management purposes only on a IBM T42 laptop which meets all the hardware and software requirements listed on MS support including the HCL list, the Readme, the forums and MSDN but the install still shows the following log messages when the install fails. AdminMessage = Setup requires user to be in the administrator group in order to continue the installation process. Setup is aborting as the current user is not in the administrator group. (I am an adminsistrator on this machine) Property(S): SupportedOSMessage = Installation of this product failed because it is not supported on this operating system. For information on supported configurations, see the product documentation. Property(S) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Grid using triangle strip?
Hello, sorry if this is a stupid question, but I was wondering is it possible to draw grid of triangles using triangle strip instead of triangle list I guess you can do this by turning culling mode off, but I was wondering is it possible to do with culling on Thanks, ErnisJ Whenever in doubt: just use an indexed triangle list. The only real use for TriangleFan, or TriangleStrip is to decrease how many vertices are sent and processed. When you use an IndexBuffer the amount of vertices is already decreased to the minimum, so those other primitive types become worthless. ...Show All
Windows Forms Disable automatic exception handling in DataGrid control
Hi, I have a DataGrid control (the project was migrated from .NET Fx 1.1, and we don't use DataGridView). When the DataGrid commits a row to the data bound DataSet, if a constraint is violated, the DataSet throws an exception, and the DataGrid automatically shows a MessageBox. I would like to change that MessageBox but, if I catch the exception, the DataGrid doesn't roll changes back. Is there a way to ask DataGrid to handle exceptions, revert changes, and refrain from showing a MessageBox Thanks in advance Hi Ken, Thanks for your answer. The exception I'm trying to catch is a row-level validation exception, i.e., it is fired when the DataGrid calls EndUpdate on the DataRow and the ...Show All
