Bartosz's Q&A profile
Smart Device Development Round Text Boxes using C#
Hi, I'm devoloping a windows application which consists of Rounded Textboxes(The textBox edges be in the ovalshape) and the form backcolour is white.Can any one please post me the code for this solution . Thaks in Advance Regards Indusekhar.Velagapudi Software Engineer. Hi, Thanks for ur reply.The edges seems to be eaten away becoz the form bakground color is white.The edges are not clear for this. In the Code Project he has drawn 2 arcs and 2 lines which constitues of a textbox.Except on the white background the round textbox look is gud.It would be greatful if u could suggest an alternate solution. Thanks & Regards, I ...Show All
SQL Server challenging likes wildcard
Hi all, I need to search the field containing the word I enter, but this word is bracketed by " {{ " and " }} ". For example, I would like to search the keyword apple , I need to search by the following sql statement. select name from table where name likes '%{{apple}}%' But the case is that that column may contain some space between the bracket and the keyword. i.e. {{ apple }} . How can I write a sql statement to search name from the keyword Thanks Spencer Thanks Rod, But this query will search the keyword ap ple , a pple , app le etc. This is the challenge for me. Spencer ...Show All
Windows Forms Grouping
Has anyone had any luck creating a control that is derived from the DataGridView that implements grouping This control is a major letdown without it. What specifically do you mean by grouping Have you check out the TreeGridView sample that I built on top of the DataGridView http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=194921&SiteID=1 -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SpriteBatch Source Rectangle
I am drawing my sprites using a single texture and cutting them with the sourcerect feature, however, this causes my screen to flicker if I move the sprites using a float number with decimals, because they have to be converted to (int). My question is: Is it possible to draw(even if having to code a new batch class) using a different struct other than Rectangle that uses floats instead of ints You might be interested in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1069598&SiteID=1 ...Show All
Windows Forms datagridview: show a value instead of the one in the db
hello wolrd, how can i show a value in the datagrid instead of a value in the db eg. show "stopped" instead of "0" cipcip wrote: of course int mean integer!!! i have this in the database: "1" and have to display this: "started" Ok like i earlyer wrote, make a table like this For examplePurpose we cal it RefStatus Field type Statusid Integer Description Varchar 20 Then make queary/view like this SELECT * , RefStatus.description FROM YourTable INNER JOIN RefStatus ON YourTable.StatusId = RefStatus.statusId Now use the query/view in stead of the table Remco ...Show All
SharePoint Products and Technologies Sharepoint 2003 profile import hangs
Fixed ...Show All
Visual Studio 2008 (Pre-release) UserName authentication
Hi, I'm trying the sample about 'username authentication'. I have not changed the sources of sample. I receive this error : "An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail." InnerException : "At least one security token in the message could not be validated." Server stack trace: at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Security.S ...Show All
SharePoint Products and Technologies "SPSearch" error when provisioning WSS Search Service
Using the wizard in Central Administration, filling in the fields and clicking the "Start" button I get the error page with one line: " SPSearch (<here listed the username for Search Service Account>)". If I try to perform the same step via command-line, stsadm.exe return the following: " 'start' action failed. Additional information: SPSearch (<accont name here>)". The database is not created. The account I used is full local administrator. I use SQL Server Express Edition with Advanced Services Service Pack 2 (also tried Service Pack 1). All accounts are local ones as the machine is in workgroup. OS is Windows Server 2003 with Service Pack 1. WSS and .NET Framework 3.0 are the RTM versions. WS ...Show All
Smart Device Development C# Device Applications Serial Port
HelloI am trying to link a Windows application with a device application. Windows divice applications have a serial control so I though I could link them together using a virtual comm port. I created a port object in the device application and sent data to COM1. This data did not appear in the port monitoring program that I am using.This leads me to think that this idea is not going to work.If I have a PDA actively syncd' to visual studio is there a way I can send data to the application running on the PDA Thanks This port is not specific to PDA's but there are a lot of hardware decices which can be connected to your PC or PDA on some virtual COM port. Once its found on some COM port that can be interfaced ...Show All
Smart Device Development Socket.BeginRecieve Mystery
Hi, I am working with the sample code for Asynchronous Clients: Asynchronous Server Socket Example My Server platform is WinCE 5.0 CF2. When I connect the first time and pass a string. It works as expected. When I connect again with a second instance, The Socket.BeginRecieve call gets made, but the actual Call back never occurs. So, I see a connection occur, but a second socket and thread do not appear to get fired off. I see Waiting for connection.... Over and over again.... This appears to be a bug. Near identical code worked fine on CF1.1 DGMQS Also, New data. This works fine on XP, but not on CF 2.0. Here is the code. class Program { // Thread signal. public static ManualResetEven ...Show All
Windows Forms How can i get the current string width in textbox of C#
Hi, i am wondering if i can get the current font size (including height and width) or string width in textbox of C# Or how to make the form or the textbox resizable based on the input text string length I checked the functions, which only include this.Font.GetHeight. There is no functions related to width. Thanks in advance. I was using Graphics.MeasureString and it was adding legnth, and also not adding enough in some cases. That option really wasn't usable to me. But thatnks to the comment suggesting TextRender.MeasureText I have fixed my issue, as it works perfectly. Thanks Heaps. ...Show All
Windows Forms how to move items from listbox to another listbox?
I have 2 listboxs in webform is it possible let items transfer on each listbox and save final result to database for example: listbox1 have 2 items : Joan and ViVi listbox2 have 1 item : Kevin if I choose Joan from listbox1 and click bottn Joan will disapper from listbox1 and appear on listbox2 so that I have this result after click bottn listbox1 have 1 item: ViVi listbox2 have 2 item : Kevin and Joan ======================================= also I would like to know could I do a mutiple select and remove all items to another listbox at one time when I select Joan and ViVi from listbox1 and then click bottn , Joan and Vivi will be added to listbox2 and remove from listbox1 . I want the result to be l ...Show All
SQL Server Hierarchy Equivalent of a Crossjoin
I want to pull back a cellset with two levels of a hierarchy on the same dimension. Using AdventureWorks as an example, let's say I want "Account Level 01" and "Account Level 02" both on the rows dimesion. When I send MDX like this: SELECT {[Account].[Accounts].[Account Level 01].Members * [Account].[Accounts].[Account Level 02].Members} DIMENSION PROPERTIES MEMBER_TYPE ON AXIS(0) FROM [Adventure Works] I get this error message: The Accounts hierarchy is used more than once in the Crossjoin function. What MDX would I need in this situation I've tried spying on the MDX generated by BIDs, but it uses so many temporary SETs that it's nearly impossible to follow. Thanks for any help, Ter ...Show All
Visual FoxPro Urgent please: how to filter, copy and paste rows with Excel?
I have this Macro that really does exactly what I need, but I don't know how to convert it in my VFP program using DOM. I want to filter the rows with "*" in my column "D" and then copy and paste the rows to ANOTHER workbook. Here is the Macro: Range("A1").Select Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select Selection.AutoFilter Field:=4, Criteria1:="~*" Selection.EntireColumn.Hidden = False Selection.Copy Workbooks.Add Template:= "c:\templates\mytemplate.xlt" Windows("MyExcelWorkbook").Activate ActiveSheet.Paste thank you in advance! Karl Macros do not always record the best one. You ca ...Show All
Visual Basic checking radio buttons in group box
how do i check what is checked in a group box control containing radio buttons i tried something like for each control as radioButton in groupBox ' if control is checked if control.checked then ' to see which is checked select case control.name case ... ... end select case end if loop but it didn't really work, how should i do it for each control as radioButton in groupBox.controls ...Show All
