Vedet..'s Q&A profile
Windows Forms How to Change DataView's Default Sort Comparer
Hi, Is there a way to change DataView's default sort comparer So you can customize its sort behavier. Many thanks in advance, Q You can not change the default sort for a dataview. You should when ever possible make sure the column in the datacolumn is the right type so a number does not get sorted as a string. Typed datasets are a good option. You can create a bindinglist to store the rows in the datatable. You will have to add the sorting abilities to the bindinglist yourself so you can customize its behavior. You will find some code on that in this thread. ...Show All
SQL Server SQL CE 3.0 (Mobile 2005) Max DB Size Question
Hi everyone, What are the consequences for just setting the Max DB Size to 4GB and letting it go at that Is the MAX Size any arbitrary value I want or must it be close to what the actual database is expected to be Also, why did they default to 128MB Wouldn't it have been better to set it to a larger value Thanks Dorothy Dorothy, Excuse me for butting in, but you can buy Bill's book at http://www.hitchhikerguides.net/ . The purchasing process is a bit confusing, but the book's well worth the money and effort IMO. --rj ...Show All
Visual Basic VB.net / Access problem
Dim Dataset1 As System.Data.DataSet Dim Adapter1 As System.Data.OleDb.OleDbDataAdapter Dim MyConnection1 As System.Data.OleDb.OleDbConnection MyConnection1 = New System.Data.OleDb.OleDbConnection( _ "provider=Microsoft.Jet.OLEDB.4.0; " & _ "data source=C:\van3\VANDATA.mdb") Adapter1 = New System.Data.OleDb.OleDbDataAdapter( _ "select * from Calendar", MyConnection1) Dataset1 = New System.Data.DataSet Adapter1.Fill(Dataset1) MyConnection1.Close() Console.WriteLine( Dataset1.Calendar (1)._Date) Dim LastDate As Date = Dataset1.Calendar.Rows ( Dataset1.Calendar.Rows.Count - 1).Item("Date") how do i correct the underline parts how ...Show All
Visual Studio Express Editions Reading from excel file with vb6 help!!
Hi I try to connect excel file withe the connection: oConn.open "Driver={Microsoft Excel Driver (*.xls)};&_ "DriverId=790;Dbq=c:\worker\Ovdim.xls" when I try to run the recordset : oRs.open "select * from Ovdim" I get an error "Could not find the object Ovdim." What I need to change Ovdim is the excel file name. I need to change the select Thank's Lilach im afraid VB6 is no longer supported here, the forums are for .NET. The best place to ask vb6 questions would be over at the communities in the appropriate newsgroup: www.microsoft.com/communities Thanks! ...Show All
Windows Live Developer Forums Searching for a contact
<Sorry if this is in the wrong place. This site can get a bit confusing at times> Whilst at camp, I got some friends MSN accounts. But, it seems I wrote one of them down wrong, just by a bit. I have the general idea of what it is but I cannot guess all the possible variables. Is there possibly a way to search all the contacts with a name like that Like type in for example mine, which starts with mats. Then it would show all MSN users whos account starts with mats. I know there may be various reasons why you do not do this, but if you do it would be nice to get in contract with him, so we can go back next year on the same week. Thanks in advanced for any replies. The purpose of this foru ...Show All
Visual Studio 2008 (Pre-release) Little help plz
Hi i have the following code taken from a tutorial. Now i wish to return a string called returnString but it won't compile because the string is being accessed from another class. So how do i return the string Basically i wish my service to access objects from the application hosting the service. Thanks. using System; using System.Collections.Generic; using System.Text; using System.ServiceModel; namespace Messenger { public class ClientService { ServiceHost serviceHost; String returnString = "String I want to return"; public ClientService() { } public void startService() { Uri baseUri = new Uri(" http://localhost:1234/hello "); serviceHost = new ServiceH ...Show All
Visual Basic Popping sounds using Windows Media Player to play mp3 files
When using Windows Media Player (winmm.dll) to play mp3 files, I sometimes notice 'popping' sounds whereas I have not noticed this in quality applications such as Winamp. Can anyone please shed any light on this phenomenum Basically, yes cgraus. MP3s that I know sound good using my normal player can sound bad in my software player. Wether it sounds bad in Windows Media Player I am unsure. I am not always aware of what player I am playing media in. I just think my software app could sound better. As stated, I am simply using the multi-media player that links to winmm.dll and sending a filename to it to play it. It is possible that the effect is more apparent on Windows 2000 compared to Windows 98. Maybe I can avoid using winm ...Show All
Visual Studio Express Editions Internet Time Update
The internal clock of my PC is very slow. I need very high precission time in my PC while I am running some time sensitive VBE applications. Can the PC time, the one that Now gives out, be updated with an Internet Timer Server, through VBE I know how to do this manually by going in to Date and Time Properties. I need it programmatically. I guess it is just a matter of knowing the protocol these Time servers use. Thanks, Antonio You are right. I was looking for something in the range of 10ms. 1 micro second (0.001 ms) is amazing. I knew that GPS time is good, but not that good. I guess the algorithms to correct for atmospheric conditions are pretty good ...Show All
.NET Development Memory leaking on one machine, but not another... HELP!!?
HI I have a vb.net windows forms app (framework 1.1) It creates 4 user-controls on a window (which themselves contain a mixture of com and dotnet controls). It displays the user controls for a fixed amount of time, passing in image and video files to be displayed for fixed time-legths, then destroys them. Then it starts again. On my laptop, and 3 other machines I have at my disposal, the user-controls are disposed of properly, and memory is released, but on 2 machines, the memory is not released! It appears that Garbage collection is not working properly! This is running exactly the same binary .exe file on different machines, and all machines are running framework 1.1 sp1 on xp pro sp2. Can anyone give a reason why on one machine, the mem ...Show All
Visual C# How to copy a char[] array to a string?
Hi! anyone knows Is there a method or function in c# to copy to a char array to a string I want to implement it like this: // define somewhere; string str_A=""; char[] char_B = new char[16]; //value it in otherplace; char_B="fdfdfd"; str_A=char_B;//error thankyou! James Curran THANKYOU! actually, what I means is that when the string variable was defined and created. then in other place, it has to be assigned with chars array, it cann't be created again. anyway, thankyou! ...Show All
Visual C++ Visual C++ Bitmaps and Graphics
I would first like to appologise if this thread /question is in the wrong section I am working on an application that has a large bitmap / graphic imported onto it. This graphic is going to be the user interface. The graphic contains a small number of buttons which obviosly I cannot do anything with at the moment because they are part of the bitmap. Each button has a circle that is supposed to be an LED. So when the button is pushed the LED lights, and when it is pushed again the LED switches off. What I have decided to do is create a Panel for each of the areas where a button is meant to be; and have 2 graphics for each of the buttons: one with a dark green circle, the other with a light green circle. I will (hopefully) chang ...Show All
Game Technologies: DirectX, XNA, XACT, etc. making money on games
wen i talk to people in denmark and i tel them that i have maked game engine in c# thay say oo you rotated a model around xyz axis that cool but thay say that you can not make games with c# but it is the best tool dev let hope that all the minds in xna community coms together and make a aaa game engine me and kenneth have allso discuss that 3devolution game engine will be free and open source we are trying to find some kind of sponssor for the website and so on i have read that you can host it on codeplex but how do we control the asspect of making games example there is a team that have make a game with the engine and the game is good enof to be sold on windows and then a publicher says i like the game to sol ...Show All
Software Development for Windows Vista Using wimgapi.dll with VB6 - WimApplyImage causes VB6 IDE to freeze?
I'm writing some code to use the wim imaging api wimgapi.dll with VB6. The code works 100% on capture, with the callback function correctly getting progress information and updating my form with progress bar etc. This works fine when run from within the IDE or from the compiled .exe. The apply image code is a problem though - the WimApplyImage code locks up the IDE part way through. When run from the compiled exe, I get no progress messages to the callback - I do get all the process messages though, and it actually works in that it correctly applies the image, but it stops updating my form until it exits the WIMApplyImage function. Anyone have any ideas I've tried registering the callback both immediately before the WimApplyIma ...Show All
Visual Studio Method not found: Void Microsoft.Reporting.PreviewItemContext.SetPath
Hi all, I’m trying to use the ReportViewer control in an ASP.NET application but I’m getting the following error: Method not found: 'Void Microsoft.Reporting.PreviewItemContext.SetPath(System.String, System.String, Microsoft.Reporting.DefinitionSource, System.Reflection.Assembly)' I’m using a dataset as datasource and I’ve create a simple report that consumes it. Following the code in my web form: <rsweb:ReportViewer ID="rptViewer" runat="server" Font-Names="Verdana" Font-Size="8pt" Height="400px" Width="400px"> <LocalReport ReportPath="Report1.rdlc"> <DataSources> ...Show All
Smart Device Development register a dll
Hi, when I want to register the dump.dll register filter, I got this error dump.dll is not an executable file and no registration helper is registered for this file type. Any idea where it can come from Thanks Regards I tried both, with regsvr32 I have the error message that I described in my previous message, and when I used regsvrce with platformbuilder I have the following error : DllRegisterServer in dump failed, and the dump.dll is unloaded. Maybe I do it the wrong way Thanks for your help Best Regards ...Show All
