QWERTYtech's Q&A profile
Windows Forms Change minimize,maximize and close buttons
hi, it's there any way that i could change the look of the maximize, minimize and close buttons in the default windows form ..let's say the color , the style or shape or something like that (by the way, does these buttons have a special name ) The easy answer is to create your irregular shape form for example http://www.codeproject.com/csharp/formregion.asp http://www.codeproject.com/csharp/nonrectangularform.asp http://www.codeproject.com/csharp/irregularshapedform.asp http://www.thescarms.com/dotnet/IrregularForm.asp the hard one is to look at non client area drawing function api ...Show All
.NET Development SqlDataReader Update???
Can u use the SqlDataReader to update data in sql server using a stored proc by like if(dr.Read()) _Property = dr["value"].ToString() ...Show All
Visual Basic When I have thought vb8 is broken....
This is an example on encoding from help. Imports System Imports System.Text Imports Microsoft.VisualBasic Namespace Convert_Example Class MyConvertExampleClass Shared Sub Main() Dim unicodeString As String = "This string contains the unicode character Pi(" & ChrW(&H03A0) & ")" ' Create two different encodings. Dim ascii As Encoding = Encoding.ASCII Dim [unicode] As Encoding = Encoding.Unicode ...Show All
Visual C# How can I start a Windows Service from A Web Service?
Hi In my web application I got a webservice that start the windows service Using the ServiceController when I debug my projest and when I start my Win Service it runs with no errors using the ASP.NET Development Server, as soon as I put my Web Application to wwwroot folder for IIS when I start the Win Service I get the following error, Im using the same PC. System.InvalidOperationException: Cannot open iBaseService service on computer '.'. ---> System.ComponentModel.Win32Exception: Access is denied --- End of inner exception stack trace --- at System.ServiceProcess.ServiceController.GetServiceHandle(Int32 desiredAccess) at System.ServiceProcess.ServiceController.Start(String[] args) at System.ServiceProcess.ServiceController.Start ...Show All
Visual Studio 2008 (Pre-release) WSSF upgrade path to DLinq
Hi All, We shall not be able to use DLinq in our project as we are getting into construction phase of the project in couple of weeks. However, we would like to keep the options open for an upgrade path to DLinq. I read somewhere that the WSSF generated DAL provides the best upgrade path to use DLinq in the future. However, nothing has been mentioned specifically in detail. It would really help a lot if someone could explain in detail what care needs to be taken to provide least painful upgrade path to DLinq. I specifically have the following questions: What care needs to be taken to ensure that domain model classes would not have to be changed (or changed minimally) when incorporating changes for DLinq What is th ...Show All
SQL Server Can I change a SQL Server Everywhere database's password?
Hi, I'm using the SQL Server Everywhere CTP on the desktop and haven't used SQL Server Mobile in the past. I'm having some difficulty determining whether it's possible to change a SQL Server Everywhere database's password. Obviously authentication on a file-based SQL Server Everywhere database differs from that of server-based SQL Server database. Is it possible to change a SQL Server Everywhere database's password That said, I feel like I've made a decent search of the to change a SQL Server Everywhere books online. If it's not possible to change the password in place (i.e., without copying all data to a new file with a different password), please count this as a vote to add that functionality. Making a database password "perma ...Show All
.NET Development HttpWebRequest upload zip file problem!
hi, I think we are on the same boat. I can send the file but dont know what to handle the report sent later by the ITS. It comes as stream (zipped file). I am using windows forms and C# .... and need help to decompress the stream and retrieve individual files. Can you help me on this Thanks Looks like a misplaced post. FWIW, SharpZipLib is the oft quoted freeware solution to handling .zip archives in .NET. ...Show All
Visual Studio Express Editions Get User Full Name
I am banging my head against the wall... I am a LONGTIME VBA Coder... and one package that I use to get the Users Full Name is: Private Type USER_INFO_2 usri2_name As Long usri2_password As Long ' Null, only settable usri2_password_age As Long usri2_priv As Long usri2_home_dir As Long usri2_comment As Long usri2_flags As Long usri2_script_path As Long usri2_auth_flags As Long usri2_full_name As Long usri2_usr_comment As Long usri2_parms As Long usri2_workstations As Long usri2_last_logon As Long usri2_last_logoff As Long usri2_acct_expires As Long usri2_max_storage As Long usri2_units_per_week As Long usri2_logon_hours As Long usri2_bad_pw_count As Long usri2_num_logons As Long usri2_logon_ ...Show All
Software Development for Windows Vista Question About SideShow Gadget
Hi Is here right place to question about SideShow Gadget Does anyone know where is the place to question about SideShow Gadget programming Hi, I'm looking for the same thing :) Normally, MSDN won't spawn a new forum category until there are enough people talking about it, so we might have to be one of the first. What kinds of questions do you have I'm a SideShow newbie, but maybe I can help. Thanks! Eric. ...Show All
Visual Basic Scrollable ... Won't
I have a form of 338 x 815 pixels with the following properties set: AutoScroll True AutoScroll MinSize 338,815 ControlBox False (as well as its components) FormBorderStyle None MaximumSize 360,900 MinimumSize 350,596 (maximum it will accept) Size 350,604 (maximum it will accept) (I think these are all the important ones) The code is: <code> Sub Print_Form() ' Hide the buttons btnPrint.Visible = False btnQuit.Visible = False ' Set the PrintAction to display a Print Preview dialog 'PrintForm.PrintAction = Printing.PrintAction.PrintToPreview PrintForm.PrintAction = Printing.PrintAction.PrintToPrinter ' Print a copy of the form PrintForm.Print ...Show All
Game Technologies: DirectX, XNA, XACT, etc. By the numbers - why so big?
My content, using JPG's, is roughly 14.4 MB. However, the XNB version is roughly 515 MB. About 38 times bigger than the original. Is this normal What steps do I need to take to reduce the size of this I'm just begining with my development but if I can't augment this behavior of the Framework I'll have to serverly strip down my game. Maybe, I'll have to replace Content<T> altogether ( ) I found this link which goes over the specific format for textures in XNA, which should be helpful in figuring out how to make the most out of your pixels for the least amount of memory =) http://msdn2.microsoft.com/en-us/library/microsoft.xna.framework.graphics.surfaceformat.aspx ...Show All
Windows Forms windowsMe hangs up while rebooting
Everytime I reboot my system when it got stuck up I couldnt get the windows running. Can you help me Windows ME As in Windows Millinium Edition Its a pretty confirmed fact that no one should be using that OS. Other than that I have nothing more to add. ...Show All
Visual C# Not able to find references in GAc in the reference window of VS IDE
I have a problem which I need the help you guys figure out. I have to create a dll and deploy the same in GAC. And I need to add reference to that dll I deployed using the addreference window of the VS.net IDE in other projects, but even after I successfully installed the assembly I am not able to see in the refernce list of VS.net IDE. Let me explain the steps I done 1. Created an SN Key . sn -k "c:\Keys\ver1.snk" 2. Create a dll, and in the assemblyinfo.cs, I have given [assembly: AssemblyKeyFile("c:\Keys\ver1.snk")] 3. Deployed the assembly using gacutil -i <Mylocalpath of assembly> . I checked for this assebly name in c:\windows\assembly, its present there, so the deployment is successful 4. o ...Show All
Smart Device Development Check Directory Exists on the Device
Hi Guys, I know its a simpe question for you guys but not for me. How can i check whether a directory exists on a device. so that if a directory does n't exists on the device, then I will create a directory for the user programatically. I can't find any such function in RAPI. Thanks for all your help. Cheers Chandra Hi Tihomir, Thanks for your reply. I am bit stupid as I wrote the code you specified in the class library for the desktop project not for the smart device project and it was quite rightly checking for the existence of the file on the hard disk of my PC. Then I created a new project for Smart device project and wrote the above code if(System.IO.Directory.Exists("M ...Show All
Visual Studio 2008 (Pre-release) PageFunction Base Class
Hello, Recently, I put together a quick prototype for a wizard (with your help). Now I'm looking at it and it feels like that I copy pasted a lot of code. So now, I would like to create a class hierarchy for my wizard pages (developed using page functions). But whatever I try I get a compiler error :( Is it possible to have a concrete pure PageFunction class to act the base class for several other page functions. Something like this: Public Class BaseWizardPageFunction : System.Windows.Navigation.PageFunction<String> { public virtual void Method1(){...} } Then have a partial page function with accompanying XAML code such as: Public Partial Class WizardStartPage : BaseWizardPageFunction { .... } <PageFunction xm ...Show All
