|
What would be the most practical Regex pattern for a whole-word-only search?
Example: Match "life" but not "life's"
|
|
|
|
|
Okay, never mind. NOW I know what the ExplicitCapture option does.
|
|
|
|
|
Hello
i need some help
i have developed a sms software on c# ,i have used gsmcommm and pduconverter its working but its just sending 160 char message and i need to send long messsages can any one help me plzzzz
Regards
|
|
|
|
|
You should have found out what SMS stands for first and how it works, Short Message Service. The message limit is 160 characters by specification. You'll have to break up longer messages into multiple 160 character limit messages.
|
|
|
|
|
can you plz guide me how can i break up message and send it
when i breakup message will reciever get it in one message or in multiple messages?
|
|
|
|
|
You've got to be kidding me?? You mean to tell me that you don't have the skill to get the Length of a string (your message) and how to grab SubStrings of 160 characters in length? If you can't do this, then I highly suggest picking up a beginners book on C# and working through it before you attempt to write another application. This is very basic "Strings 101" stuff you're asking about.
|
|
|
|
|
i know how to break up message after 159 char but when i break it in to mutiple messages and send it to any number the reciever recieve it in multiple messages
the thing i want is that when i send it the reciever got it in a single message.
|
|
|
|
|
eraser950 wrote: i want is that when i send it the reciever got it in a single message.
You have no control over how the reciever recombines, or more acurately, does NOT recombine them. You cannot force the reciever to put the message back the way you want it. They will get each as a seperate message and there is nothing you can do about it. Thatose are the limitations you chose to tolerate when you chose to use SMS as a communication medium.
|
|
|
|
|
|
Maybe, but maybe not:
In the cellular phone industry, mobile phones and their networks sometimes support concatenated short message service (or concatenated SMS)
|
|
|
|
|
You can download the technical specification here[^] (registration required)
You want to look for PDU mode SMS. Note that concatenated SMS is quite a complex subject ( because the order of delivery of sms messages is not guaranteed, enough information must be included to allow message re-assembly on the receiving side. Your ability to send concatenated SMS will depend on
- the library you use for sending messages (don't know the ones you mention)
- the ability of the phone on the other end to decode concatenated SMS (most phones do it nowadays)
If you want to read up on it before embarking on an adventure, have a read here[^].
|
|
|
|
|
|
I have a datatable that acts as a DataSource for control. Programmatically I am also deleting some rows from this table using code like
foreach (DataRow row in myDataTable.Rows)
{
if (row["Id"].ToString().CompareTo(myControl.SelectedValue.ToString()) == 0)
{
row.Delete();
break;
}
}
I am not calling AcceptChanges on datatable. However after this delete, I don’t see any rows that have a status DataViewRowState.Deleted
Any ideas what I may be missing?
|
|
|
|
|
I have this test code where I can see the same behavior. Can someone point what am I doing wrong here?
static void Main(string[] args)
{
DataTable table = new DataTable();
DataColumn col = new DataColumn("ID", System.Type.GetType("System.Int32"));
table.Columns.Add(col);
for (int i = 0; i < 10; i++)
{
DataRow row = table.NewRow();
row["ID"] = i;
table.Rows.Add(row);
}
Console.WriteLine(table.Rows.Count);
for (int i = 0; i < table.Rows.Count;i++ )
{
if (Convert.ToInt32(table.Rows[i]["ID"]) == 4)
{
table.Rows[i].Delete();
break;
}
}
Console.WriteLine(table.Rows.Count);
DataTable deletedRows = table.GetChanges(DataRowState.Deleted); // This returns NULL, shouldn't it have one row here???
for (int i = 0; i < deletedRows.Rows.Count; i++)
{
Console.WriteLine("Deleted: " + deletedRows.Rows[i]["ID",DataRowVersion.Original].ToString());
}
}
|
|
|
|
|
Got it, was missing AcceptChanges()
|
|
|
|
|
When you delete rows using DataRow.Delete() method, they're immediately deleted from the DataTable. What DataTable.AcceptChanges() does is to propagate back the changes to the original data source of the DataTable (e.g., an SQL Server database)
|
|
|
|
|
ajaykulkarnir wrote: on selecting Comp-2 i want who is logged on to Comp-2 machine present in LAN
One option would be using the PowerShell[^]. You could also query WMI[^] for Win32_LoggedOnUser . You could also opt to write a small daemon that sends a small message containing the Environment.UserName to the server.
I are Troll
|
|
|
|
|
Hi Everybody!
I have need a help! How i can get source code of a popup window via webbrowser? i navigate a url and get webbrowser document elements. But when i open a popup window i dont get source codes and document elemens of popup window.
Some Idea?
|
|
|
|
|
Hello All,
When internet explorer open and have it maximized on the screen, and if then goback to my application and then click on menuitem. Which popups a child form. Upon closing child form, parent form loosing its focus and IE show uop on Top of my application.
How i can i activate my Application when any child form closed.
Thanks In Advance.
Sri
|
|
|
|
|
How do you show the childform? Did you set the owner in the .Show() statement?
I are Troll
|
|
|
|
|
Hello Eddy,
Yes, i set the parent form as property. And before closing childform i called prentform.activate() method.
Regards,
Sri
|
|
|
|
|
sri_0099 wrote: Yes, i set the parent form as property. And before closing childform i called prentform.activate() method.
The parent isn't always the owner.
There's an overloaded version of the .Show and .ShowDialog method that takes an Owner-handle. The OS will reset the focus to this "owner" if the window gets closed. Something like this;
new MyForm.Show(this); If all is well, then you should be able to remove the ParentForm.Activate(), just closing the child should be enough.
I are Troll
|
|
|
|
|
I have a Forms Application which I have just added the MothCalendar control too and I am ubale to change any of the properties, such as BackGroundColor, Size, etc.
I have tried using the designer and in code but the interface does not change!
Is there a trick to using this control?
Thanks
|
|
|
|
|
Probably because there is no control called as MothCalendar
On serious note, MonthCalendar cannot be modified while you are using Visual Styles for the control. You need to disable the visual styles and Month Calendar will respond to your modifications.
If you do not want to switch off visual styles for the complete application, extend the MonthCalendar class and then disable the visual styles for a that class. Then you can use this new control on your forms.
|
|
|
|
|
Okay call me dumb!!!! dahhh....
Thansk for the suggestion. I do have one other question for you... Where do I turn on/off "Visual Styles" for the MoNthCalendar? It is not in the controls properties where else should I be looking?
|
|
|
|