Thank you for our reply.
Enobong Adahada
Posts
-
MouseEventArgs.CLicks in WPF -
MouseEventArgs.CLicks in WPFHello All, Please how do i emplment the WPF equivalent of
public FooClickArgs(NFoo pos, NFoo2 part, MouseEventArgs e)
: base(e.Button, e.Clicks, e.X, e.Y, e.Delta)
{
Position = pos;
PositionPart = part;
}In WPF Canvas. Thank you.
-
Save Stream from Multiple IP CameraThanks alot for the reply
-
Save Stream from Multiple IP CameraPlease how do i save frames from multiple IP Camera, i am using an update of the Camera Vision by Andrew Kirilov. Thank you.
-
Load data from Database into Razor View using Checkbox Checked eventHello, I have a TextArea, A submit button and a check box on a Razor view, i want to load some records from the database in to the textarea and then use the submit to send Mesages to the recods loaded. The issue is that i dont know how to load the data using the check box. This is my code so far: the controller: public ActionResult Message(bool loadData) { List _mobile = new List(); if (loadData) { foreach (var item in db.ParentsModels) { _mobile.Add(new SendMessageViewModel { destination = item.mobile+"," }); } } return View(_mobile); } The View code is: @using (Html.BeginForm()) { @Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.sender, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.sender, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.sender, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.title, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.title, new { htmlAttributes = new { @class = "form-control"} }) @Html.ValidationMes
-
ransfer data from one page to anotherpls i want to transfer data from one content page to another, i use c# and asp.net 4.0 thanks alot
-
Screen ShieldPls i want to create a shield to cover my screen so that user will have to login to use the system, i do not want to use the windows login. thank you.
-
Create Update for Install PackageI have an vs2008 Installation package, and i want to create a patch for it. Please cand somebody help me out? Thank you.
-
some or all identity references could not be translatedI want to add directory security to certain folders on my system, the code is NTAccount identity = new NTAccount(Account); SecurityIdentifier sid = (SecurityIdentifier)identity.Translate(typeof(SecurityIdentifier)); DirectoryInfo dInfo = new DirectoryInfo(Dir); DirectorySecurity dSecurity = dInfo.GetAccessControl(AccessControlSections.Access); dSecurity.AddAccessRule(new FileSystemAccessRule(sid , Rights, ControlType)); dInfo.SetAccessControl(dSecurity); but i keep getting this error: some or all identity references could not be translated
-
C#: How to retrieve text from dgView cell and displayit in the button?Can you post the code u are using so i can see if there are logic bugs.
-
C#: How to retrieve text from dgView cell and displayit in the button?create an event for the gridview like so; private void dgv_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { //runs when the mouse is clicked over a cell if (e.RowIndex > -1 && e.ColumnIndex > -1) { if (e.Button == MouseButtons.Left) { //single-click left mouse button if (dgv.SelectionMode != DataGridViewSelectionMode.CellSelect) { dgv.SelectionMode = DataGridViewSelectionMode.CellSelect; int row = dgv.CurrentCell.RowIndex; int col = dgv.CurrentCell.ColumnIndex; } } textbox.text=dgv.Rows[row].Cells[col].Value.ToString(); } Remeber to Create the same event in the Form.Designer.cs file for the Datagridview. Hope this Helps
-
Disable cd/dvd eject button with codeYes can you help?
-
Disable cd/dvd eject button with codeThanks for the advice, but NO.
-
Disable cd/dvd eject button with codeThe users do not need to use the cd/dvd drives during a certain period in my office, I want a code to disabled the Eject button to keep them out, at this this time. is there a such a code in c#, i found some in vb. Thank for you response.
-
Disable cd/dvd eject button with codeI want to use code to open and close it, i don't want users to open it using the eject button.
-
Disable cd/dvd eject button with codepls i want to disabled permanently my my cd/dvd eject buton. thanks.
-
10 digit Crypted Valuehere is my code: public static string iEncrypt(string plainText, string passPhrase, string saltValue, string HashAlgorithm, int passwordIterations, string initVector, int KeySizes) { byte[] initVectorBytes = Encoding.ASCII.GetBytes(initVector); byte[] saltValueBytes = Encoding.ASCII.GetBytes(saltValue); byte[] plainTextBytes = Encoding.UTF8.GetBytes(plainText); PasswordDeriveBytes password = new PasswordDeriveBytes(passPhrase, saltValueBytes, HashAlgorithm, passwordIterations); byte[] keyBytes = password.GetBytes(KeySizes / 8); RijndaelManaged symmetricaKey = new RijndaelManaged(); symmetricaKey.Mode = CipherMode.CBC; ICryptoTransform encryptor = symmetricaKey.CreateEncryptor(keyBytes, initVectorBytes); MemoryStream memoryStream = new MemoryStream(); CryptoStream cryptoStream = new CryptoStream(memoryStream, encryptor, CryptoStreamMode.Write); cryptoStream.Write(plainTextBytes, 0, plainTextBytes.Length); cryptoStream.FlushFinalBlock(); byte[] cipherTextBytes = memoryStream.ToArray(); memoryStream.Close(); cryptoStream.Close(); string cipherText = Convert.ToBase64String(cipherTextBytes); return cipherText; } static void Main(string[] args) { //string plainText="Hello World!"; string plainText; string passPhrase = "Pas5pr@se"; //string passPhrase = "123456789"; //string saltValue = "123456789";//s@ltValue"; string saltValue = "s@ltValue"; string hashAlgorithm = "SHA1"; int passwordIterations = 1; //string initVector = "abcdefghijklmnop";//@1B2c3D4e5F6g7H8"; string initVector = "@1B2c3D4e5F6g7H8"; int keySize = 64;//256; //Console.WriteLine(string.Format("Plaintext : {0}", plainText)); Console.WriteLine(string.Format("Type Plaintext : ")); plainText= Console.ReadLine(); string cipherText = dEncrypt.iEncrypt(plainText, passPhrase, saltValue, hashAlgorithm, passwordIterations, initVector, keySize); Console.WriteLine(string.Format("Encrypted : {0}", cipherText)); }
-
10 digit Crypted ValueMy plaintex is a four digit xters, after encryption i get a 24 digit set of xters, i want to limit the encrypted values to just 10 digits, is that posible? if so pls how? thank you.
-
10 digit Crypted Valuepls i want to generate a ten digit crypted value from a 4 digit number, pls how do i get it done. thank you.
-
COM Object with Protected Methodswhat i mean is that my COM object only has methods with qualifyers: protected overrides viod some_method().