5,346 Posted Topics

Member Avatar for cheskajoyce

[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 …

Member Avatar for kvprajapati
0
145
Member Avatar for Lee21

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]

Member Avatar for kvprajapati
0
112
Member Avatar for ddepuemd

[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?

Member Avatar for kvprajapati
0
78
Member Avatar for Dcurvez

[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]

Member Avatar for kvprajapati
0
114
Member Avatar for miraclebos

About about the [B]Profile[/B] state? - [url]http://msdn.microsoft.com/en-us/library/2y3fs9xs.aspx[/url]

Member Avatar for miraclebos
0
132
Member Avatar for charqus

[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.

Member Avatar for ddanbe
0
89
Member Avatar for krishnisilva

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.

Member Avatar for krishnisilva
0
85
Member Avatar for zachattack05

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); …

Member Avatar for zachattack05
0
112
Member Avatar for jellybeannn

[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); …

Member Avatar for kvprajapati
0
123
Member Avatar for 00 freedom
Member Avatar for murugavel84
0
232
Member Avatar for djinn1971

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.

Member Avatar for kvprajapati
-2
1K
Member Avatar for inisca

[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]

Member Avatar for kvprajapati
0
200
Member Avatar for emaduddeen
Member Avatar for mikehaddad

[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: …

Member Avatar for kvprajapati
0
118
Member Avatar for MeetMak

[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]

Member Avatar for kvprajapati
0
147
Member Avatar for Mohsen6558

Take a look at article - [url]http://www.codeproject.com/KB/IP/Silence_Socket.aspx[/url]

Member Avatar for Mohsen6558
0
92
Member Avatar for Bangus

Please have a look at these threads - [url]http://www.daniweb.com/forums/search5574387.html[/url]

Member Avatar for Bangus
0
569
Member Avatar for pritesh2010

Have a look at - [url]http://stackoverflow.com/questions/548911/sending-sms[/url]

Member Avatar for kvprajapati
0
107
Member Avatar for hazemahmed16

Take a look at codeproject article - [url]http://www.codeproject.com/KB/audio-video/VideoImageGrabber.aspx[/url]

Member Avatar for kvprajapati
1
83
Member Avatar for emaduddeen

You need to define a class that publishes event, in your class methods, you can raise certain events when something is happen or not.

Member Avatar for kvprajapati
0
85
Member Avatar for Lee21
Member Avatar for PDB1982

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 …

Member Avatar for PDB1982
0
1K
Member Avatar for Dcurvez

Set Filter property. [code] SaveFileDialog1.Filter = "Word Doc File|*.docx|(*.txt)|*.txt|All files (*.*)|*.*" [/code]

Member Avatar for Dcurvez
0
95
Member Avatar for Ultratermi

[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(); …

Member Avatar for Ultratermi
0
341
Member Avatar for TechGen

Have a look at MSDN article - [url]http://msdn.microsoft.com/en-us/magazine/cc163724.aspx[/url]

Member Avatar for kvprajapati
0
136
Member Avatar for sseo

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.

Member Avatar for kvprajapati
0
999
Member Avatar for adam2009

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]

Member Avatar for kvprajapati
0
564
Member Avatar for Lee21

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]

Member Avatar for Luc001
0
7K
Member Avatar for emaduddeen

[code] strAttendanceUpdateStatement = _ "UPDATE Attendance " & _ "SET DateOfClass='" & DatePickerDateOfClass.Value & "', " & _ "Absent = " & CheckBoxAbsent.Checked & " " & _ "WHERE AttendanceID = " & intAttendanceID [/code]

Member Avatar for emaduddeen
0
122
Member Avatar for "ICode"
Member Avatar for "ICode"
0
320
Member Avatar for j_808

1. Choose Build + Clear Solution menu option. 2. Again select Build + Configuration Manager + Change Debug configuration. 3. Press F5 (Debug+Start Debugging)

Member Avatar for kvprajapati
0
74
Member Avatar for TrueCoding

Convert string input into int type. [code] Dim no As Integer Integer.TryParse(TextBox1.Text, no) no += 1 TextBox1.Text = no.ToString() [/code]

Member Avatar for kvprajapati
0
96
Member Avatar for lein.o16
Member Avatar for Scoobydog

You need to add triggers to UpdatePanel. Here is an example, [code] .... <Triggers> <asp:AsyncPostBackTrigger ControlID="GridView1" EventName="SelectedIndexChanged" /> </Triggers> .... </asp:UpdatePanel> [/code]

Member Avatar for Scoobydog
0
299
Member Avatar for sanam2010

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]

Member Avatar for sanam2010
0
63
Member Avatar for Mattan360
Member Avatar for RickyG

Read [URL="http://msdn.microsoft.com/en-us/library/8e5545e1.aspx"]this [/URL]article, maybe you can find a solution.

Member Avatar for kvprajapati
0
133
Member Avatar for krishnisilva

[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.

Member Avatar for kvprajapati
0
129
Member Avatar for maddav

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 …

Member Avatar for maddav
0
3K
Member Avatar for erfanjan

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.

Member Avatar for kvprajapati
0
160
Member Avatar for joseph2010

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]

Member Avatar for kvprajapati
0
53
Member Avatar for VibhorG

[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]

Member Avatar for kvprajapati
0
93
Member Avatar for vbahlam

[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]

Member Avatar for kvprajapati
0
75
Member Avatar for judge6

[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.

Member Avatar for judge6
0
137
Member Avatar for Lee21

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]

Member Avatar for verbalurbs
0
1K
Member Avatar for fiaolle

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]

Member Avatar for 4advanced
1
2K
Member Avatar for rohitmanhas_12

[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].

Member Avatar for kvprajapati
0
198
Member Avatar for jamey8420

[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).

Member Avatar for kvprajapati
0
261
Member Avatar for melphic

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]

Member Avatar for melphic
0
104
Member Avatar for bobber12345

Please read this article - [url]http://en.csharp-online.net/Deploying_Windows_Applications%E2%80%94Prerequisites[/url]

Member Avatar for kvprajapati
0
105

The End.