5,346 Posted Topics
Re: [b]>my problem is i dont know how to assign integer to the values of my combo boxes [/b] Create a datatable instance having two columns. [code] Dim Dt as New System.Data.DataTable Dt.Columns.Add("Animal") Dt.Columns.Add("Weight") Dt.Rows.Add("heavy","3") ..... ComboBox1.datasource=Dt ComboBox1.DisplayMember="Animal" ComboBox1.ValueMember="Weight" [/code] Handle SelectedIndexChanged event of ComboBox1. [code] Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As … | |
Re: Here are: 1. [url]http://msdn.microsoft.com/en-us/library/ms227881%28VS.80%29.aspx[/url] 2. [url]http://www.developers.net/businessobjectsshowcase/view/1786[/url] 3. Books : [url]http://www.crystalkeen.com/articles/crystalreportsbooks.htm[/url] | |
Re: [b]>I get a media error, but it doesn't indicate what the error is. How do I find out what is wrong with the rip?[/b] Did you got any error/exception? | |
Re: [b]>My form that I am trying to save has many text boxes. What I want to do is save the whole form in its entirety. [/b] You can append/concatenate string from various textboxes. [code] ...(SaveFileDialog1.FileName,TextBox1.Text & TextBox2.Text , False) [/code] | |
Re: About about the [B]Profile[/B] state? - [url]http://msdn.microsoft.com/en-us/library/2y3fs9xs.aspx[/url] | |
Re: [b]>Is that possible ?[/b] Sure. Have a look at [URL="http://msdn.microsoft.com/en-us/library/system.drawing.graphics.aspx"]GDI [/URL]- System.Drawing classes. | |
Re: By implementing connection, dataadapter , and commandbuilder you can fetch data from the database and populate datatable/dataset and vice-versa you can update datatable/dataset. | |
Re: Try this, [code] public partial class EditorAccounts : Form { BindingSource bindsrc; public EditorAccounts() { InitializeComponent(); } private void EditorAccounts_Load(object sender, EventArgs e) { Messages errors = new Messages(); //get default server type string ServerType = Properties.Settings.Default.SQLType.ToString(); //get our connection string ConnectionManager ConnectionString = new ConnectionManager(); string SQLConnectionString = ConnectionString.ConnectionString(ServerType); … | |
Re: [b]>date range[/b] Sorry, I'm not quite following the problem. My understanding from your code is that you want to get dates between give dates. Maybe you are missing [B]else[/B]. [code] if (endDate.Day > validDay) { currDate = new DateTime(currDate.Year, currDate.Month, validDay); result.Add(currDate); } else if (currDate.Day <= validDay) { result.Add(currDate); … | |
Re: [b]>how to Embed the Remote Desktop ActiveX Control in a Web Page using C#?[/b] object html tag. | |
Re: Hi tashiDuks, I'm glad you got it helpful. If you want to ask question, start your own thread. Please do not resurrect old or solved threads. Please read before posting - [url]http://www.daniweb.com/forums/faq.php?faq=daniweb_policies[/url] and [url]http://www.daniweb.com/forums/thread78223.html[/url] Thread Closed. | |
Re: [b]>Can someone tell me what am I doing wrong?[/b] [code] OpenFileDialog^ dg=gcnew OpenFileDialog(); // Instantiate the OpenDialog dg->ShowDialog(); richTextBox1->Text=dg->FileName; // Assign a file name [/code] | |
Re: I would like to suggest - Pro VB 2008 and the .NET 3.5 Platform. | |
Re: [b]>when i click on the links i'm getting download dialog box that will ask me if i want to download[/b] I think you didn't create a virtual directory. To create a web application you need to setup web-server (IIS) or you can use development server (Visual studio.net). Please read articles: … | |
Re: [b]>I have a VC++ DLL, which returns the sum of two long double values[/b] [code] <DllImport(filename, EntryPoint:="read")> Public Function read(ByVal d() As Double) As Double End Function [/code] [code] Dim dbl as Double = read(New Double() {22, 33}) [/code] | |
Re: Take a look at article - [url]http://www.codeproject.com/KB/IP/Silence_Socket.aspx[/url] | |
Re: Please have a look at these threads - [url]http://www.daniweb.com/forums/search5574387.html[/url] | |
Re: Have a look at - [url]http://stackoverflow.com/questions/548911/sending-sms[/url] | |
Re: Take a look at codeproject article - [url]http://www.codeproject.com/KB/audio-video/VideoImageGrabber.aspx[/url] | |
Re: You need to define a class that publishes event, in your class methods, you can raise certain events when something is happen or not. | |
Re: Asc(e.KeyChar) - Return the ascii of key character. | |
Re: If you want to store 50 numbers then the array declaration should be, [code] Dim Trials(49) As Integer [/code] Where lower bound is 0 and upper bound (limit) is 49. To generate random number, use Random class. [code] Dim rnd As New Random Randomize() no = rnd.Next(100, 150) [/code] Array … | |
Re: Set Filter property. [code] SaveFileDialog1.Filter = "Word Doc File|*.docx|(*.txt)|*.txt|All files (*.*)|*.*" [/code] | |
Re: [b]>But then the error appears: "Cannot convert void to System::IO:tream[/b] Because of its signature - [B]void OpenReadAsync()[/B] Have a look, [code] void readCompleted(System::Object^ sender, System::Net::OpenReadCompletedEventArgs ^ e) { Console::WriteLine("Data: " + e->Cancelled); Console::WriteLine("Object : " + e->UserState); IO::StreamReader^ sr=gcnew IO::StreamReader(e->Result); ..... } int main(array<System::String ^> ^args) { WebClient^ wc=gcnew WebClient(); … | |
Re: Have a look at MSDN article - [url]http://msdn.microsoft.com/en-us/magazine/cc163724.aspx[/url] | |
Re: You're welcome. I'm glad you found it useful. Please read member rules - [url]http://www.daniweb.com/forums/faq.php?faq=daniweb_policies[/url] Thread Closed. | |
Re: Please read these threads - [url]http://stackoverflow.com/questions/2410779/network-authentication-when-running-exe-from-wmi[/url] and [url]http://serverfault.com/questions/77585/execute-program-on-remote-computer-using-powershell[/url] | |
Re: Set KeyPreview=True Form property and then handle keypress event. [code] Private Sub frmMain_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress If e.KeyChar = Chr(27) Then MsgBox("Place your message...") End If End Sub [/code] | |
Re: [code] strAttendanceUpdateStatement = _ "UPDATE Attendance " & _ "SET DateOfClass='" & DatePickerDateOfClass.Value & "', " & _ "Absent = " & CheckBoxAbsent.Checked & " " & _ "WHERE AttendanceID = " & intAttendanceID [/code] | |
Re: [b]>What would you recommend? [/b] Windows Presentation Framework. | |
Re: 1. Choose Build + Clear Solution menu option. 2. Again select Build + Configuration Manager + Change Debug configuration. 3. Press F5 (Debug+Start Debugging) | |
Re: Convert string input into int type. [code] Dim no As Integer Integer.TryParse(TextBox1.Text, no) no += 1 TextBox1.Text = no.ToString() [/code] | |
Re: Sure, which one do you like the best? | |
Re: You need to add triggers to UpdatePanel. Here is an example, [code] .... <Triggers> <asp:AsyncPostBackTrigger ControlID="GridView1" EventName="SelectedIndexChanged" /> </Triggers> .... </asp:UpdatePanel> [/code] | |
Re: Welcome. Firstly, add a typed dataset into your project, configure it with the database you already have and design reports. Have a look at msdn pages : [url]http://msdn.microsoft.com/en-us/library/bb885185%28VS.90%29.aspx[/url] | |
Re: Read [URL="http://msdn.microsoft.com/en-us/library/8e5545e1.aspx"]this [/URL]article, maybe you can find a solution. | |
Re: [b]>how can i do this. i want to do it in C#.NET desktop application.[/b] Steps: 1. Table structure should be - file path(varchar), content(image), title(varchar) 2. Open and read the content of file and store it into byte array. 3. Prepares connection,command, and parameters objects to insert data. | |
Re: The source (.cppp) definition must be placed inside the namespace block. [code] #include<iostream> #include<cstdlib> #include<cmath> #include "head.h" using namespace std; namespace ns1 { double complex::getreal() const {return re;} double complex::getimag() const {return im;} double complex::getmod() {return sqrt(re*re + im*im);} double complex::getmod2() const {return (re*re+ im*im);} complex complex::getconj() const {complex temp(re,im*-1);return … | |
Re: Hi RicardoE. We appreciate your help. Have you ever noticed that the current thread is three years old? Please do not resurrect old threads. Have a look at forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. Please read before posting - [url]http://www.daniweb.com/forums/thread78223.html[/url] Thread Closed. | |
Re: Have a look at these articles: 1. [url]http://www.drdobbs.com/windows/184416570[/url] 2. [url]http://msdn.microsoft.com/en-us/magazine/cc188743.aspx[/url] | |
Re: [b]>Now how can I make graph for marks of each term(i.e 3 graphs) on crystal report.[/b] Have a look at [url]http://www.codeguru.com/csharp/.net/net_general/toolsand3rdparty/article.php/c13253[/url] and [url]http://aspalliance.com/215[/url] | |
Re: [b]>ahlam[/b] What? - Clearly state a phrase describing the problem as the thread's title. Rule member rules - [url]http://www.daniweb.com/forums/faq.php?faq=daniweb_policies[/url] [code] For i As Integer = 0 To ds.Tables("ligne").Rows.Count - 1 If ComboBox6.SelectedValue=ds.Tables("ligne").Rows(i)("columnname1") Then .. End If Next [/code] | |
Re: [b]>How to hide sections of a windows form[/b] Choose any container control (Panel, Groupbox, etc) and place other controls in it and set visible property of container control. | |
Re: You can use DataBind approach to populate the combo. [code] Dim Adp as new SqlDataAdapter("SELECT KPIPOSTCODE FROM KKPIPOSITION", sqlcon) Dim Dt as New DataTable Adp.Fill(Dt) cboPosition.DataSource=Dt cboPosition.DisplayMember=Dt.Columns(0).ColumnName [/code] | |
Re: I presume that the parent of usercontrol is a Panel then your code in usercontrol might be, [code] CType(Me.Parent,Panel).GroupingText="Test" [/code] | |
Re: [b]>cud anyone give me the code[/b] You might want to read [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Daniweb [/URL]rules and homework policy [URL="http://www.daniweb.com/forums/announcement61-2.html"]We only give homework help to those who show effort[/URL]. | |
Re: [b]>ASP.ar_comments_aspx' does not contain a definition for 'btnSave_Click'[/b] Error says that the aspnet_compiler cannot find definition of "btnSave_Click" in code-behind. To solve this problem - Add an event handler for btnSave button (double click on btnSave). | |
Re: You can generate a new session id by remove value of cookie. [code] Response.Cookies["ASP.NET_SessionId"].Value = ""; [/code] See - [url]http://support.microsoft.com/kb/899918[/url] | |
Re: Please read this article - [url]http://en.csharp-online.net/Deploying_Windows_Applications%E2%80%94Prerequisites[/url] |
The End.