nikos_22's Q&A profile
Visual Basic How to make labels transparent
Using the transparent color for label backgrounds do not work. Any ideas Can you do it with textboxes Thanks. I've discovered that you can load an image inside a label and have the text imprinted over it. It's as good as you'll get without any borders around the text - and for once, the label's background is truly transparent. ...Show All
Windows Forms DataGridView CurrentCell jumps to wrong row
Hi I have a datagridview (unbound) in my application which is used to display information about a certain part. The datagridviewcell containts the following columns: PartNo Family Description Quantity Price Total Price. The datagridview has allowuserstoaddrows set tot true. Only the PartNo and Quantity columns are editable. As soon as the customer has filled in a partno the application fills the other cells with the data of the partno (this is happening in the endedit event). When the cells are filled the currentcell should jump to Quantity. This is where the problem occurs. The datagridview jumps to the right column but in the empty row at the end of te datagridview. There is no problem with loops or anything ...Show All
Visual Studio Team System Install VSTS with data tier on a Cluster SQL Server
hi .. I was wondering if someone can send me a link for installing VSTS in a dual server mode. where data tier resides on a clustered SQL Server instance. I am not having any luck with finding such a doc on msdn. thanks Hi TFS only supports very specific clustering configurations, you first must follow the instructions here for setup the failover cluster SQL http://msdn2.microsoft.com/en-us/library/ms179530.aspx and then checkout this document for instructions about installing TFS in the cluster: http://msdn2.microsoft.com/en-us/library/ms252505.aspx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Camera translation in a 2D environment
I'm trying to build a platformer, but I can't figure out how to do camera translation in the 2D space. I'm using sprites for the environment and characters... How would I achieve camera movement in this situation I've tried messing around with the BasicEffect class (since I read on the forum that that's where you should move the camera), but to no avail. Thanks in advance. I've just written a camera class that now gives me the flexibilty to pass an object to it and the camera will follow it. I did it to test out my sprite class, if you would like to have a look at the project, I could send it to you, or I can stick it on my website and post a link if other would like a laugh All I do now is do a ...Show All
Visual Studio Team System Build with tests fails with no indication of where
I have setup two builds on my TFS project - one to run when code is checked in that only verifies that the code will build, and one to be run automatically that will run our tests. The first build appears to work correctly, but when I run the second (from my VS) it fails. When I look at the BuildLog.txt file, I can't see any failures, and the build results in VS show red "X"s next to the "Running tests" and "Running tests for Any CPU/Debug" entries. I have looked at this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=673795&SiteID=1 and based on that tried installing VS Test edition on the build machine, with no change in the results. I am running Team Suite on my machine. Can anyone ...Show All
SQL Server collation error for patindex (sql 2000)
Hi, what do I do with this error please: Server: Msg 446, Level 16, State 9, Line 3 Cannot resolve collation conflict for patindex operation Here is the script in question. use mosaikDB737 exec sp_MSforeachDB ' use [ ] insert into mosaikDB737.dbo.SearchOutput2 select sk.loginname as searchedTxt, object_name(id) AS ProcName ,Len(SubString(o.text,1, PatIndex(''%'' + ltrim(rtrim(sk.loginname))+ ''%'', o.text)))-Len(Replace(SubString(o.text,1, PatIndex (''%'' + ltrim(rtrim(sk.loginname)) + ''%'', o.text)),char(13),''''))+1 AS Line, PatIndex(''%'' + ltrim(rtrim(sk.loginname)) + ''%'', o.text) AS Position, ''[ ]'' as dbName from syscomments as o inner join mosaikDB737.dbo.loginListInput as sk on o.text like ''%'' + ltrim(rtrim( ...Show All
Visual C# How to Iterate through List or IList
i can add the values to the IList or List, if I need to get these values in the way they went it...Say I added 5 addresses to the list and I want them one by one... I can use foreach and get all, but I need a way to only get one at a time or two at the max as I need to update some textboxes... if(something[0]) // Cannot implicitly convert type 'object' to 'bool'. An explicit conversion exists (are you missing a cast ) This is correct; something[0] is not a bool. So, why are you treating it like one What are you actually trying to test in that if() if (something[0] != null) if (something[0].IsValid) ...Show All
.NET Development DISPLAYING TABLES OF AN ACCESS DATABASE THROUGH C#
Hi everyone I am trying to display all the tables in a MS access database through a application im developing in c#. However im receiving errors. Here is part of my code. This method executes a SQL query and returns a OdbcDataReader object. private OdbcDataReader GetQueryReader( string query) { OdbcDataReader reader = null ; OdbcCommand command = new OdbcCommand(query, serverConnection); Open(); try { reader = command.ExecuteReader(); } catch (NullReferenceException e) { Utility.CheckTool.ShowMsg("Error in getting the reader, null exception error" ); reader.Close(); } catch (OdbcException e) { Utility.CheckTool.ShowMsg("Error in getting the ...Show All
Visual Basic Reading Lines
How would you read lines from a textbox The textbox has a Lines property that returns an array of strings, each string corresponding to the current line... For Each str As String In TextBox1.Lines ' Do whatever you want with the line... End If Best regards, Johan Stenberg ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creator's club payment problem
Hello, I have a problem with adding my credit card as a payment option I guess it's because I live in country that's unsuported by XBox. I've heard that I can call to support so they can add my card themself I tried that but after talking with the bot I am being disconnected. 3 tries cost to me about $10 :(. Then I've tried to write e-mail to XBox360 support but they told me that I need to call in support... So the question... Is there some way to become Creator's Club member by living in unsuported country Somewhere I saw that I can... But how Thanks Hi Yip, edit your live account location to a country that is supported (UK) and go to any UK based website, go to the contact information and get the postal code as y ...Show All
Visual C++ Handle troubleshooting
hi there i have one little question about handle how to get a handle (i mean the m_hWnd) from existing class(object) is the append a right fuction and another where can I get some information about handling in mfc 'cos i am a little bit confused about this thanks in advance adrian proszczuk, poland ...Show All
Software Development for Windows Vista Main Instructions in Aero Wizards
How can I specify the main instructions on an Aero style wizard. I mean the larger caption in every page, like the "Choose people on your network to share with" in the file sharing wizard. As I saw, this is not a part of the dialog template. ...Show All
Visual Studio 2008 (Pre-release) How to change ListBoxItem DataTemplate based on ListBox state
Basically what I want is to use different DataTemplates for items in a ListBox based on simple states of the ListBox, like SelectedItem, Enabled/Disabled ListBox, etc... - i.e., I would be defining the following types of DataTemplates: SelectedItemDataTemplate, EnabledItemDataTemplate, DisabledItemDataTemplate. Is there an easier way than using a DataTemplate Selector The problem with using a DataTemplateSelector is that it seems DataTemplateSelectors are used for applying different DataTemplates based on values of the ListBoxItem, not different states of the ListBox control itself - note that SelectedItem is a state of the ListBox control, not the ListBoxItem. To complicate matters, the ListBox control has been abstracted into a Us ...Show All
.NET Development Installing .. advpack.dll
Not sure if this is where to put this question but I can't find anything else on these forums (shrug ). I'm trying to install the 2.0 redistribution package and get an error with c:\windows\system32\advpack.dll when trying to install. Any suggestions The reason I'm looking to install it is because I have an application that requires it. Maybe I actually need something different Ugh. lol Please help, RobF did what u told me i ran: "netfx64.exe/c" as an argument to the 'install' file, I get the install.exe is not a valid Win32 application. Can you help me ...Show All
Smart Device Development Compact Framework 2.0 & FTP
Is there a way to transfer files from a Pocket PC (Windows Mobile 5.0) to an FTP server I thought FTP functionality was available in system.net.webclient (I read this from another post), but I don't seem to have a webclient class (Compact Framework 2.0). Any help would be much appreciated. I had the same problem : "Not supported Exception". Here, it's the solution to connect on a FTP server from Windows Mobile 5.0 using OpenNETCF: (C#) using OpenNETCF.Net.Ftp; using System.Net; private static FtpWebRequest request; private static Stream ftpRequestStream; private static void Connect() { FtpRequestCreator creator = new FtpRequestCreator (); ...Show All
