HopeDreamsComeTrue's Q&A profile
Windows Forms hex display
HI everyone, i have a value that i want to show in hex. I use : textbox1.Text = "0x"+value.ToString("x"); I get the results right, but if the value is 0x06, it only shows me 0x6, is there a format that i can use to get 0x06 Thank you Hi Mark, the method u described does not work, it keeps showing xx instead of 06 for example: someFunction() { int val =6; label.Text = val.ToString("x"); } shows the following: xx Thanks again ...Show All
Visual Studio 2008 (Pre-release) Could not load file or assembly 'service' or one of its dependencies. The system cannot find the file specified.
Hi All, I keep getting this error " Could not load file or assembly 'service' or one of its dependencies. The system cannot find the file specified." when i added this line of element in the web.config file of the service <userNameAuthentication userNamePasswordValidationMode ="Custom" customUserNamePasswordValidatorType ="ProgrammingIndigo.HelloService+MyCustomUserNameValidators, service "/> When put in http://localhost:1459/Server/service.svc in the browser i get the above error. I know the error is coming from customUserNamePasswordValidatorType ="ProgrammingIndigo.HelloService+MyCustomUserNameValidators, service " but i am not able to figure out what the problem is..i have no clue ...Show All
Microsoft ISV Community Center Forums Merry Christmas and Happy New Year
This is the forum I've maybe spend the most time in, although not so much recently but that can't be helped. To everyone who posts here often enough to know my name, and to anyone else to happens to read this... have a great Christmas and New Year... and even if you don't celebrate them I hope you enjoy the holidays. I am new here and have only posted a few posts, but I do know your names, Derek and ADG, :) because going through this forum is one of the first things I do everyday. Wish everybody have a merry Christmas and a happy New Year! ...Show All
SQL Server Unable to install SQL2005 I64 on a 2003 SP1 Itanium
Hello, I have many problem when I try to install SQL 2005 Ets edition ia64 on a 2003 ets Itanium edition. When I launch the setup, all is all right. But during the installation, it tryes to start MSSQL services. The staring of this service failed. So I try to start the service mannually. Nothing. Error messages I can get (in the event log) : Source : Service Control Manager ; ID : 7000 Description :Service SQL Server (MSSQLSERVER) failed to start due to the following error: The service did not respond to the start or control request in a timely fashion. Source : MsiInstaller ; ID 10005 Description : Product: Microsoft SQL Server 2005 (64 bits) -- Error 29503. Failure of the starting of service SQL Server. For more i ...Show All
Community Chat What language do you prefer?
Could someone please enlighten me as to what the advantages and disadvantages of the following languages are, in general: C# C++ Visual Basic Also: I read somewhere that C++ was much better for game programming than VB, but why VB is easier to learn and use, so what are the advantages of C++ Squire James wrote: Employers seem to make a big deal out of miniscule differences, treating people like vb and C# are different job skills and all. I've always thought this as well. VB and C# are extremely similar -- much closer to each other than C# is to C++. Personally, I prefer writing in C++. I like knowing what the machine is doing, and VB/C# don't provide that knowledge. And with the addition of C++/CLI, ...Show All
.NET Development Avoid serializing base class members
Hi, I have extended System.Windows.Form.Label control and I also implement one additional interface containing some properties. public class MyLabel: System.Windows.Form.Label, IMyInterface { //... } What will be the simplest way to serialize an instance of MyLabel class to include only IMyInterface members. I do not need to serialize any of base class (Label) members. Thank you. Hello, The XmlSerializer will treat the public members of the interface as if they are members of the derived type. In your derived type you will need to put the XmlIgnoreAttribute on all of the public members that you don't want serialized. Daniel Roth ...Show All
.NET Development problems sending the query LIKE @param to sql
I am sending this query from .net 2005 to sql express 2005: select URLItem FROM FetchedURLItem WHERE URLItem LIKE @parameter I want to get all the varchars that contain "msn.com". I am concating in the C# % (on the begining and the end of the parameter) so, I am sending as a parameter: %msn.co.il% . (after deleting the http://www. , the original string was: http://www.man.com ) I am getting null returned to the .net (the query is working fine at the SQL express) thanks URL = URL.Trim(); URL = URL.Replace( "http://www." , "" ); URL = '%' + URL + '%' ; URL = URL.Trim(); object obj = taSqalarQueries.AVGRe ...Show All
Software Development for Windows Vista Unexpected shutdowns of Vista Build 6000
OS Name MicrosoftR Windows Vista Ultimate Version 6.0.6000 Build 6000 Other OS Description Not Available OS Manufacturer Microsoft Corporation System Name XPS System Manufacturer Dell Inc. System Model Dell DXG061 System Type x64-based PC Processor Intel(R) Pentium(R) D CPU 3.20GHz, 3192 Mhz, 2 Core(s), 2 Logical Processor(s) BIOS Version/Date Dell Inc. 1.1.3, 7/31/2006 SMBIOS Version 2.3 Windows Directory C:\Windows System Directory C:\Windows\system32 Boot Device \Device\HarddiskVolume2 Locale United States Hardware Abstraction Layer Version = "6.0.6000.16386" User Name HOME\steve Time Zone Eastern Standard Time Total Physical Memory 2,044.92 MB Available Physical Memory 914.10 MB Total Virtual Memory 4.21 GB Available Virtual ...Show All
Windows Forms Clear both bound and unbound data in a datagridview
hi, How to clear both bound and unbound data in a datagridview I try to set the datasource as null, all data is cleared off, but the unbound data's columns are not being cleared. I want the datagridview to be totally empty/blank. Thank you in advance for the help. thanks for the answer, i managed to clear off the bound, but the unbound can't be cleared off. the datagridview contains both bound and unbound...the datagridview codes as follow: Dim mySelectQuery As String = "SELECT * FROM dbo.test" Dim myCommand As New SqlCommand(mySelectQuery, myConnection) Dim da As New SqlDataAdapter(myCommand) Dim ds As New DataSet(mySelectQuery) da.Fill(ds) Me.DataGridView2.DataSource ...Show All
Gadgets Sidebar gadget and IE interaction
I'm having this problem between the sidebar gadget and IE: For example when I log in on YouTube with IE it reminds me logged in but when I try to access YouTube from my sidebar gadget I'm not logged in any more. But if I debug the gadget on the IE it works. Does anyone know why is this happening and how to solve Simplified, what I want to do is log in on IE and use this "login" on my sidebar gadget. Is this possible This is part of the new security in Vista. To verify this, turn off IE7 "Protected Mode" and see if it work. It can only be avoided by turning protected mode off. Can someone please confirm this. Ty ...Show All
Visual Studio Team System Test Run configuration editor crashes if the solution contains biztalk 2006 projects
Hello all, I am not sure if this is exactly the right place to ask this, but I have not found anywhere better :) I have been trying to get code coverage to on some projects in my solution, but every time I open the test run configuration manager and select code coverage, the configuration manager disappears. This is easy to recreate if you have biztalk installed. Create a project, Create a test project in the same solution. Open the test run configuration file. select code coverage. At this point it displays fine. Close the configuration editor. Add a biztalk project. Open the test run configuration file. Select code coverage. The test run configuration fil ...Show All
.NET Development Detrmine if I can create Directories or files.
How do I find out if I have write access to a directory to create files and / or directories without actually writing/deleting anything. I started looking at ACL stuff but it's a bit daunting. I figured that somewhere in the bowels of .Net there is a 'IsWriteAccess()' call somewhere - just that I haven't been able to find it. Try Dim DI As New DirectoryInfo ( TheDirectoryPath ) Catch Sex As Security . SecurityException MessageBox . Show ( "You Do not have permission to read this directory" ) MessageBox . Show ( Sex . Action & " casued the exception" ) MessageBox . Show ( "Security Permission required: " & Sex . Demanded ) ...Show All
SQL Server Drillthrough returning sets of duplicate rows
Drillthrough appears to be showing multiple rows for each single record that should be displayed. For example, in my fact table, there is a single record for each trip. The following MDX query returns a single cell with a trip count of three. SELECT NON EMPTY { [CP Date].[Date by Month].[Year].&[2002] } ON COLUMNS , NON EMPTY { [Commodity].[Commodity by Type and Group].[Commodity Type].&[Other] } ON ROWS FROM [Barge Trip] WHERE ( [Measures].[Trip Count] ) 2002 Other 3 If I drill through on that cell, exactly three records should be returned. However, in actuality, 12 rows are returned - three sets each having four identical rows. To drill through, I am simply adding the D ...Show All
Smart Device Development How to Add icon to PPC task bar?
Hi, everybody! I have created a small window (16*16) as HHTaskBar child and put it on task bar. But how to make my window to change it position when other windows (clock, volume, battery etc. ) that belong to task bar appear or change their state Thanks for any help. Please refer to http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=223605&SiteID=1 ...Show All
.NET Development How do i keep Instance of current dataset???
I have a Datagrid.DataSource = mydataset.....when i add new rows to it and close out the form and then i try to open that form back up...the form is blank...why is that going with what the OP stated, well where is the dataset being obtained from in the first place you would need to save the existing contents in some way either by Xml or insert into the database, then retrieve it back. ...Show All
