Splotz's Q&A profile
Visual Studio Express Editions how to set a "label.text" for dynamical created labels ?
Hello, I created several labels on a form with the following code: For t=0 to 10 lbl_info = New Label lbl_info.Name = "info" + t.ToString : lbl_info.Text = "" AddHandler lbl_info.Click, AddressOf label_info_click Controls.Add(lbl_info) next t With the following code I can access the labels with a click Private Sub label_info_click(ByVal sender As System.Object, ByVal e As System.EventArgs) Dim rb As Label = CType(sender, Label) MsgBox(rb.Name) End Sub Now I want to change the text of the labels in other parts of the program, and I have no idea how to set the "lbl_ino.text" for all the dynamically created labels. Has someone a tip for me Thanks Thanks to nobugz, Me.Con ...Show All
Visual Studio Express Editions VB6 -> VB 2005 Help
Hi I tried to email my example home but i guess the works fw ate it Anyway i am 'updating' one of our in house app's from VB6 -> Vb 2005 Express it uses an access databases on a remote share i am using DAO to query this database all is well however i cant 'INSERT' anything new into it i can read and update but when i try to insert VB debugs on me my codes is something like rs = DBase.OpenRecordSet ( "INSET INTO Table1 (xxxxxx) VALUE ( xxxxx);") the rest of the code is borrowed from how i read data out so i know thats working it dies on the above line. Does anyone have a example of an insert using DAO i can borrow ive been googling all day at work can no decent results! Cheers Kevin! ...Show All
.NET Development how Can add an empty line using codeDom.
Hi Silly question ,I am sure, But how do you add a new empty line using CodeDom. It would be nice to create some space between lines at times Thanks in advance You can add space within a method (or anything that supports statements) using CodeSnippetStatement with an empty string. You can also use regions around anything that supports directives using CodeRegionDirective . I'm not sure what gets generated when a language doesn't support the regions. As for space between classes or methods I don't believe you can put anything because they don't support statements. I guess you could create a class deriving from CodeDirective that generates a blank line and then you could put spaces where ...Show All
Visual Studio Tools for Office How do i Hide fields so that they don't take up space on my form in infopath ??????????
I am saravanan, i am new to infopath, i got ur mail id from Google group. actually in my case i am using 2 repeating sections under one section. if i hide one of the repeating section from that( using Conditional formatting) the space we desinged for that repeating section is still shows in the out put form, that means that it is hiding the section and inner things. Can't i use that space Or i need to set some other propery to utilizz that space Sample here ========== Section ______________________ | | |R1 ____________ | | | | | | | | | | | | | | | | | | |______________| | | | |R2 ...Show All
Visual Studio 2008 (Pre-release) Problem with template parameter inference
Hi All, I want to extend all IEnumerable<T> with a method called SomeOp. Usually I would define the extension like this: static class Sequence { public static IEnumerable<T> SomeOp<T>(this IEnumerable<T> sequence, Func<T, bool> func) { return sequence; } } As the operation always returns an object of the input type, I want to be able to write: List<int> integers = new List<int>(); List<int> ints2 = integers.SomeOp(x => true); To do so, I defined the exension method like this: static class Sequence { public static Enum SomeOp<T, Enum>(this Enum sequence, Func<T, bool> func) where Enum : IEnumerable<T> { return sequence; } } Compil ...Show All
Visual Studio Team System Exporting files with check in date
Hello, We have already found out that files always (and not customizable) carry the current date and time when they are fetched with a "get" from the Team Foundation Server. Due to this, we run into the following problem: Some headers from other teams are only available as plain files on a deployment server, along with the corresponding binaries and libraries. They are built each night and then exported to the deployment server (ordinary file server). In order to get it straight, the nightly build server deletes everything first, and then gets the sources. After the succesful build, the headers, libs and binaries are copied to the deployment server. This means that the headers have a new date each day. Which in turn means that th ...Show All
Windows Forms combobox selection not updating with dataset
I have a datagridview with a combobox column. After selecting a new value in the combobox from the list If I call DataSet.Update the new value in the combobox is not updated. It does not get set as the value until the cell loses focus. I tried calling dataGridView.EndEdit() but the row still does not get set as modified until later. (I think that I am having the same issue with a text box column) How can I accept the changes to the dataset before updating Thanks Another idea I found in the Microsoft Visual Studio help (on a completely different topic): private void dataGridView1_CurrentCellDirtyStateChanged( object sender, EventArgs e) { // For combo box and check box cells ...Show All
Visual C++ Sending keystrokes to other window
Hi i have a problem. I want to write a program that would send a keystroke to other window. Do i have to use hooks or there are some other ways. I saw some that uses .Net Framework. Desired OS don't have Net Framework installed. einaros wrote: I've done this a gazillion times, so I'm quite aware of what's involved. Telling the OP that those are the possible paths does help him along, however off topic the question may be. Including a full code sample would be overkill. Yes it is not easy to be sure how much to say. I agree that we want to encourage use of more relevant forums and newsgroups, and I know you know that I do that often. I think it does help however to provide an indication of what is required; my intent is to ex ...Show All
Visual Studio Replace file name when project is created with $safeprojectname$, SourceSafe conflict
I've created a Project Template. I want the files in the Template to be named after the new Project name itself, one way I've found to do this is to name the files in the Project Template as $safeprojectname$.whatever but Visual Sourcesafe will not allow me to checkin the file because of the $. e.g. I want a file to be name MyNewProjectName.cs when the new Project is created so I've named all references to it as $safeprojectname$.cs in the Project Template but Visual Sourcesafe will not allow me to checkin the file because of the $. Is there another way to rename a template file after the new projects name I'm generating the template at build time by using a csproj, the project contains all files required for the template and also the Tem ...Show All
Visual C# How to bind xml file to GridView for update and delete
Hi all, I would like to bind my xml file to a GridView. In the GridView, I would allow user to perform update and delete of data. After updating and deleting of data, the xml file will be updated. Does anyone know how to do it Please help. Thanks Hi, bslim In one way, you can load xml to a DataSet and then bind DataGridView to the DataSet. Here is the reference: http://support.microsoft.com/kb/311566/en-us And you can save a DataSet as XML, here is the tutorials: http://quickstart.developerfusion.co.uk/QuickStart/howto/doc/Xml/SaveDataSetXML.aspx and more: http://www.thescripts.com/forum/thread171850.html Hope to put u on the road. Thank you ...Show All
Silverlight (formerly WPF/E) Access a Canvas's ScaleTransform ScaleX property via Script?
I need to access and change the ScaleX property of a ScaleTransform object but can't seem to find the trick to getting to it with script. I've tried the following and a few variations: var cToMove = albumCanvases.GetItem(i); alert(cToMove.RenderTransform.ScaleTransform.ScaleX); If anyone could explain how to access the property via script I'd really appreciate it. The XAML for the ScaleTransform is below (I'm creating it dynamically which is why the placeholders are in there): < Canvas.RenderTransform > < ScaleTransform ScaleX = ' {7} ' ScaleY = ' {7} ' CenterX = ' 0 ' CenterY = ' 0 ' /> </ Canvas.RenderTransform > If you're add this with script (with createFromXaml), you need to ad ...Show All
Visual Studio Express Editions print the contents of a specific tabcontrol
I have having some difficulty printing the contents of a tab in my form. Any Ideas Thanks It always helps to tell us what is going wrong. Forced to guess: I assume you're using DrawToBitmap and you're seeing all of the controls on every tab page, not just the ones that are on the current page. Am I in the ballpark ...Show All
Windows Forms Updating project without changing DB
Please excuse me if this is a silly question but this is my first project with VB (VS 2005 Express Edition). The application uses SQL Server 2005 Express. Soon, I will be in a position to take a large amount of data from the end user of the project and put it into the database then deploy the application to his machine. This will be a long process as there is some data in spreadsheets and lots of data on the backs of envelopes etc! At this point he will begin to use the application and add/modify data on a regular basis. However, after a few weeks, he will return to me and say "Can you change this part There's a bug in that part etc." How can I then update the application and re-install it on his machine and mai ...Show All
Software Development for Windows Vista Help for Vista compatibility
We are trying to run an application as a standard user but Vista is still asking for elevation. We need support and it seems hard to find answers. - Does someone can gives us help - Is it possible to find which part of the code cause this elevation Is it possible to test on windows XP the Vista Compatibility The standard user application can't run properly where can I find help Thank you for the quick response. Hi, The application isn't check as "Run as Administrator". I have some logs that I got with app verifier. I will post it below, can you take a look - <avrf:logEntry Time="2007-01-19 : 06:11:30" LayerName="LuaPriv" StopCode="0x331B" Severity="Error ...Show All
Visual Studio Debugger - Visualizer (VS2005)
I'm trying to better visualise my class in the Debugger. I noticed that in VS2005 a new/great feature was introduced to help visualise containers (STL and ATL) in debugger. By this it is easy/fast to display important data from complex classes. Unfortunately, I can't visualise one stuff. I have a class B with a member variable A* m_ptr . If I edit the autoexp.dat file \ [AutoExpand] section "B=ptr=< m_ptr, t >" then the magic "t" make sure that if the m_ptr is an instance of class C which is derived from class A the debugger displays it as ptr=[ C ] . This is great so far. However I would like to do similar thing in [Visualizer] section: A{ preview ( #( $e.m_ptr ) ) ) Since there are no official documentati ...Show All
