srj115's Q&A profile
Windows Forms How to resize controls on my windows form with changing form size
Hi, In my windows form I have a tab control with a few tab pages. Each tab page has some user controls and some .net controls such as datagrid, labels e.t.c When I resize the windows forms the controls dont change their size and position. So if I reduce the size of window it hides half of the controls on my application. How do I make my application or controls such that they relocate and resize themselves when size of the window changes. Thanks, You have to DOCK them on your form to top, bottom, or center depending on ur requirement. ...Show All
SQL Server problem on grant permission to user
I have two kinds of functions in the database that need to grant exec permission to user appUser. The first kind of function return ordinary datatype, let's call it funcReturnDataType here. The second kind of function return table datatype, let's call it funcReturnTable When I issued the folloing command to appUser, no problem. grant exec on funcReturnDataType to appUser However when I issued: grant exec on funcReturnTable to appUser I got the following error message: Server: Msg 4606, Level 16, State 1, Line 1 Granted or revoked privilege EXECUTE is not compatible with object. Any suggestions to resolve this prob ...Show All
Visual Studio Express Editions Is it possible to shell an application seamlessly?
I need to be able to run an application such as notepad or calc in the same way that I can start a browser inside my VB app ie. make the spawned program appear to be just another window in my program. Has anyone done this before This isn't what's happening. The Webrowser control has been supplied as a wrapper for the Active-X webbrowser and you are using that. There are no such analogs for the utilties you mentioned. ...Show All
Visual C++ How can I test if a gcroot<String^> has a String assigned to?
There must be a way to test if my "gcroot<String^> m_aString" has been a real String assigned to (by executing "m_aString = gcnew String(L"")"), but I cannot find it. The compiler accepts my setting the variable to nilptr (m_aString=nilptr) but wouldn't allow asking "m_aString == nilptr". I tried countless other ways, but to no avail. Can anybody tell me how to do it -- Manfred Thanks, this works fine. But it's not quite clear to me that "!string" is equivalent to "nullptr == static_cast<String^>(string)", can you give me a hint that might enlighten me in this -- Manfred ...Show All
Visual C# parameter descriptions/attributes
Does anyone know the attribute to assign a description for a parameter of a function or method Example: int x = 0; x. intellisense pops up with the description of the x.Parse or whichever method selected, i got that, how to do the same for the parameters of the function or method Example: x.Parse( intellisense pops up with a description of the parameters, in this case: s: a string containing a number to convert The description information obtained from Intellisense comes from the XML documentation that you apply to your code. The <summary> tag gives a summary of the member and the <param ...Show All
Visual C# How to search string in a file?
Hi, I would like to know how to search string from a file. If my filename is "a.txt" and my search string is "abc", how can I do a search for this string If this string return true, I will take some action. Please advise. Thanks hi read the file and store in a variable then search the specified text u want ...Show All
Smart Device Development ngen on CF
can we use ngen by any way in CF APPs Hi, No NGEN is not supported for the CF. The reason for this is size. The JIT Compiler produces native code that is larger than the managed code. Having both on your device would take up too much space. Regards, Vikram ...Show All
Visual Studio Team System Type definitions overwritten every night
A small problem has come to light. I successfully exported and modified the Task.xml and Bug.xml type definitions. I then imported the changed template successfully. Subsequent changes to the templates were made and imported via witimport.exe. Any changes I made were reflected in any new bug or task added to the test project. We already had an existing project up and running, setup with the original basic MSFAgile template. When it came to use the new templates everything went well. Import was successful, no errors, and test work items could be created and pushed through the new process. However (there's always at least one "however") a p ...Show All
Smart Device Development .Net CF Getfiles IOException
Hi, i've a problem with my VB.NET application and GetFiles() function. I try to run my application on Emulator. I've shared a folder in my Desktop simulating a Storage Card and i try to access files on it but GetFiles() function return IOException error... Any suggestion to solve this problem I use Visual Studio Team suite 2005 beta 2. thanks Andrea. Can you please send me your VB.NET code (either as a post on the forum or a private email to barrybo@microsoft.com ) I'll take a look. Thanks, Barry ...Show All
.NET Development Generating MiniDumps
ok I have a program that the company i work for and our sister company is going to be using. I have made a unhandled expection error function that makes a log and send me a that looks like this: Error Message: Arithmetic operation resulted in an overflow. Error source: test1 Error site: Void l(System.Object, System.EventArgs) Error attributes: PrivateScope, Private Data: 0 Error Trace: at test1.Form1.l(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at S ...Show All
.NET Development Setting Select Command Parameter Values at Design Time
I am using VS 2005 and have created a new data source from a SQL Server 2005 stored procedure using the TableAdapter Configuration Wizard. The stored procedure has two parameters and I want to set a default value for these at design time. However, when I display the Parameters Collection Editor there is no Value property for me to set. Is there some way to provide a value for these parameters at design time so that I can preview data without having to enter values each time P.S. If you're wondering why I need to do this at design time, it's because I'm using a report designer from DevExpress that has a preview tab to display a print pr ...Show All
Visual Studio Integrating help docs with VS2005
We have a Help system that integrates nicely with VS2003. I now want to make sure that our VS2005 customers will get the docs integrated, too. I want to make sure we cover the following scenarios: 1. User has VS2003, docs integrate as expected. 2. User has VS2005, I want the docs to integrate. What do I need to do 3. User has VS2003, installs docs, then upgrades later to VS2005. We wan the docs carry over to new help system without the using having to reinstall. 4. User has both VS2003 and VS2005 (is this even possible ). Will the docs integrate into both versions side-by-side Thanks! I am also looking for ...Show All
Visual Studio I want to Modify the Comment Block
Hello: in vb.net /visual studio ... Where can I modify the comment block... ''' which generates: ''' <summary> ''' ''' </summary> ''' <remarks></remarks> This template must exist somehwere and should be accessible simply... I want to add my own xml fields. Thanks For VB.NET, there is a post that describes how to do just that: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=333674&SiteID=1 ...Show All
Visual FoxPro VFP9.0 Data Access from .NET
Hi all I am trying to acces VFP 9.0 Data from a asp.net web site and here is the problem In the visual web developer express when I hit "View in browser" The web page comes up correctly then I copy it to \\localhost\vfptest and open it in the browser and get an error indicating that vfpoledb cannot find/open the specified file. So then I go back to VWD and set the project to the IIS directory directly and hit "view in browser and it will display correctly without the error so the difference seems to be if the page is accessed as either // localhost/vfptest (creates error) or // localhost:1117/ vfptest using the integrate ...Show All
SQL Server How to convert string datatype {hh:mm:ss} into (date)time datatype
I need to build a chart. Chart doesn't recognize a string value hh:mm:ss that was converted by =String.Format("{0:HH:mm:ss}",CDate("0:0:0").AddSeconds(Avg (Fields!HT.Value))) I've got "out of the range" error. if i convert it in datetime will it work How to convert this string into datetime with the same format "hh:mm:ss" Thank you! Thank you!!!!! ...Show All
