Steve Whitley's Q&A profile
Windows Forms Hide image margin on menu
I cannot see how to hide the image strip on the menus. If I wanted to go to the effort of creating an image for each menu item, it would be just awesome, but otherwise it just makes the menu look incomplete. The only reference I found to disabling it relates to the ToolStripDropDownMenu, but it appears that this class is not used by the VS designer. I find it hard to believe it can't be disabled via the designer, but I just can't find it. Perhaps there is a simple way to do it that has escaped by notice (and help/internet searches) Matt Andrew, thanks for the response, but I believe that is only valid for a context (pop-up) menu. I am creating a main menu. The designer creates a MenuStrip which i ...Show All
Visual Studio 2008 (Pre-release) MSMQ Access Issue
I am trying to access a private queue through WCF from a windows service. If i make the windows service run under the context of my domain user account, WCF is able to access the queue, however if i make it run under local system/ Network Service WCF is unable to access the MSMQ. I tried giving full access to everyone and also to network service. Can anyone help Thanks for ur time I am having the same problem, when I try to open the queue for sending when running as local system I get an "access is denied" error. This is the only exception I am seeing. "EVERYONE" user does have send access. ...Show All
Gadgets addImageObject image shifts when you change its size
In the following example, the image shifts down and right - as if it's being scaled from the bottom right corner. I used an image 1024x768 pixels in size. gadget.html element: <g:background id="bodyBackground" src="blank.png" style="width:100%; height:100%;" /> code to add the image: bodyImage = bodyBackground.addImageObject("test.jpg", 0, 0); The image is now situated at 0,0. But, if you then change the width/height: bodyImage.width=300; bodyImage.height=300; The image is now situated at around 400, 400 - not 0, 0 as it should be. EDIT: How to work around this problem: The problem The image is offset by half the difference between the original image width/height and the scaled image width/height. So we need to get the or ...Show All
SQL Server One to Many Cube Relationship
Hello everyone, I'm new to the cube environment and I would appreciate some guidance. My data structure has 2 fact tables, account and household, where one household can have one or many accounts. Each fact table has 3 or 4 dimensions attached. I need to create a cube that contains information from both cubes. For example, a count of households, a count of accounts, a total balance of households, and a total balance of accounts. I tried using linked measures and dimensions but they don't seem to be behaving the way I'd like. When I slice the data by an account related dimension, the account balance and count is correct, but the household balance and count is the same for all cells, and visa versa. How can I get this running correctly ...Show All
Visual Studio Team System Error TF84011: Could not connet to team project
I am having problems accessing certain files in the documents folder when I'm connected to Team Foundation Server from workstation. I get the above error when trying to open the issue.xls file. I get an error when attemtp to open any .mpp file about the version of the .mpp file is not the right version. I still cannot access the work item database (mentioned in a separate thread). None of the problems above exists when I log on to the server where Team Foundation server is installed. Can you help Maggie, Sorry to hear about the problems you are running into. Is the excel file connected to a query or is it a regular excel file Please try opening it directly from the team project portal inst ...Show All
.NET Development C# Regex Replace help needed
Hi, I have some code that reads a line from a text file and, using regular expression only returns words that are in caps: string sExpression = @"(\b[^\Wa-z0-9_]+\b)"; MatchCollection mc = Regex.Matches(sr.ReadLine(), sExpression); I'm not very good with regular expression and I wan't to know if there is a way I can not only get back all words that are in caps but also all occurences of the word Space. I.e. my line that has been read from the file would be something like: LButton O N L Y Space T I M E Space W I L L Space T E L L ShiftKey LShiftKey D1 LButton LButton LButton And I want to get back, by hopefulyl eventually replacing the word Space with " ": ONLY TIME WILL TELL Hope ...Show All
SQL Server can I use * to specify 'Output Column' for OLD DB Source Editor?
I am working on a situation similar to 'Get all from Table A that isn't in Table B' http://www.sqlis.com/default.aspx 311 I noticed that if one column's name of source table changes,(say Year to Year2) I have to modify all 'data flow transformations' in the task. I am new to SSIS. thanks! -ZZ Thanks Jamie for your time to answer my question! I am new to SSIS, and have not used variable, expression, and sricpt much. I am open-mind, and believe there is a way (simple or difficult), to solve my issue. Maybe you are right, but here I am searching 'how-to' solution, like ( select * from MyTable). Should I use * it is another question. Thanks again! -ZZhang ...Show All
Visual FoxPro how to open a url from a command button on a form???
A real basic question for everyone... Can anybody please tell me how to open a url from a command button on a form. declare integer ShellExecute in shell32.dll ; int owner,; string verb,; string command,; string params,; string working,; int shwnd ShellExecute(0,"open","your url here",0,0,1) ...Show All
Windows Forms Visual cue between groupings in DataGridView
I want to give a visual cue to distinguish groups of rows with the same CompanyID in a DataGridView. Is it possible to insert a separator on a break in CompanyID Or would alternating background color be better/easier What is the best way to achieve Thanks. Thanks Ken for posting that code. I haven't had a chance to try it yet due to a higher priority project. Hope to get some time soon. ...Show All
SQL Server Report Designer Question
How to Add the Report Designer in my Application ...Show All
Visual Studio Express Editions OLEDB and datagrid
Hi, I created a simple database using Microsoft Access and I try to display the data using datagrid. However, there is an error occured if I update the change in the datagrid (update,delete and add) since there is o primary key for the column. But I have added AddWithKey to the MissingSchemaAction. [code] dim da As OleDbDataAdapter Dim db As OleDbCommandBuilder = New OleDbCommandBuilder(da) Dim dsChanges As DataSet da.MissingSchemaAction = MissingSchemaAction.AddWithKey If ds.HasChanges(DataRowState.Modified) Then dsChanges = ds.GetChanges(DataRowState.Modified) &n ...Show All
Smart Device Development Building a socket connection - help needed
Hello, I'm doing some research on a new project and got a bit stuck. Basically I'm trying to get a data connection from a mobile phone to a pc. The connection should be wireless and has to be instantiated by a call. So I want to create the connection by calling the pc. I'm a bit lost here, because I don't know where to search. The mobile and the pc should both be able to send and receive data. A socket connection would also be great, but how do I do that Even just some links to read a little bit about that thing would help a lot. Thanks! Hello Webstar, Would you please tell me in details on what here wireless means Wireless can be Bluetooth, WIFI, GPRS, Infrared, and etc. Furthermore, could you let ...Show All
Windows Forms Leave and LostFocus events
Does anyone know the difference between the textbox.leave and textbox.lostfocus events. thanks tattoo Thanks Prasant, can you direct me to a listing somewhere that outlines the sequence of the different events Thanks tattoo ...Show All
Windows Forms How to design Stylish window in C#
Dear all I've one issue which is difficult to me. I want to present my GUI as a stylish GUI. I mean. button with curved edges,drop down with curved edges, Groupbox with curved edges. I think most of us would have worked with WINAMP (Mp3 player). In WINAMP itself ou can do whatever you want. i mean you can resize, you can attach and detach window and more And you can set skins also for your winamp. But these all things i've to be done with use of basic controls which is availale as default tools in dotnet window application. Can anyone help me to fix this issue This is very must for my project. Please help me Guys/Girls. Dear Mr.Ken Tucker Thanks for your reply. I'm very happy to seen ...Show All
Visual C# Is it possible to invoke a generic static class mthod through reflection.
Hi all, I have the following scenario. I have a generic static class. Is there a way for me to invoke something like that using reflection. For example. I have a static class with a method. MyClass<T>.Show() The item being shown depends on T. Can I invoke such a method using reflection I have the string (MyClass<MyType>) given to me, but I cannot create an instance of that using reflection (since MyClass is a static class). Any help is appreciated. Thanks ahead. David Addendum: To get a generic type when you've only got the string type name, you need to use the backtick operator in the string passed to GetType. In the above code, you'd use: Type type ...Show All
