|
combobox.SelectedItem = "item";
or
combobox.SelectedIndex = 0; // any item on 0th index
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Listen events from listbox.
I Love KongFu~
|
|
|
|
|
Can we block internet to client systems where
1. both server, an internet connection and client system are connected through a single hub or switch.
2. both client and server uses windows xp OS
The software which has to be develeoped uses Winforms where both client and server have 2 different set of applications. The client application provides an login option. when the user types in the login information, the information is sent to the system considered as server, authentication is done and if the login information is valid internet has to be provided to the system considered as client.
The internet should not be provided if the client application is installed and it is not running in the client system. Only if the client application is running and login is authenticated, the internet connection has to be provided to the system.
This software is developed for college project purpose. Can anyone assist me or send me the web service code such that internet connection is provided to client only after server authentication. And also how the server and client has to be connected through hub/switch in detail.
|
|
|
|
|
Even i am trying something like that, but my requirements are a bit different. I have a Windows Server 2003 enterprise standard acting as web server and a well defined network architecture using Sonic Wall as firewall and 3com network switches. Sonic Wall has limited functionality, so that's y i also have such a requirement of blocking a couple of users to all websites except a few business related sites. Once i complete it, i would be happy to guide you although i also have a vague idea of such a thing.
|
|
|
|
|
I am working in vb.net 2008 c#
My application work in two languages (English and Hindi)
In My application I use same font for both languages (Microsoft Sans serif)
Because in my application when I use Hindi font for Hindi in my Design are Disturb that’s I use same font.
My problem in Crystal Reports when I Exports the Reports in word the Hindi font are cut in the word file and when I imports in .pdf file that’s not show the Hindi font . If anybody have solution please give me please it’s urgent
And if anybody know that which font are use in both please that’s tell me also
|
|
|
|
|
I created a table in sqlserver database.Now, i want a code by which i can get the list of data of specific column of that table(eg. C_ID)in combobox in front end.
|
|
|
|
|
Assuming you're returning a DataSet[^] that contains one DataTable[^] that has two column[^]s, then this works.
Adapt to your specific situation.
comboBox1.DataSource = ds.Tables[0];
comboBox1.DisplayMember = "Display";
comboBox1.ValueMember = "ID";
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
hi,
i want to seach a keyword in the content of a attachment which is converted into bytearray[] and stored into sql as varchar(MAX) datatype.
now i wnt the to convert the key word into bytearray n i hv done that but now i hv to convert it into varchar(max) in my code .
can some one help me!!!!!!!!!!!!!!!!
|
|
|
|
|
why you making this so complicated ?
First search for a number, then convert it to byte[] then merge all array elements in sql varchar data type. Is this you are trying to do ?
If you wanna store byte[] in sql then you should use "Image" data type.
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
thanks for the reply...
i dont want to save it in db
actually i want to implement the search functionality where i want to find a keyword in all the attachment stored on db all the attachments r converted into bytearry through code then stored inti db as varchar
i want ti do the same with the keyword but i dont want to store it i want to pass it in my stored procedure i hv converted it into byteaaray n how do i encrypt it so that it is same as in db through my code
|
|
|
|
|
I have placed a datagrid in winforms and i added a bindingsource to the grid
after that i go to edit columns and changed the cell into datagrid combobox
one datagrid rows contains 10 columns
my question is depend upon the selection in the combo box the remaining all columns values should be displayed
any one can help me please
|
|
|
|
|
hi
i have to generate a report for my project and it is in the following format
Loads on Structure // Heading
Dead Load //Sub Heading1
Dead Load1 -- 200 KN/m
Dead Load2 -- 250 KN/m
Live Load // sub heading2
Live Load1 -- 150 KN/m
Live Load2 -- 100 KN/m
etc like
Now to display the report in this format
which report should i choose
and which one is best and has more advantages
i dont know about these reports
but by R&D i came to know that Report.rdlc cannot export to Ms-word application
now what to do ...
Please give me a good advise
Thanks in advance
lavan
|
|
|
|
|
I will try to run the nlp project. I don't know how to conver the ".nbin" file to ".bin".
|
|
|
|
|
F2 lets you rename a file. If you need to convert between formats, then you need to read up on the formats and write a converter.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi everyone,
I know this's a lame question but what is the shortest way to modify a control in a separate thread without raising the cross-thread exception..
I basically have this datagrid control and when changing its databinding properties, it's binding fine except it doesn't show it correctly.
Please help guys!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
you can turn off the cross thread exception if you want to. That's the quickest way to do it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Yeah... How about slowing down a bit
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Christian Graus wrote: you can turn off the cross thread exception if you want to. That's the quickest way to do it
it also is the quickest way to a disaster. I never understood why MS introduced this property,
I see no use for it whatsoever. The use of InvokeRequired/Invoke, either explicit or hidden as in BackgroundWorker events, is mandatory.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
modified on Friday, June 10, 2011 11:29 PM
|
|
|
|
|
Usually, I'm using BeginInvoke with an anonymous method:
string newValue = ...;
BeginInvoke(new Action(delegate {
theControl.Property = newValue;
}));
You have to be a bit careful with BeginInvoke as it's always an asynchronous call; when called from the GUI thread it will delay executing the delegate until your code returns to the message loop. And you have to be careful what variables you use in the delegate - e.g. if you use a loop variable, it might have changed to the value for the next iteration before BeginInvoke calls your delegate.
But BeginInvoke is faster than Invoke because it doesn't have to wait, and it doesn't have the potential for deadlocks.
|
|
|
|
|
Hey, thanks Daniel!! That was short and very helpful!
Thanks again mate!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
I thought it would be possible to add a static event handler and attach to it from outside the form code add the event listener then instantiate the form with Application.Run(new Form()).
Inside the Form, the Event gets fired, and then calls Form.Close(), Application.Exit() on the Sender object (the Form) but I get an error that I cannot access an Disposed object.
I thought this would be possible if the EventHandler was static I thought it would not care if the object was disposed.
Thanks for any help guys sorry I am a newbie to UI programming.
|
|
|
|
|
Not sure I got your question. Please post relevant code so that we understand what you are saying.
|
|
|
|
|
Thanks Navaneeth,
Here is an example of what I am trying to do:
// Entry Point:
DummyForm.TestsFinished += new EventHandler(DummyForm_TestsFinished);
// Start Processing the query
// viewFrameworkDummyForm.ProcessQueryInstructions(queryInstructions);
// Start the Application message pump (the viewFx has to be run on a form to be contained within a thread UI)
DummyForm myForm;
// ****************************************
// I get a Cannot access disposed object ex on this below line:
// ****************************************
Application.Run(myForm = new DummyForm(queryInstructions));
// DummyForm:
public partial class ViewFrameworkDummyForm : Form
{
private List&lt;QueryInstruction&gt; queryInstructions;
public static event EventHandler TestsFinished;
/// <summary>
/// Constructor
/// <summary>
void DummyForm(List<QueryInstructions>queryInstructions)
{
…
// Does stuff with query instructions…
…
// Event gets fired somewhere in the constructor…
OnQueryInstructionsProcessed(this,new EventArgs());
…
}
// Notifies the attached events to QueryInstructionsProcessed, that the query instructions have been processed.
void OnQueryInstructionsProcessed(object sender, EventArgs e)
{
//Inform that the tests have been finished, and then close the form..
TestsFinished(this, new EventArgs());
this.Close();
Application.Exit();
}
}
|
|
|
|
|
i wanna pull multiple records in from a database and display them in different labels
I was thinking of returning them in an array then adding them to the specified labels, can anyone point me to the an example or aid me.
sample code
public partial class _Default : System.Web.UI.Page
{
SqlConnection con = new SqlConnection("server=BABOO;uid=sa;password=sa;database=quiz");
protected void Page_Load(object sender, EventArgs e)
{
con.Open();
string query;
query = "select QuestionText,AnswerA,AnswerB,AnswerC,AnswerD from quest where QuestionID='1'";
SqlCommand cmd = new SqlCommand(query, con);
SqlDataReader dr;
dr = cmd.ExecuteReader();
while (dr.Read())
{
nt rbCount = Convert.ToInt32(TextBox2.Text);
RadioButton[] radioButtons = new RadioButton[rbCount];
for (int i = 0; i < rbCount; ++i)
{
radioButtons[i] = new RadioButton();
radioButtons[i].Text = dr.GetValue(1).ToString();
}
Please i need your help
Ferron
|
|
|
|
|
So, this seems a little retarded to me.
1 - you want to have a textbox showing how many answers to show ? So, what if the right answer gets hidden ?
2 - how do you make sure that textbox2 contains a number ?
3 - why don't your variables have real names ?
4 - You're reading the same value from the answer list every time
5 - you never add the radio buttons to your UI
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|