Abhayc's Q&A profile
Smart Device Development Missing files - .NET Compact Framework 2 SP1 in a Platform Builder 4.2 image
I am trying to include the .NET Compact Framework 2 files in an Platform Builder 4.2 project. I have installed all the monthly Platform Builder updates including the July update that included .Net Compact Framework 2 SP1. .NET Compact Framework 2 shows up in my catalog and I have added it to my project and rebuilt my OS. The OS compiles correctly however none of the .NET Compact Framework 2 files are included in the OS. Any ideas Thanks for the suggestion, but now I have a different problem. I removed NETCFV1 and NETCFv2 from the project and then added back NETCFV2. I did a clean and then build and now I get a compile error: Error: could not find file ...mscoree.dll I even tried creating a brand new p ...Show All
.NET Development connecting to mysql database from a pocket pc 2003 emulator
hi, i am trying to connect to a mySql database running on a server from a pocket pc 2003. I can do it fine from a winform, however from the following code i get an error saying: Error 1 The type 'System.ComponentModel.Component' is defined in an assembly that is not referenced. You must add a reference to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. and Error 2 The type 'System.Data.IDbConnection' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The part of the code highlights is the method name, however, this is the code i am running: private MySqlConnection creat ...Show All
SQL Server Blank Error Messagebox Displayed at startup
When I start SQL Server Management Studio an error message box with no text is displayed with the Exclamation ICON. Everything seems to be working after clicking OK though. Anyone else experienced this. Also... Why is it that I can't repair the installation from Add and Uninstall Do I have to uninstall it to repair it The SQL 2005 is the Developer Addition with a new install... I have since run into this problem again. It seems to be related to Crystal Reports. I run an application that appears to use an older version of some Crystal Reports dll than VS 2005 provides. It's a bit of an ongoing saga in that I repair VS 2005, it breaks the other app - I run the other app, it breaks VS 2005. It also appea ...Show All
Smart Device Development auto complete for COmbo Box
hi all, i'm building a auto complete combo box, problem is i have alot of items in my combo box. Is there anyway to search through the combo box without looping through the whole thing. Say if you're looking for the last item, you don't need to loop through from item 1 to the end Here's my code : Public Function PointToComboItem(ByVal cboComboBox As ComboBox, ByVal strValueSearch As String) As Boolean Dim i As Integer Dim currentIndex As Integer If cboComboBox.SelectedIndex < 0 Then currentIndex = 0 Else currentIndex = cboComboBox.SelectedIndex Try If Trim(strValueSearch) = "" Then Exit Function For i = 0 To cboComboBox.Items.Count - 1 cboComboBox.SelectedIndex = i If Left(Trim(c ...Show All
Visual Basic Delete Prefetch Folder Contents
I want to be able to delete the windows prefetch folder. However i don't know what's the right word to use so that the system finds automatically the right folder since not everybody installs windows on drive C:. i think it's %systemroot% but i'm getting an error. So please, enlighten me. Here's my code. Dim file As String For Each file In System.IO.Directory.GetFiles("%systemroot%\prefetch") System.IO.File.Delete(file) Next file try this: Dim file As String Dim SysFolder As String = Environment.SystemDirectory & "\prefetch" For Each file In System.IO.Directory.GetFiles(SysFolder) System.IO.File.Delete(file) Next file What error are you g ...Show All
.NET Development Creating DSN to SQL Server in the code.
Hi. Can somebody tell me how to create a system DSN for SQL Server programmatically in vb .net The following code always fails to create the DSN. What am i missing Private Sub Build_SystemDSN_SQL() Dim ret%, Driver$, Attributes$ Driver = "SQL Server" & Chr(0) Attributes = "DSN=" & mstrDSNName & Chr(0) Attributes = Attributes & "Server=" & mstrServerName & Chr(0) Attributes = Attributes & "Database=" & mstrDBName & Chr(0) Attributes = Attributes & "Uid=" & mstrUser & Chr(0) & "pwd=" & mstrPwd & Chr(0) 'Attributes = Attributes & "Trusted_Connection=yes" SQLConfigDataSource( ...Show All
Windows Forms DataBinding Control to GUID type error
I have a Win Application that accesses about 10 tables. The application uses databinding to datasets and it was working fine when my primary keys were integers. I changes all of the primary keys (1 per table) to GUIDs. I made all of the corresponding changes to the datasets. Now the WIN form application generates errors when I try to make a change to the current record. I have a list box that is used to identify the record to display on the current form. When the user selects (clicks) on a record, the form displays that detail data. It was working fine. Now when the user clicks on a record after load, an error messgae is displayed like the following: "Unhandles exception has occured in your application. .... Column 'NoteID' i ...Show All
Visual Studio 2008 (Pre-release) Markup Extension question
how can we pass a collection to a markupextension without hardcoding the values Thanks ...Show All
Visual Studio Express Editions what code do i use for key change
ok i have this much i know if gose inbetween this Private Sub Form1_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me .KeyDown End Sub but what code is it i use so that is i press the "a" key it will show "y" If you want to take 'capslock' into consideration. Use the code below. (Use 'sendkeys' only as a last resort.) Public Class Form1 Dim hold As System.Windows.Forms.KeyEventArgs = Nothing Private Sub TextBox1_KeyDown( ByVal sender As Object , _ ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown hold = e End Sub Private Sub TextBox1_ ...Show All
.NET Development really i need to know what xml really do !!!
hi i spend a lot of time understanding what really can xml brings to me something great i read the following XML was Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere. and , XML is designed to describe data and to focus on what data is. but i didn't understand great meaning for it !!! i need to know someting really very good for it and how can it do something great for my apps in .NET ,, thanks in advance. Hi, seco wrote: XML was Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the excha ...Show All
SQL Server Error message 913
I've been having intermittent issues with SQL Server 2000 server on Windows 2000 Server. This server acts as a development server and is on the same network as our production server which runs Windows 2003 Server. Spare me the lecture about running different OS's on production and development servers, I wasn't the individual who setup the environment, just the one who got saddled with the responsibilitiy of making it useful for our staff. Anyway, the issue I've been dealing with is intermittent 913 error messages similar to what follows: Server: Msg 913, Level 16, State 8, Line 1 Could not find database ID 80. Database may not be activated yet or may be in transition. I have several tools I've developed which I use to backup the pro ...Show All
Visual Studio 2008 (Pre-release) Cascading Deletes
Folks, I've read elsewhere in this forum that retrievals of associated objects must be done explicitly by invoking Load() on the association. Is the same true for deletes Are deletes cascaded If they're not, I would expect to be able to override the implementation of an Entity's Delete() method. I'm using the August CTP. Entity.Delete() is a concrete method. I would have to shadow the implementation of Delete() with a new implementation of Delete() in my entity classes in order to cascade the invocation of Delete() on an aggregate root to members of the aggregate. If cascading deletes is already there, how does it work If cascading deletes is going to be done explicitly as the retrieves are, will the Delete() method on Entity be made vi ...Show All
Community Chat Full multi-tier ASP.NET code generation solution?
Any recommendations ...for a full multi-tier ASP.NET code generation solution Thank you, Michael. Hi Michael, If you are looking for a customized client specific code generation then I would recommend you to go for a class generator. Class generator/logic generator is something which will pull basic building logic from xml in association with xslt to generate business logics. Once you create a basic framework then you can create the entire solution logic at any number of times on a click away. ...Show All
Visual Studio Express Editions how to execute my exe before main exe ?
Hi i have 2 exe file. first is main exe and second is my exe . i want ..when end user run main exe . my exe first run and calculate some conditions if true then run main exe otherwise do not run main exe . but how to do that Why don't you combine them Becuase the user could always just run the 2nd exe. Why don't you combine them Becuase the user could always just run the 2nd exe. System.Diagnostics.Process obj_Process = new System.Diagnostics.Process(); obj_Process.StartInfo.FileName = "c:\\text.txt"; obj_Process.Sta ...Show All
Visual Studio Express Editions Express Question
I do most of my programing at work, but I would like to do some at home to save aggravation at work . My pc at home is kinda wimpy and cannot run SQL Server Express due to limitations of the pc. I was wondering if I could install VBE on my home pc and just design some of my forms(including code for the forms only)from home then take them to work. Do you see any limitations with this, or is this more of a hassle Do I have to copy the whole project folder or can I just deal with the forms only David Learning hi, sqlserver have lots of prerequests and will not run in some of the old pc because of its limited resources sure you can write programs in your home and run them at work, but i ...Show All
