- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
30 Posted Topics
Re: If u did not delete it.. it will be there in the solution explorer.... select the form + sign and it will show a code and designer files.... Thanks vince | |
Hi all, I'm struggling to create a treeview. I want the nodes to be added dynamically. For example consider there are two froms Form1 and Form2. Form1 is the main , on clicking on a New node button Form2 open. In Form2 i will give the new node name and … | |
Re: Try this out .. .. this is the exact code what u are searching for... [CODE] public void FillTree() { SqlCeConnection Connect = new SqlCeConnection("Data Source = test.sdf"); Connect.Open(); DataTable dtTree = new DataTable(); string sql = "SELECT * FROM table"; SqlCeDataAdapter Adapt = new SqlCeDataAdapter(sql, Connect); Adapt.Fill(dtTree); Adapt.Dispose(); treeView1.BeginUpdate(); … | |
Hi all, i am trying to convert a dataGridView cell to a control i used the codes [CODE] Control dat = new Control(); dat = Convert.ChangeType(dataGridView1[colIndex,rowIndex], typeof(Control)); [/CODE] I am fetching the values of colIndex and rowIndes from a index code... the problem is even though i tried many codes … | |
Hi all, I am trying to write a code that could show multiply values in a single cell of listview with comma separator... i am using C# with windows application... I have a attachment that show what i am asking for... Thanks in advance vince | |
hi all , i am developing a project that uses sdf database and i want to connect to it using odbc driver.. recently i found that there is no odbc driver for sdf database. I also found we can use ADODB and ADOX with oledb to connect with sdf.. but … | |
Re: try giving subform toplevel as false subform.TopLevel = false; | |
i have a treeview in which i need to get the selected nodes text and its child node text(if any). I tried using AfterSelect event to get this but i only got the selected text but not the child text.. so can any one help me with this.. i am … | |
Hi All, i am creating a Desktop application using Microsoft Visual Studio .NET 2008.. i am using .sdf file as my database... my problem is that when i am making changes to my records (add new, deleted, updated) then the changes reflects only till my application is running when i … | |
Hello, I am searching for codes that could find the min and max(or first and last values) from a column in a datatable. I have stored the datatable with four column values i want to find the min and max values from the third column(index 2) and display it to … | |
hi i am using this code to get the checked treeview node name.... it goes inside the loop only if the parent node is selected... I have to get the node name if any node is checked... this is the code i am using.. [CODE] public void CheckedNames(System.Windows.Forms.TreeNodeCollection theNodes) { … | |
Hello I have some doubts in listveiw I have a listview with two columns, i want to add items to the first column which are given programmatically and the other column is from database... like [CODE] column1 column2 apple from database orange " banana " so on " [/CODE] can … | |
Hi all .. i have given this code in my project.. it is showing Access to the path 'C:\Documents and Settings' is denied. I dont know what is wrong.. this code works if i give the path different... can any help me... Thnaks vince [CODE] private void FileView() { TreeNode … | |
Hi i am developing a C# application which uses sdf database... the problem is in inserting data to the database.. i can retrieve data from it but can not insert value to it..... I tried many ways of inserting values to the database but not successful... can any one help … | |
HI all i have a simple doubt... can a user control be made as dockable(freely movable) window inside a panel... I made some form as dockable inside a panel using this code [CODE] Form form = new Form(); form.TopLevel = false; form.Visible = true; panel.Controls.Add(form); [/CODE] this code makes the … | |
Hi all the treeview i am creating here works very well but i tried so many ways to add tag to the child nodes but i could not... can any one tell me how to add tag to the nodes... that are created from the database... I could add tag … | |
Hi all I am developing a form which has a gridview... i am try to do is.. it has three columns... the first two columns are for display purposr. The third column is a combobox column which displays different value for different rows.. it is fatched from database.. i am … | |
Hi all I am developing a form with a toggle button in the toolstrip ... i have given the property checkonclick to true and gave this coding in the click event.... I am loading a Groups (Usercontrol) in the MainPanel1 (panel).... It works for first time but does not work … | |
Hi all... I wanna know is it possible to place tabpages one behind the other like in the windows xp advance settings form.... if it is possible can any one tell how.... Thanks vince | |
Hi all, I want to know some details about savefiledialog.... can a form be opened on clicking the save button in savefiledialog... If yes can some one provide the idea or code... Thanks vince | |
Re: your button must be globle.... [CODE] using System; using.... namespace yourproject { public class Program : System.Windows.Forms.Form { private System.Windows.Forms.Button NewGame; public Program() { InitializeComponent(); NewGame.Click += new EvenHandler(NewGame_Click); } } } [/CODE] and your event declaration is not correct...it should be NewGame_Click Hope this helps | |
Re: [CODE] [System.Runtime.InteropServices.DllImport("gdi32.dll")] public static extern long BitBlt (IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, int dwRop); private Bitmap memoryImage; private void CaptureScreen() { Graphics mygraphics = this.CreateGraphics(); Size s = this.Size; memoryImage = new Bitmap(s.Width, s.Height, mygraphics); Graphics memoryGraphics = Graphics.FromImage(memoryImage); … | |
can any one please help me with this... I am trying to load a treeview and listview from sql database but did not work.... so if any one know how to do that please help me with it.... Thanks vince | |
Re: Can u please give me the code .. how u loaded the treeview or listview from database... please i'm really struggling to do that,..... Thanks | |
Hi all.... i have found code that displays treeview and listview from database but it is done for microsoft access ... i am try this code for sql sever but end up only in exception,..... can any one modify this code to access the sql database and display the listview..... … | |
How can one bring graphics component in C++ to work under C# | |
Hi to all I'm developing an application using C#.net .My problem is I have two forms Form1 and Form2... I have a combo box in Form1 with values Admin , student and others....Form1 is used as login form . If login by student i want to hide certain buttons and … | |
Hi I'm creating a application where there are different users like admin and others. I want to log in as admin and hav all the previlages to it and when login as others it should have only minimum previlage. I'm doing it C#.net. can any one give me the code … | |
Hi i'm new to programming . I'm creating a project in C#.net using visual studio. I'm facing problem. Creating a login button and a new login ID button. the new login ID should store the details in the database and when the same is entered in the login text box, … | |
Re: [CODE]//Here I'm explaining for two text boxes and two buttons save and cancel.... //when save is pressed the connection to database is established and the values in //the two text box is stored table...... //just follow the instructions....it will help using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; … |
The End.