Answer Questions
Pockey totally newbie question about deploying software
I have a windows form application developed with .net 2.0 c#. I am using visual c# express If i use the clickonce deployment, i cant have a destop icon, have the user specify an installation directory, show an end user licence agreement, or make entries to the registry. But i need the functionality that the where it checks for the .net framework and downloads from vendor if not present. Does anyone have any suggestions, is there another installer tool that can be installed with visula c# express thanks The generic bootstrapper provides the ability to check for the .NET framework and install it from the vendor if necessary. The generic bootstrapper is available with both ClickOnce and Setup Projects. ...Show All
boonspang setting the Opacity on a ListView (help please)
Is their a way to set the Opacity on the ListView programatically the intellisence shows theirs a Opacity but i'm not sure how to use it...I want to drop the Opacity on the listView1,i have on my form... Thxs in Advance.. P.S. I have seen something similar in the Templates section for a ScreenSaver they have with RSS Feeds...Where it has a Opacity to it,allowing you to still see the background with the some scrolling text.. I was reading in one of my books for setting Styles for allowing Custom UserControls for Transparency... SetStyle( ControlStyles .SupportsTransparentBackColor, true ); Can I set this to the listView1 to support either a Transparent or set the Opacity of the listview ...Show All
Parshuram Checking If Date Value Is Null
Hi all, I have been trying to check whether a date value stored in a databae table is null and if so to display an " N/A " value in the datagrid. This is a brief look at the code which i have been using: ------------------ Dim dateValue As String = AdminRptDSet.Tables(1).Rows(PrimaryCourseHeaderCount)("Date Assessment Completed").ToString ' If dateValue.ToString.Equals("") Then row(8) = "N/A" End If ------------------ I should probably be using a Date Type variable instead of a string but not sure how to code around the date type. Any ideas Thanks Or you can set the NullValue of the databinding to "N/A", something like this: my_data ...Show All
Thomas Mayer Irritating Flicker Upon Startup
I've built a WinForms app in C#. The basic startup screen is similar to that of MS Word, albeit with a gradient blue background. I just added a Splash screen. It runs on a separate thread and simply displays a borderless form at the center of the screen. It fades in, the main screen appears behind it, and it fades out, leaving the main screen. That's all fine. But what's not is that the main screen now has an irritating flicker of sorts when it appears with the Splash screen in front of it. It never used to do this. What's causing this and how can I prevent it from happening Robert Werner http://PocketPollster.com Try double buffering the forms. A bit of a guess and I haven't tried it but this m ...Show All
snowmt Need a Working Sample of DataGridView Link 2 Tables
hello, I need working sample of a datagridview showing a relation between 2 tables as a link. I have 2 tables in my dataset. Table RNT_PETICIONES which has a COD_PERSONAL external key, and the RNT_PERSONAL table also has COD_PERSONAL as primary key. I have the DataSet in my project and the relation are corretly set. But when I bind PETITIONS to the datagrid I do not see the sub-link of the CLIENT table. I also tried doing this manually with no succes. Please post sample code here as I'm restricted to only microsoft.com -Thank You P.S. What I'm really interested in doing is getting varous columuns from different tables and showing them as 1 table in the datagrid, being able to edit the datagrid and saving the data to the cor ...Show All
WineNCheese Tab Control
Dear friend I had tab control in which 6 tap page,in each tab page number of control which is bind to the dataset. When i retreive data from database, merge logic is used to get data to the dataset which is binding to all the control in the tab control. The value get update properly to the dataset, and values comes proper to the first tab page control, But the value in the 2 and 3 tab pages not getting updated. It only get updated when i active that tab control page. Problem is when i retreive data and click on save button.In save Procedure i had written code for validation in which i m checking text value it show me Blank/empty. To save the value i have to click on all the tab page control and then click on save button. ...Show All
Davids Learning Tab control not hilighting selected tab in yellow
At design time, in VB, my certain form with TabControl looks and behaves fine. However, at run-time, the yellow hilights that show you which tab you clicked on don't appear. They also don't appear on mouseover. What gives I verified that the hilights do appear if I look at Control Panel -> System. yes, my bad, it's orange. i got an inkling this has to do with "Enable XP visual styles"... The way my program is structured, a C# subroutine calls a VB DLL which blah blah starts a new thread which starts the form where my tab control is. What's missing I've got an orange stripe on the tab with VisualStyles enabled both in my progra ...Show All
BigGuy Form.Visible maximizes a form object with WindowState set to Normal
Hello, In debugging the following code the frmChild.WindowState is set to FormWindowState.Maximized directly and immediately after the frmChild.Visible = true; line is executed. Please note frmChild is a System.Windows.Forms.Form object. This behavior is incorrect and indicative of a bug in the manner Form.Visible is implemented. Please suggest a workaround. // BEGIN EXAMPLE CODE frmChild.MdiParent = this ; frmChild.Visible = false ; frmChild.SuspendLayout(); if (openOrientation == 1) { frmChild.WindowState = FormWindowState .Maximized; } else { frmChild.StartPosition = FormStartPosition .Manual; frmChild.Location = new Point (xPos, yPos); frmChild.WindowState = FormWindowState .N ...Show All
Gagand Progress Bar
HI I am a beginner at C# and found the following code on this website but when i buld it the progress bar does not fill up could someone please help using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication2 { public partial class Form1 : Form { static int count=5; //time count public Form1() { InitializeComponent(); this .timer1.Interval = 1000; // set timer to tick each 1000ms this .label1.Text = "LOADING ..." ; //"Loading ..." text } private void timer1_Tick( object sender, Even ...Show All
Jorge Martin Strange behavior with Navigation in BindingSource
Hi, I got a problem. I have a BindingSource, connecting at my database to show me the data in my program, so I added 4 buttons to navigate, and I navigate using MoveFirst(), MoveNext(), MovePrevious and MoveLast, but what I noticed is that sometimes the method don't work as expected, this happens more when I edit some field. I don’t know what is happening but let's say that I have 6 items, so I edit item number 5, everything works fine and my database gets updated, but when I click the button to call the MoveNext() for example the field that is shown is not the right one, it goes to the item number 3 for example, so I need to click at MoveLast, and then everything comes back to normal. If I don't click at MoveLast it simple doesn't work ...Show All
Jean-Pierre Fouche suggestion for a book on C# windows application
Hi, Can someone suggest a book about .net or C#-based Software design, programming and best practices for building financial real-time applications For example, such applications are typically built for financial institutions (stock trading companies, investment companies e.t.c) in which dealing with live market data and application performance(in terms of speed) is very critical. Thanks, I dought there will be a book on this subject. You will find book on: how to code in C#, how to optimize C#, how to optimoze code, financial algorithm, how to use the stock/trading. But not all of these subject in one book. Search for these related keywords on the internet; Service-Oriented Architectu ...Show All
BJHop ClickOnce and Dotfuscator
Is there a way I can use ClickOnce combined with the output from the Dotfuscator It seems that everytime I publish, it rebuilds a new one, so putting a output from the dotfuscator into the bin/release didn't work and replacing the deploy file with the dotfuscated file in didn't work either. id dearly love to know this as well!!! the dotfuscator site didnt have any detaisl abotu how to automate this process, but it would be a killer app if they coulde make it nice and simple :) ...Show All
Fluxtah Form size changes in design mode
Everytime i open a form from the designer .. it changes it's size ... it's growing ... Everytime! if i open it a lot of time consecutively ... it will grow bigger and bigger ... Im using vs2005 ... developper edition. It's happening on everyform im adding in the project ... It might be your nick causing that. Seriously, does this happen on any form in any new project or just on the one project you're designing... Hi Which version of DotNet you are using Is it possible you have somehow some code included in your form_load or other form event which should change the size of your form if so, enclose this code with: if not me.designmode then ...Show All
RayCan Accessing a form's controls from another form
I added a AboutBox1.cs form to my project, and I want to change the label properties(text) at runtime. How do I get access to those controls from within frmMain I did something like this: I added an new about box form/class to the project, then I typed: Form frmAbout = new AboutBox1.cs; frmAbout.labelProductNam... //doesn't pop up Sweet, thanks! This forum rocks! Hi, this tutorial may give you a good place to start: http://themightycoder.spaces.live.com/blog/cns!EBFBA22CD769E10B!144.entry Mark. ...Show All
Jocker23 Font families
hey, I am trying to make it so that a combobox's items are all of the fonts the computer has, so I tryed this: comboBox2.Items.Add(System.Drawing. FontFamily .Families.ToString()); but that only makes it have one item with the words: System.Drawing.FontFamily.......... but I want it to show all the fonts currently on the computer...how would I do that Thanks :) Oh, ok, I see now, it worked thanks :) FontFamiliy.Families property returns an array of FontFamily and you need to add an item to the combobox for each item in the array: foreach (FontFamily family in FontFamily.Families) { comboBox2.Items.Add(family.Name); } ...Show All
