ekkapop's Q&A profile
.NET Development Help request on How to draw a vertical upward string?
Assume that I have drawn two coordinate axes on the screen (X and Y). When I want to put axis captions on the screen it's OK with X-axis such that Graphics^ gObj = this->CreateGraphics(); String^ xAxis ="X-Axis"; // Make necessary arrangements here such as measure string and find the optimal screen position, etc. then draw the string gObj->DrawString(// put necessary parameters here); Then the result is "X-Axis". It is just fine. How can I do it for the y-axis When I choose text alignment vertical, the string containing "Y-Axis" is drawn like this : Y - A x i s (LOL!). How can I put a vertical upward string "Y-Axis" parallel with the vertical y-axis on the screen Rega ...Show All
Visual Studio Express Editions Breaking a long code line?
How can I break a long code line The correct code : Me.Text = "........................................................" _ & "................................" ...Show All
Silverlight (formerly WPF/E) find a bug of "getParent"
if i use getParent to get the parent of source object, it will be can't in safari. remove:function(s,e){ var _w=s.getParent.getParent.getParent.getParent; ui.get("desktops_windows").children.remove(_w); } and if I set a name to parent object at first, and get the parent of source object by it's name, it will be ok remove:function(s,e){ var wid=s.Name.split("_")[0]; var _o=ui.get(wid); ui.get("desktops_windows").children.remove(_o); } This bug is just in Safari. Does it work if you change the javascript to: var _w=s.getParent().getParent().getParent().getParent(); ...Show All
Windows Forms (vb) asp.net validation
I am writing a window form using (vb) asp.net, I have to validate two textboxes that when the user enter the passwords and both passwords are correct the form will display a welcome label; if the passwords are not correct; both textboxes will automatically clear and tell the user that the passwords did not match. I have the form working correct if the passwords match, but when the passwords don't match the textboxes will not clear; but it does display a error message saying that the passwords were incorrect and don't show the welcome label. I had also added a clear button; it works when the passwords are correct, but it will not work when the passwords are incorrect. Bellow is ...Show All
Visual Studio 2008 (Pre-release) Retrieving Username and Password from OperationContext with wsHttpBinding
Hi there, Does anyone know, if it is possible to retrieve username and password from the OperationContext in the service I have used the wsHttpBinding and in the OperationContext.Current instance, I cannot find the caller information again. There is a CallerIdentity in the OperationContext instance, but I need the password that is supplied by the client to the corresponding user. Any information/help will be greatly appreciated! Best Regards, L. Liu So I'm not completely sure why you need Adam's password once he's already been authenticated. Is there some other resource that the STS needs to access using Adam's credentials If so, then since the STS must have access to the correct password in order to authenticate h ...Show All
Visual Studio 2008 (Pre-release) Can't find function 'TaskDialogIndirect' in DLL 'comctl32.dll'
I am trying to use the CrossTechnology VistaBridge example and get the following error... Can't find function 'TaskDialogIndirect' in DLL 'comctl32.dll' I am on Windows XP sp2 with .NET 3.0 RC1 installed. You need to test the OS version to see if you're able to call TaskDialog. if (Environment.OSVersion.Version.Major < 6) { if (MessageBox.Show("Do you want to save your work ", App.Title, MessageBoxButton.YesNo) == MessageBoxResult.Yes) { Save(); return; } } else { TaskDialog td = new TaskDialog(); td.StartupLocation = TaskDialogStartupLocation.CenterOwner; td.Captio ...Show All
Windows Forms Excel Question - How can I convert a date?
I have a report that has a YRDATE format where YR=last two digits of the year the document was created and the DATE is the day number of that year. For example: 05115 which should be 04/25/2005. What would my function/ formula be to convert the 05115 to the correct common date You did I'm afraid. These forums are dedicated to Windows programming and not general PC/app troubleshooting or questions. Instead, I'd direct you to the Microsoft Newsgroups or even a dedicated Excel forum such as this one . ...Show All
Community Chat RFID
hi i guess the hottest technology in identification is the rfid library details for RFID.. www.privacyrights.org/ar/ RFID -ALA.htm www.more rfid .com/details.php subdetail=Report& action=details&report_id=1060 www. rfid 4u.com/ rfid _ implementation .asp www.epcglobalinc.org/what/cookbook wishing u best luck for ur proj. actually my frnd had seminar on RFID..so i know smwht ...Show All
SQL Server SQL Server 2005 SP1 Database services Failure
Hi, I was trying to upgrade SQL server 2005 to SP1, to be able to install Team Foundation Server. However, I get a failure at the Database Services part. It sends an error report to Microsoft. Any help would be very much appreciated... Here's the logging: http://www.invenso.com/Logs.zip And these are the basic errors: 01/25/2007 13:00:07.234 ================================================================================ 01/25/2007 13:00:07.250 Hotfix package launched 01/25/2007 13:00:08.437 Product discovery successfully completed during the install process for MSSQLSERVER 01/25/2007 13:00:08.437 SP Level check successfully completed during the install process for MSSQLSERVER 01/25/2007 13:00:08.453 Product language check successfully com ...Show All
Visual C# Making a Send To Shortcut
I have an c# VS 2005 winform that takes file list variables via Environment.CommandLine passed from a Send To link to my application. So I need to create a shortcut to my application in the user's Send To folder. I am able to build a MSI to install my application and create the shortcut in the User's Send To Menu location but when I right click from windows explorer I do not see the short cut as a Send To target. If I simply copy the shortcut to some other location such as User's Program Menu I see the shortcut as expected in Programs start menu location, which launches my application. How can I get my Send To shortcut to show up in windows explorer right click context menu I have other questions about the nature of the shortcut and why ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shader Newbie question - Jagged (sharp) edges
I'm working on a custom shader for a game and I'm really happy with the results except the edges of my object when drawn are jagged, and I was wondering about the best (preferred)way to antialias or smooth them out. Do I need to write a postprocessing shader or is there a way to do this in the vertex or pixel shader Thanks, Bill Hardware multisampling will generally give you much better performance than trying to fake this yourself by rendering to a texture and then manually shrinking it down. GPU's (and especially Xbox) have all sorts of crazy silicon dedicated to making multisampling fast. ...Show All
Visual FoxPro how do i change the desktop background?
Good day to all experts.... how could i change the desktop background programatically i would like that if a user change my desktop background...at the time I open my VFP application it automatically search my desired background and changed it. Thank you >why not incorporate this in our program . if we can ... Just because technically you (or VFP) can does not mean you should. As Andy told you, users do not welcome apps that change our user environment, themes, color sets, screen resolution or whatever else we set as personal Windows dektop environment. That's a choice for the user to make, not the developer of an app. I would not suffer long a program that changes my environment. It would be unistalled ...Show All
Visual Studio Express Editions Generating Excel workbook using VC++
I have a Windows Forms application written in VC++ (VC++ 2005 Express Edition). I would like to open an Excel workbook from the application and write out some tabular data. I am wondering what would be some good options for doing this. I would appreciate any help or pointers. (I do know that VC++ is not supported in VSTO, so that wouldn't be an option.) Thanks , Kumar ...Show All
.NET Development request help with DLL on database machine & thin Client application
Hello, Here is what I'm doing: 1. SQL Server 2005 database is created on machine using Transact-SQL (this includes dropping any previous files). This is created onto the Defaul instance (MSSQLSERVER). 2. a DLL (class library) is made in VB.NET using ADO.NET connection objects. The connection string looks like this: strConnection = "Data Source=.;Initial Catalog=" & dbName & ";Integrated Security=True" where "dbName" is "SQLdatabase1" 3. the Client application adds a Reference to this DLL and will run from the development machine. Here is the problem and the question: When I install the DLL onto the database machine, and I shut off the .MDF database on my developm ...Show All
Visual Studio Express Editions Another Problem
Hi, I was wondering if there is anyway to turn a huge amount of code into a simple function. Right now I have a bunch of check boxes and they are all named C1-C7 and W1-W7, instead of putting in code for each one when clicked, which results in a large amount of code, is there anyway I could make one function to handle all of these. I tried something like this. If C(num).checked=true then W(num).checked=false endif its just a basic example of what i want and i could really use this later on. Thanks I don't know if this is any shorter but it is more compact. I assume that you are toggleing between the two sets of check boxes. Private Sub c1_CheckedChanged(ByVal sender As ...Show All
