|
i have a project to show modulations of a wave which is loaded from a bipmap image.and throw it on another wave using amplitude, frequency and phase modulations.
any who can help me out plz contact at
sahil_892@hotmail.com
|
|
|
|
|
So what part do you need help with ? How much have you done ?
And why do people keep posting here with email addresses ? All you'll get from that is spam, no-one's going to help you if you're not willing to read the site.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello All,
I made database and i used bit type to store the true false but i had error when i trying to parse it with c#
and this the code.
int true = int.pars(Dataset.Table[0].Rows[0].Itemarray[0].tostring());
Please help
hay
|
|
|
|
|
|
Yes i tried it but didnt work too.
Thanks,
Hay
|
|
|
|
|
Hi,
Can you post your code?
(Or send it to me?)
|
|
|
|
|
I have a DataGrid bound to a DataView. The "RowFilter" property changes dynamically based on which item is selected from a comboBox. The "table" property of the DataView does not change. If I just select different items (Employee Names) from the comboBox the the DataGrid displays the appropriate rows pertaining to that particular employee. However, when I modify some of the employees records (im trying to change data that changes the employeeID from a set of selected rows in the DataGrid). Howerver, when I run the code, the correct number of rows get updated, but all not the rows intended. Actually If I choose 5 rows, only two of the rows selected get updated plus 3 more that are higher in the row index. by the way, I consider myself a newbie (at about 40% or less knowledge)
Here are sections code pertaining to this issue.
/////////////////////////////////////////////////////////////////
/ comboBox population and dataGrid dataSource binding to DataView
/////////////////////////////////////////////////////////////////
// If no selection has been made in the comboBox
if(cbTransferFrom.SelectedIndex == -1)
{
// set the "Table" property of the DataView object
da.dvLeads.Table = da.dataSet.Tables["Campaign"];
da.dvLeads.RowFilter = "";
da.dvLeads.Sort = "Status, APID ASC";
}
else
{
// No need to set the "Table" property again,
// just re-set the "RowFilter" property to filter for the desired rows
// hTable is a Hashtable containing the Employee's Name and the corresponding
// EmployeeID
da.dvLeads.RowFilter = "APID = " + hTable[cbTransferFrom.SelectedItem.ToString()];
da.dvLeads.Sort = "Status, APID ASC";
}
dataGrid1.DataSource = da.dvLeads;
/////////////////////////////////////////////////////////////////
/ Selecting Rows from DataGrid
/////////////////////////////////////////////////////////////////
private void dataGrid1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
string temp = "";
// indexArray will hold the rowIndex for the row selected so we can know
// which row to modify later
indexArray = new int[da.dvLeads.Count];
for(int i = 0; i < da.dvLeads.Count; i++)
{
if(dataGrid1.IsSelected(i).ToString() == "True")
{
indexArray[itemsCount] = i;
itemsCount++;
temp = temp + "DataView RowIndex: " + i + " Name: " + dataGrid1[i,4].ToString() + " " + dataGrid1[i,5].ToString() + "\n";
}
}
MessageBox.Show(temp);
lblLeadSelected.Text = "Leads Selected: " + itemsCount;
}
/////////////////////////////////////////////////////////////////
/ Modifying the data in the dataView
/////////////////////////////////////////////////////////////////
string temp = "";
// itemsCount is the length of the indexArray
for(int i = 0; i < itemsCount; i++)
{
da.dvLeads[indexArray[i]][1] = hTable[cbTransferTo.SelectedItem.ToString()];
da.dvLeads[indexArray[i]][2] = hTable[cbTransferTo.SelectedItem.ToString()];
ChangeLeadsDisplay();
str = str + "-";
temp = temp + "DataView RowIndex: " + indexArray[i] + " Name: " + da.dvLeads[indexArray[i]][4].ToString() + " " + da.dvLeads[indexArray[i]][5].ToString() + "\n";
MessageBox.Show(temp);
}
This is the result:
Rows I wanted to change Rows that got changed
1. Employee 1 <-- 1. Employee 1
2. Employee 2 <-- 2. Employee 2 <--
3. Employee 3 <-- 3. Employee 3
4. Employee 4 <-- 4. Employee 4 <--
5. Employee 5 <-- 5. Employee 5 <--
6. Employee 6 6. Employee 6
7. Employee 7 7. Employee 7 <--
8. Employee 8 8. Employee 8
9. Employee 9 9. Employee 9
10. Employee 10 10. Employee 10
11. Employee 11 <--
Any help will be greatly appreciated
|
|
|
|
|
I can run a batch file that is in a folder on the local hard drive using "System.Diagnostics.Process proc = System.Diagnostics.Process.Start(psi);".
How do you run a batch file that in on the web server?
thanks
Charles Ihle
|
|
|
|
|
You pretty obviously can't run it from the client. You'd need an application running on the webserver that listens for clients and runs the batch file requested.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hello everybody !!!
I have some question for you...... I have router connect to modem .... 2 computers connected to router..... on one of them i running Remote Server .... from the other one i running Client App that connect to Remote Server , i use connection string like
tcp://192.168.*.*:2301/ServerObj .....
the question is , if i want to connect from outside my network ( internet ) to server , what connection string i use ?? or if there some another solution for this problem ??
|
|
|
|
|
If your client is behind a firewall, then you can't the TcpChannel. You can try using the HttpChannel instead. If your proxy server allows HTTP traffic, then it should work fine.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
After changigng of all application configurations to Http,
you mean i can just enter on outside network client connection string like
http://wanaddress:2301/ServerObj and it should work ?
|
|
|
|
|
|
Hey!
Consider the folowing string:
string text = "This is a Test\r\nThere is nothing more to it that this\r\n";
If i show this in a list box the \r(CR) and \n(LF) will be switched to boxes!?
Is there any way to show "\r" and "\n" where this signs('\n' and '\r') apare insted?
Best Regards
SnowJim
|
|
|
|
|
Hey!
I have found out how to do:
As long as '\r' and '\n' is counting as one char it will be handled as CR nad LF.
By using this
inData = inData.Replace("\r", "\x5C\x72");<br />
inData = inData.Replace("\n", "\x5C\x6E");
The '\r and '\n' will be '\' + '\r and '\' + '\r'.
Best Regards
SnowJim
|
|
|
|
|
I am tryign to download email attachement from pop3 server .How will come to know that email is downloaded successfully
|
|
|
|
|
Im creating a stream of a file in a resource, but i want to know how to save it on the C:\ drive so that the user can get to it.
|
|
|
|
|
hi,
System.IO.FileStream fs=Get Your Stream here.
DialogResult rs=this.saveFileDialog1.ShowDialog();
byte[] data = new byte[fs.Length - 1];
fs.Read(data, 0, data.Length);
fs.Close();
if(rs==DialogResult.OK)
{
str=(System.IO.FileStream)this.saveFileDialog1.OpenFile();
str.Write(data,0,data.Length);
str.Close();
}
saveFileDialog1 is instance of SaveFileDialog class
Now You can save stream in the harddisk.
regards
pubudu.
|
|
|
|
|
Thanks, my life has been saved.
|
|
|
|
|
Hi!
Someone knows how can I implemment an History List in a TextBox?
Something where the User type a word and the control "remember" what the user has typed and shows a list (similar to comboBox) with phrases begining with the word he are writing.
If someone knows where I can get a sample or something, please help me!
Thnks in advance.
Best Regards
Robert
Sorry: My english is too poor
|
|
|
|
|
Search for auto-complete or auto-completion. Those words should get you to a sample that will help you out.
John
"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.
|
|
|
|
|
Yes that was exactly what Im looking for!
thanks
Robert
|
|
|
|
|
Hi, I have the following regex pattern declared:
private const string ParamPattern = @"(?<name>@\w+)='(?<value>.*?)'";
this is used to match all occurences of eg/ @myVar='myVal' in a string which may have multiple "params". The whole string often looks like:
somthing[@myVar1='myVal1'][@myVar2='myVal2']
so the above would find 2 matches using my regex. Here is my problem... if one of the variables has a single quote it gets cut off ie/
myTestVar='my apostrophe'd val'
the group called "value" in my regex only matches up to the apostrophe. I can easily replace 1 apostrophe with 2 so it becomes
myTestVar='my apostrophe''d val'
but I cant work out how to change my regex to ignore double apostrophes in the value group...any help appretiated.
|
|
|
|
|
Well, you could use zero-width assertions:
string s = @"myTestVar='my apostrophe''d val'";
Match m = Regex.Match(s, @"'(.*?)(?<!')'(?!')");
if (m.Success) Console.WriteLine(m.Groups[1].Value);
output: my apostrophe''d val
The (?<!') asserts that the character before the apostrophe (used in the match) is not an apostrophe. And the (?!') asserts that the character after is not an apostrophe.
|
|
|
|
|
Thank you for your help, I managed to fix this for now in a very simple way that I didnt think about yesterday!
I wrapped my current exp with \] and \[ so that it only matches the apostrophe if it weas next to a closing square brace.
|
|
|
|