|
if i recreate a new connection then i am loosing the queries i built in the dataset designer.... is it possible to make it without looosing the queries...?
|
|
|
|
|
If the Refresh in the server explorer does not work , unfortunately you will have to loose them.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
Hi,
I want to disable all the keyboard and mouse event, but at the same time i want to show a popup where user can enter only numbers and press enter if the value is matched then all the event should be released . I tried using blockinput event but it's blocking all the events and i m not able to unblock it..
Any help would be aprciated...
thanks in advance
Prem..
modified on Thursday, April 16, 2009 10:24 AM
|
|
|
|
|
Hi,
I have implemented a device driver in state machine model using C# i.e based on the previous states output new state has to be initiated in one module.in every state i am sending info to Reader connected through serial port.Timer will be running parelally and checking for the data received event of Serial port and once data received state will be moved to nextstate.Its working fine but very inconsistent.Say executing some states and stopping there and waiting for the reply from Serial port.I cant understand whether its Timer problem or serial port problem.Can any one please reply .I will post the code used here which i used for stop module.
private void tmrCOMM_Tick(object sender, EventArgs e)
{
try
{
tmrCOMM.Enabled = false;
#region " Timeout "
if (blnCheckTimeOut)
{
intTimeout++;
if (intTimeout == 200) // 50 * 100 ms
{
AddLog("Timeout, no response from reader!");
intTimeout = 0;
intNextState = STATE_NOTHING;
intState = STATE_NOTHING;
tmrCOMM.Enabled = true;
blnCheckTimeOut = false;
Array.Resize(ref gblbMsgIn, 0);
return;
}
}
#endregion
switch (intState)
{
case STATE_STOP:
lstLOG.Items.Clear();
AddLog("STOP VarioSens...");
RetryCntr = 0;
intState = STATE_STOP_SND_GET_INV;
break;
case STATE_STOP_SND_GET_INV:
{
RetryCntr++;
StopVarioSens sv = (StopVarioSens)pMain.Controls[0];
sv.lblUID.Text = "";
Array.Resize(ref gblbMsgOut, CommandSet.bInventory().Length);
gblbMsgOut = CommandSet.bInventory();
blnRecordReceived = false;
blnCheckTimeOut = true;
intTimeout = 0;
intState = STATE_STOP_RCV_GET_INV;
AddLog(">> Inventory: " + Helper.ConvertToHexString(gblbMsgOut));
Array.Resize(ref gblbMsgIn, 0);
serialPort1.Write(gblbMsgOut, 0, gblbMsgOut.Length);
}
break;
case STATE_STOP_RCV_GET_INV:
if (blnRecordReceived)
{
blnRecordReceived = false;
if (gblbRecord[4] == 0)
{
RetryCntr = 0;
AddLog("<< Reply: " + Helper.ConvertToHexString(gblbRecord));
StopVarioSens sv = (StopVarioSens)pMain.Controls[0];
sv.lblUID.Text = "";
Array.Resize(ref gblbUID, 0);
for (int i = 0; i < 8; i++)
{
sv.lblUID.Text += string.Format("{0:x2}", gblbRecord[13-i]).ToUpper();
if (i < (gblbRecord.Length - 1))
sv.lblUID.Text += " ";
Array.Resize(ref gblbUID, gblbUID.Length+1);
gblbUID[gblbUID.Length - 1] = gblbRecord[6+i];
}
intState = STATE_STOP_SND_SET_PASSIVE;
}
else
{
AddLog("<< Reply: " + sGetVarioSensErrorDescription(gblbRecord[4]));
if (RetryCntr < 3)
{
intState = STATE_STOP_SND_GET_INV;
}
else
{
intState = STATE_NOTHING;
}
}
}
break;
}
}
Ayyappa Konakalla
|
|
|
|
|
Hello ,
I'm facing a problem ,
when i open 2 dialogs in my project my application icon disappear instead i get the ugly .net default icon showing there are 2 windows open , when i click on it , i can see the two different windows with the icons ,
my question is how can i prevent my application icon to disappear and keep it visible no matter how many open dialogs I'm viewing.
thanks in advance!
Net
|
|
|
|
|
With addition to above question
I am facing the same problem
When we click ALTER + TAB to see/select the applications running currently
it shows the same ugly icon in the list
if anybody have solution
please share with us!!!
Thanks in advance
Deep
Happy Coding
|
|
|
|
|
Rightclick on the solution in the 'Solution Explorer', and choose "Properties". Go to the tab labeled "Application", and verify that you have assigned an icon to the application (not just the mainform, as the mainform.icon != app.icon)
I are troll
|
|
|
|
|
yes i got the icon set in the application tab
and in the main form it still happens.
Net
|
|
|
|
|
there is an Icon property of form, you have to change it for each form.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Thanks for reply Xmen!!!
This also does not work
i have done what yous said for each form in my application with addition to ShowInTaskBar property to true
however icons disappears from task bar when two or more forms are opened in the application specifically OS creates the stack(Re-groups) if other more applications are opened, and this time the icon of the stack representing my application change to icon which we can see when we choose new icon file in the Visual studio
|
|
|
|
|
does your icon contains 16x16 format ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
absolutely!!!!!!!
we can not provide 32x32 icon for form if we do so, we wont see it at the start of the title bar of the Form
|
|
|
|
|
SaveTigers wrote: we wont see it at the start of the title bar of the Form
that means its something wrong with your windows
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
What are you creating your Icons with? As far as i know windows requires different size icons for different things. i.e. you need to create an icon that supports multiple resolutions in order for them to be displayed in all instances.
Check this[^] out; its free, and always works for me
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
thanks musefan!!!
I was creating the icon form VS-2005
I did not used any other utility to create icon
let me use this and check if it works
anyways thanks for exploring with this tool
Happy coding
Deep
|
|
|
|
|
Thanks Eddy for reply!!!!!
This seems does not work.........
solution provided by you works only to show the icon in the task bar but not when
two form are opened or in the list appears after pressing ALTER + TAB keys
In my case what you have provided is done already but still facing the same problem
I thing either this is the bug in installer provided by the .net or it has to do with something with OS or with ICON size (as desktop icons are 32x32 and startup->program file,control panel->Add/remove program,taskbar icons are of 16x16)
I am not sure about this
what do you say??
|
|
|
|
|
I am not sure, but I think that this could be caused by one of the Task-Bar settings. Right-Click on the Task-Bar and select Properties from the context menu. There is an option on the first page (XP) for grouping icons, try changing this setting. If it doesn't work, don't forget to reset it. I nearly always forget to do that, and then forget that I have forgotten. Gets awfully confusing.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I say that we build a little testproject to verify whether all is working as it should be (ruling out faults with device drivers and stuff)
Can you please;
* Create a new C# project - a normal executable
* Download the icon from here[^]
* Set the application icon to the one that you just downloaded (under projects' properties)
* Modify your Program.cs file to look like this;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace WindowsFormsApplication7 (namespace is generated, don't change yours!)
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Form1A.Icon = System.Drawing.Icon.ExtractAssociatedIcon(Application.ExecutablePath);
Form1B.Icon = Form1A.Icon;
Form1A.Show();
Form1B.Show();
while (Form1A.Visible && Form1B.Visible)
Application.DoEvents();
}
private static Form1 Form1A = new Form1();
private static Form1 Form1B = new Form1();
}
}
This should compile into an executable that shows two icons - even when you alt-tab. Can you verify this?
I are troll
|
|
|
|
|
Oh thats gr8 Eddy!!!!!!!
thanks a lot
It seems like ICONS created from the VS-2005 have some bug ..........this is what prooved from the above discussion........
with your code problem which i was getting (ALTER+TAB) got solved,however problem with status bar stack is still the same............
|
|
|
|
|
I have a SP with 3 input parameters and 2 ouput paraters. The output parameters are of type array. I needed to know how are these parameters passed to the SP. I have be trying to set different properites/size of the Output parameter but with no success.
Here is the code:
con.Open();
Oracle.DataAccess.Client.OracleCommand cmd = con.CreateCommand();
cmd.CommandText = "SP_Name";
cmd.CommandType = CommandType.StoredProcedure;
Oracle.DataAccess.Client.OracleParameter p_emplid = new Oracle.DataAccess.Client.OracleParameter("p_emplid", OracleDbType.Varchar2, ParameterDirection.Input);
Oracle.DataAccess.Client.OracleParameter p_start_date = new Oracle.DataAccess.Client.OracleParameter("p_start_date", OracleDbType.Date, ParameterDirection.Input);
Oracle.DataAccess.Client.OracleParameter p_end_date = new Oracle.DataAccess.Client.OracleParameter("p_end_date", OracleDbType.Date, ParameterDirection.Input);
Oracle.DataAccess.Client.OracleParameter p_O_EMPLID = new Oracle.DataAccess.Client.OracleParameter("p_O_EMPLID", OracleDbType.Varchar2, ParameterDirection.Output);
Oracle.DataAccess.Client.OracleParameter p_O_EFFDT = new Oracle.DataAccess.Client.OracleParameter("p_O_EFFDT", OracleDbType.Date, ParameterDirection.Output);
p_emplid.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
p_O_EMPLID.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
p_O_EFFDT.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
string[] Arremplid = new string[lstEmployeesRostered.Count()];
for (int counter = 0; counter <= lstEmployeesRostered.Count() - 1; counter++)
{
Arremplid[counter] = lstEmployeesRostered.ElementAt(counter);
}
p_emplid.Value = Arremplid;
p_start_date.Value = Convert.ToDateTime(Session["SMStartDate"]).ToString("dd-MMM-yyyy");
p_end_date.Value = Convert.ToDateTime(Session["EMEndDate"]).ToString("dd-MMM-yyyy");
p_O_EMPLID.Value = DBNull.Value;
p_O_EFFDT.Value = DBNull.Value;
p_emplid.Size = lstEmployeesRostered.Count();
p_O_EMPLID.Value = 1;
p_O_EFFDT.Value = 1;
cmd.Parameters.Add(p_emplid);
cmd.Parameters.Add(p_start_date);
cmd.Parameters.Add(p_end_date);
cmd.Parameters.Add(p_O_EMPLID);
cmd.Parameters.Add(p_O_EFFDT);
cmd.ExecuteNonQuery();
ERROR MESSAGE : OracleParameter.ArrayBindSize is invalid
|
|
|
|
|
Hi All,
I am using tcplistener at server side and connect the server through socket at client side.I want to send the data in XML format,what should i do?
Please help,urgent.
Thanks and Regards,
Lalit Narayan
|
|
|
|
|
XML Format is just a normal string. Convert it to byte[], then send it.
byte[] data = Encoding.ASCII.GetBytes("<root>abc");
tcpClient.Write(data, 0, data.Length);
|
|
|
|
|
I am trying to open MS word file or PDF fie in my project tel me what should i do for this.
I have searched on net but still i am facing problem in this code which is,
if (this.openFileDialog1.ShowDialog() == DialogResult.Yes)
{
// set the file name from the open file dialog
object fileName = openFileDialog1.FileName;
object readOnly = false;
object isVisible = true;
// Here is the way to handle parameters you don't care about in .NET
object missing = System.Reflection.Missing.Value;
// Make word visible, so you can see what's happening
WordApp.Visible = true;
// Open the document that was chosen by the dialog
Word.Document aDoc = WordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible);
// Activate the document so it shows up in front
aDoc.Activate();
// Add the copyright text and a line break
WordApp.Selection.TypeText("wFile.doc");
WordApp.Selection.TypeParagraph();
}
In Bold code their is error this is not working.
WHAT SHOULD I DO ?
|
|
|
|
|
Sajjad Leo wrote: WHAT SHOULD I DO ?
State the error that you are getting and use the <pre> tag around code when you're posting
I are troll
|
|
|
|
|
This is the error
no overload for method 'open' takes '12' arguments
|
|
|
|