C sharp - programa en csharp con sql help me!

 
Vista:

programa en csharp con sql help me!

Publicado por estrellita (7 intervenciones) el 02/12/2009 22:33:37
necesito la ayuda acabo de hacer un programa en visual studio.net que conecta a db donde me muestra la fecha,año,dia,val(si es 1 o 0 dependiendo 1: si es laborable y 0 si no lo es...) pero me sale un error:
Error 1 El operador '&&' no se puede aplicar a operandos del tipo 'bool' y 'void"....
lo he realizado en capas..
namespace CalendarioForms
{
partial class Calendario1
{
/// <summary>
/// Variable del diseñador requerida.
/// </summary>
private System.ComponentModel.IContainer components = null;

/// <summary>
/// Limpiar los recursos que se estén utilizando.
/// </summary>
/// <param name="disposing">true si los recursos administrados se deben eliminar; false en caso contrario, false.</param>

protected override void Dispose(bool disposing)
{
if (Disposing && Dispose(components != null))------ESTE ES EL ERROR
{
components.Dispose();
}
base.Dispose(disposing);
}

#region Código generado por el Diseñador de Windows Forms

/// <summary>
/// Método necesario para admitir el Diseñador. No se puede modificar
/// el contenido del método con el editor de código.
/// </summary>
private void InitializeComponent()
{
this.rtbResult = new System.Windows.Forms.TextBox();
this.cboMes = new System.Windows.Forms.ComboBox();
this.Ano = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.DataQuery = new System.Windows.Forms.DataGridView();
((System.ComponentModel.ISupportInitialize)(this.DataQuery)).BeginInit();
this.SuspendLayout();
//
// rtbResult
//
this.rtbResult.Location = new System.Drawing.Point(334, 25);
this.rtbResult.Multiline = true;
this.rtbResult.Name = "rtbResult";
this.rtbResult.Size = new System.Drawing.Size(127, 77);
this.rtbResult.TabIndex = 13;
//
// cboMes
//
this.cboMes.FormattingEnabled = true;
this.cboMes.Location = new System.Drawing.Point(135, 81);
this.cboMes.Name = "cboMes";
this.cboMes.Size = new System.Drawing.Size(109, 21);
this.cboMes.TabIndex = 12;
//
// Ano
//
this.Ano.FormattingEnabled = true;
this.Ano.Location = new System.Drawing.Point(135, 27);
this.Ano.Name = "Ano";
this.Ano.Size = new System.Drawing.Size(109, 21);
this.Ano.TabIndex = 11;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(75, 86);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(37, 16);
this.label2.TabIndex = 10;
this.label2.Text = "Mes";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(75, 32);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(35, 16);
this.label1.TabIndex = 9;
this.label1.Text = "Año";
//
// DataQuery
//
this.DataQuery.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DataQuery.Location = new System.Drawing.Point(78, 145);
this.DataQuery.Name = "DataQuery";
this.DataQuery.Size = new System.Drawing.Size(383, 149);
this.DataQuery.TabIndex = 8;
//
// Calendario
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(544, 317);
this.Controls.Add(this.rtbResult);
this.Controls.Add(this.cboMes);
this.Controls.Add(this.Ano);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.DataQuery);
this.Name = "Calendario";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize)(this.DataQuery)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();

}

#endregion

private System.Windows.Forms.TextBox rtbResult;
private System.Windows.Forms.ComboBox cboMes;
private System.Windows.Forms.ComboBox Ano;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.DataGridView DataQuery;
}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de roger

RE:programa en csharp con sql help me!

Publicado por roger (160 intervenciones) el 02/12/2009 23:36:45
visual studio te muestra la linea de codigo donde esta el error, cual es esa linea????
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:programa en csharp con sql help me!

Publicado por estrellita (7 intervenciones) el 02/12/2009 23:56:41
este es el Error 1 El operador '&&' no se puede aplicar a operandos del tipo 'bool' y 'void'
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar