Melle Dorèl's Q&A profile
Windows Forms regarding windows forms layout
Dear All, Is there any design guidlines to implement standard layout in windows form, I want to implement resizing/relocation of controls according to the form size. I'v tried few solutions my self but its preety difficult to control them, i'v tried using infragistic's layout managers. Plz advise regards faraz Salam You can do this by using the ANCHOR property of the control. Your control will Resize/Relocate itself according to the form size. Hope this might help you. ...Show All
.NET Development Typed DataSet and WriteXml question about Namespace
Ok, I have a typed DataSet that was generated from an xsd schema using xsd.exe. The xsd schema is owned by a standards organization, so I can't modify it. The generated code sets the Namespace property of the DataSet (e.g. http://www.std.org/xml/name-space ). This controls the scope of elements read from an XML file when calling ReadXml and the file is read correctly with appropriate rows populated. Now, if I turn around and call WriteXml the typed DataSet creates a root element based on the DataSetName property, which is Ok. However, I get the namespace attribute on this element. (e.g. <MyDataSet xmlns:xsi=" http://www.w3c ...Show All
Visual Studio Express Editions How do we select sub main as startup object
hi, in VB6, we used to select submain as startup object from propertis windows. How can we do so in VB Express, here only option is shown about Forms On the Application Session uncheck "Enable Application Framework" Sorry for my english.. i'm brazilian bye ...Show All
.NET Development DataGridView Problem
I recently started using ADO.NET with VB/C# .NET and I'm really liking it. I also recently ran into a problem with the DataGridView control. I added a DGV Control to my Windows Forms application and bound it to a DataSource. Now it's working great and everything but anytime it has enough rows to warrent the use of the Vertical Scroll bar it locks up my Apps UI for some reason. I can't for the life of me figure this one out. If anyone has any suggestions/comments please post them. Thanks! -Chad Figured it out-- it was becuase I was calling the sub that was adding this information into the DB was on ano ...Show All
Visual Studio Team System Opening WI Attachments Requires Username/Password
When attempting to open a work item attachment, we get prompted for credentials each time. Is this expected or something not set correctly Is there some permissions setting that will prevent this All the users involved are in the project's contributors group in VSTF, in the contributors group of the sharepoint portal, and are browsers of the reporting services. Hi What is the OS where the client is installed Is the Internet Explorer Enhanced Security installed If yes, uninstall the same and then try Thanks Sagar ...Show All
SQL Server Changing user used to execute scheduled jobs
Hello. I am using SQL Server Management Studio (SQL 2005) and created a daily backup job. Inside the job, i have an "Operating system" step to copy backuped up files onto another directory. However, the job kept on failing with an error "Executed as user ... Access is denied." With this error, how can i change the user used to execute the job Thanks. Here's the error message: Executed as user: server\sql2005. Access is denied. Process Exit Code 1. The step failed. The error occured when it came to the operating system command step. Thanks ...Show All
Visual Basic Newbie confusion Assert.AreEquals
I used the VS Test Suite to generate a unit test called, "AddOne", that adds 1 to an integer. Here's my test method: >>> Dim expected as integer Dim actual as integer dim myValue as integer ... ... ' should fail : 10 + 1 <> 51 myvalue = 10 expected = 51 actual = target.Addone(myvalue) Assert.AreEqual(expected, actual, " Failure message") ' should pass myvalue = 50 expected = 51 actual = target.Addone(myvalue) Assert.AreEqual(expected, actual, " Failure message") ' should fail myvalue = 50 expected = 11 actual = target.Addone(myvalue) Assert.AreEqual(expected, actual, " Failure mess ...Show All
Visual Basic Need to clip pictures in VB.NET
I am trying to make a program that can spilt characters from a antibot image into their own files. The antibot images is made like this: [6px nothing, 6px character, 1px nothing, 6px sharacter, 1px nothing, 6px charater], i thing you got the idea. Example picture: I tried to modify the code found here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=373322&SiteID=1 but i didnt manage to make it work. Ill be very grateful for a sulotion. PS: I'm sorry about my bad English, it is not my primary lanuage. EDIT: Opps, i first now se that i postet in wrong category. I'm using VB.NET 2 ...Show All
Visual Basic Visual Studio Is Busy?
Pentium IV - Northwood 3.5 Ghz - I Gb of Ram. XP SP2 .. all current patches applied. VS2005 RTM Team Suite On occasion while debugging the IDE becomes nonresponsive and I receive a Bubble message informing me that "Visual Studio is busy waiting for an internal operation to complete - If you receive this message often, please inform Micorosoft" After I receive this message the IDE never recovers. All I can do is to delete the process and restart it. Any idea what's occurring I experience the same problem from time to time. No idea what causes it, but would like to know! VS2005 Pro Ed. Carl ReneeC ...Show All
Windows Forms converting image in a clipboard to memory stream
suppose i have copied an image to clipboard and then pasted it onto a picturebox. using: IDataObject iDataObj=Clipboard.GetDataObject(); //determine the format of data if (iDataObj.GetDataPresent(DataFormats.Bitmap)) { pictureBox1.Image=(Image)iDataObj.GetData(DataFormats.Bitmap); } in order to save this image to database. i would then have to convert the contnts of the clipboard to a memory stream object and then serialize to byte[] object. how do we do that. i figured it ou. the problem was with the memory stream. the problem was created when saving multiple images to the clipboard and the memory stream was filled with m ...Show All
Windows Forms Editting (making bold) certain characters in a TextBox Control.
Hi all, I have a TextBox Control of which I want to make bold the first couple of Characters. Is this at all possible, or will the Bold style be applied to the whole of the text within the TextBox Control The following is the code I have so far... txtSnagListLocation.Font = new Font(FontFamily.GenericSansSerif, 12.0F, FontStyle.Bold); Thanks Tryst not sure that you can do this with a textbox. I think you can only set the font on the entire textbox. But there is a RichTextBox class which I'm sure you can do it with. Regards Jero ...Show All
Visual Basic foreach row in DataGrid. How to?
Hello, i use datagrid on winform application to display some data to user. The grid is readonly. I want to get cell value on each row. what the right way to do this thanks For Each d as datagridviewrow in DataGridview.rows MsgBox("Column Value =" & D.Cells("ColumnName").Value) Next ...Show All
Visual Studio Redefining an ItemList
Once I have an itemlist, is there an easy way for me to clear it At the beginning of my build, my itemlist has a set of files in a particular directory. As part of my build, I delete some of those files, and then want to reuse that ItemList to list only the files that actually exist. I haven't found a way to use the CreateItem/Output tasks to remove items from an itemlist. Is there a way to do this <ItemGroup> <Files=*.mightbedeleted/> </ItemGroup> Later on in the build, there are fewer *.mightbedeleted files. How do I redefine the Files ItemList to only include the ones tha ...Show All
Visual C# Generics and interfaces
Hi all - let me first say that I personally like generics. That said, I have a question that is stumping me. I'm sure there's a logical explanation, but I just can't seem to find it. I have an interface that returns another interface from a method: public interface IReturn { //... } public interface IInterface { IReturn Function(); } I know want to have generic interfaces, like this: public interface IReturn <T> : IReturn { //... } public interface IInterface <T> : IInterface { new IReturn <T> Function(); } The problem comes when I try to implement a clas ...Show All
.NET Development Error when executing Process.Start() when running under SYSTEM account.
I have an ASP.Net page using the System.Diagnostics.Process class to execute an Excel file with no arguments, I/O redirection, or direct impersonation. I have setup the web app to run under the SYSTEM (Local System) account via an Application Pool in IIS 6.0. The Excel file has a macro that will run automatically when opened. The web page is actually going to start a ProComm session, executing a script, to telnet to various telcom exuipment and gather info then call. Once the ProComm script has gathered all info it calls the same Excel file. The ASP.Net page needs to run under the SYSTEM account to allow the ProComm process to interact with ...Show All
