15,905,874 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 12076824 (Top 59 by date)
Member 12076824
1-Feb-17 13:06pm
View
I realized that today, I added that to the question as well. Thanks for your response
Member 12076824
1-Feb-17 11:48am
View
The error is caused because of same filename in another folder(As I have images in all the folders with same names), it's not caused due to the folder being tried to delete. About the application crashing I have logic in place to check if that particular directory no longer exists remove from combobox and move to next batch or first batch if deleted item was last one.
Member 12076824
6-Oct-16 10:33am
View
Thanks for response. I understand that but since we have some of the same keys for button, and its some third party existing system have similar functionality and I am trying to replicate that.
Member 12076824
6-Oct-16 10:31am
View
Thank you for response no error, but it doesn't work as intended or it just work with ALT,N instead of ALT,A,N for next menu item.
Member 12076824
30-Sep-16 11:06am
View
Thanks for response, I was working on the part it worked fine as you pointed at the end. I as trying to get help with inserting blank rows in the middle, so it was not there
Member 12076824
30-Sep-16 11:00am
View
Thanks for response and sorry for confusion. I was trying to insert row only if its not saved yet. It may be at the end or may be some where in the middle of some rows
Member 12076824
29-Aug-16 10:56am
View
I am trying to zoom selected part of image from usercontrol onto pictureBox. It works fine when scroll position is at the top part of the usercontrol, but when I try to scroll to bottom of the image it doesn't works as old coordinates gets assigned to current position of the usercontrol. When usercontrol's scroll position is at top co-orinates are (0,0), but when position is changed to bottom co-ordinaets remains(0,0) from the middle of the image
Member 12076824
14-Jun-16 17:38pm
View
Thanks for reply Bill.Both are supposed to be 13, I will give that a try.
Member 12076824
14-Jun-16 17:33pm
View
Deleted
One thing it appears typo at EmailAddress at(cmd.Parameters.AddWithValue("@EmailAddres", tbEmail.Text);) where "s is missing.
Also if possible try to run same query in SQL management studio.
Member 12076824
21-May-16 0:59am
View
Image Panel I am using is user control that was created. It works similar to panel, I am trying if the user clicks certain section of the image in corresponding to the field for data entry. The complete section of image that was clicked by user(can be some area of rectangle) needs to be magnified and display either into the pictureBox or any other option.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace ImageMagnifier
{
public partial class ImagePanel : UserControl
{
public ImagePanel()
{
InitializeComponent();
// Set the value of the double-buffering style bits to true.
this.SetStyle(ControlStyles.AllPaintingInWmPaint |
ControlStyles.UserPaint | ControlStyles.ResizeRedraw |
ControlStyles.UserPaint | ControlStyles.DoubleBuffer, true);
}
int viewRectWidth, viewRectHeight; // view window width and height
float zoom = 1.0f;
public float Zoom
{
get { return zoom; }
set
{
if (value < 0.001f) value = 0.001f;
zoom = value;
displayScrollbar();
setScrollbarValues();
Invalidate();
}
}
Size canvasSize = new Size(60, 40);
public Size CanvasSize
{
get { return canvasSize; }
set
{
canvasSize = value;
displayScrollbar();
setScrollbarValues();
Invalidate();
}
}
Bitmap image;
public Bitmap Image
{
get { return image; }
set
{
image = value;
displayScrollbar();
setScrollbarValues();
Invalidate();
}
}
public string ImagePath { get; set; }
InterpolationMode interMode = InterpolationMode.HighQualityBilinear;
public InterpolationMode InterpolationMode
{
get{return interMode;}
set{interMode=value;}
}
protected override void OnLoad(EventArgs e)
{
displayScrollbar();
setScrollbarValues();
base.OnLoad(e);
}
protected override void OnResize(EventArgs e)
{
displayScrollbar();
setScrollbarValues();
base.OnResize(e);
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
//draw image
if(image!=null)
{
Rectangle srcRect,distRect;
Point pt=new Point((int)(hScrollBar1.Value/zoom),(int)(vScrollBar1.Value/zoom));//lynda added - 10
if (canvasSize.Width * zoom < viewRectWidth && canvasSize.Height * zoom < viewRectHeight)
srcRect = new Rectangle(0, 0, canvasSize.Width, canvasSize.Height); // view all image
else srcRect = new Rectangle(pt, new Size((int)(viewRectWidth / zoom), (int)(viewRectHeight / zoom))); // view a portion of image
distRect=new Rectangle((int)(-srcRect.Width/2),-srcRect.Height/2,srcRect.Width,srcRect.Height); // the center of apparent image is on origin
Matrix mx=new Matrix(); // create an identity matrix
mx.Scale(zoom,zoom); // zoom image lynda add *1.3f to vertical stretch
mx.Translate(viewRectWidth/2.0f,viewRectHeight/2.0f, MatrixOrder.Append); // move image to view window center
Graphics g=e.Graphics;
g.InterpolationMode=interMode;
g.Transform=mx;
g.DrawImage(image,distRect,srcRect, GraphicsUnit.Pixel);
}
}
Member 12076824
21-May-16 0:49am
View
Its a tif image that's loaded at comboBox selectIndex change event and its different image for every index changed( which is selected from the items listed in combobox from directory). I have single version of image, I am trying to magnify the area of the actual image when user clicks around particular area that will cover up entire section of that page like rectangle.
Member 12076824
20-May-16 21:32pm
View
Thanks for reply. Sorry about that I thought I added tag. Its a windows app. I want to magnify part of the image that would be displayed on the PictureBox as zoomed area of that particular location user want to magnify
Member 12076824
20-May-16 21:28pm
View
Thanks for reply. Sorry for confusion. I have image panel component to display images. I am looking for some event like imagepanel_click
Member 12076824
4-Mar-16 12:42pm
View
Thanks Mike. I will give it a try and see if I can make it work.
Member 12076824
4-Mar-16 11:15am
View
Thanks for response. I appreciate your help. I am running into problem as it throws error parameter is not valid when I try to magnify area around rightmost corner of the image(Maybe if I can get way to display that part of the image on left rather than on right side) and magnified image disappears when scrolled down to rest of the image in picturebox. I am using split container to display picture box in one area and data fields in another area.
Rectangle R = new Rectangle(0, 0, 60000, 480);
Pen cpen = new Pen(Color.Black, 3);
Point mouseDownLoc;
public Form()
{
InitializeComponent();
//Rectangle screen = Screen.PrimaryScreen.WorkingArea;
//int w = Width >= screen.Width ? screen.Width : (screen.Width + Width) / 2;
//int h = Height >= screen.Height ? screen.Height : (screen.Height + Height) / 2;
//this.Location = new Point((screen.Width - w) / 2, (screen.Height - h) / 2);
//this.Size = new Size(w, h);
this.pictureBox2.MouseEnter += (sender, args) => this.pictureBox1.Show();
this.pictureBox2.MouseLeave += (sender, args) => this.pictureBox1.Hide();
this.pictureBox2.MouseMove += (sender, args) => DoMagnification();
}
private void DoMagnification()
{
try
{
//clean up after our last run
var oldImage = this.pictureBox1.BackgroundImage;
if (oldImage != null)
oldImage.Dispose();
var position = this.pictureBox2.PointToClient(Cursor.Position);
var pboxWidth = this.pictureBox1.Width / 2;
var pboxHeight = this.pictureBox1.Height / 2;
Bitmap image = new Bitmap(this.pictureBox2.Width, this.pictureBox2.Height);
// this.pictureBox2.DrawToBitmap(image, this.pictureBox2.Bounds);
// ensure we dont go out of bounds
Rectangle cloneRect = new Rectangle(Math.Max(position.X, 0), Math.Max(position.Y, 0), pboxWidth, pboxHeight);
if (cloneRect.Width + cloneRect.X > image.Width)
cloneRect.X -= (image.Width - cloneRect.Width);
if (cloneRect.Height + cloneRect.Y > image.Height)
cloneRect.Y -= (image.Height - cloneRect.Height);
System.Drawing.Imaging.PixelFormat format =
image.PixelFormat;
// Clone a portion of the Bitmap object.
Bitmap cloneBitmap = image.Clone(cloneRect, format);
// Draw the cloned portion of the Bitmap object.
using (var graphics = CreateGraphics())
graphics.DrawImage(cloneBitmap, 0, 0);
this.pictureBox1.BackgroundImage = cloneBitmap;
this.pictureBox1.BackgroundImageLayout = ImageLayout.Zoom;
this.pictureBox1.Location = OffsetByAFewPixels(position);
}
catch (Exception ex)
{
lblerror.Text = ex.Message;
}
}
private Point OffsetByAFewPixels(Point location)
{
return new Point(location.X + 100, location.Y + 100);
}
private void pictureBox2_MouseEnter(object sender, EventArgs e)
{
// splitContainer1.Panel1.Focus();
try
{
int fx = 0;
int fy = 0;
fx = this.ClientRectangle.Left;
fy = this.ClientRectangle.Top;
Point startpoint = pictureBox1.PointToScreen(new Point(0, 0));
Graphics G = this.CreateGraphics();
Point Position = new Point(fx + pictureBox1.Left, fy + pictureBox1.Top);
Bitmap screenGrab = new Bitmap(pictureBox2.Image.Width, pictureBox2.Image.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
G = Graphics.FromImage(screenGrab);
G.CopyF
Member 12076824
12-Feb-16 15:20pm
View
Thanks for response. I tried this looks like I am missing something that's failing to fill dataset. At this moment it returns no records in the dataset. SP gets me data at SQL Level
Member 12076824
7-Dec-15 10:51am
View
Sorry about that, It was by mistake I posted stored procedure in comment.
Member 12076824
7-Dec-15 10:50am
View
Thanks for updating that.
Member 12076824
4-Dec-15 18:49pm
View
Deleted
STORED PROCEDURE
@BATCH_NAME VARCHAR(12),
@SFN VARCHAR(13),
@DOC_SEQ_NUM INT,
@ERR_CODE INT OUTPUT,
@ERR_MSG VARCHAR(256) OUTPUT,
@TABLE_NAME VARCHAR(50) OUTPUT
AS
SET NOCOUNT ON
SET @ERR_CODE = 0
SET @ERR_MSG = ''
SET @TABLE_NAME = ''
SET @BATCH_NAME = UPPER(LTRIM(RTRIM(@BATCH_NAME)))
SET @SFN = LTRIM(RTRIM(@SFN))
PRINT 'BATCH_NAME = ' + @BATCH_NAME + ' AND SFN = ' + @SFN
IF LEN(@BATCH_NAME) = 12 AND LEN(@SFN) = 13
BEGIN
SELECT DISTINCT A.SFN, A.DOC_SEQ_NUM, B.LRN, A.BATCH_NAME, B.FIRST_PERSON_LNAME, B.FIRST_PERSON_FNAME, B.FIRST_PERSON_MNAME,
CONVERT(CHAR, B.FIRST_PERSON_DOB,101) AS FIRST_PERSON_DOB, B.SECOND_PERSON_LNAME, B.SECOND_PERSON_FNAME, B.SECOND_PERSON_MNAME,
CONVERT(CHAR, B.SECOND_PERSON_DOB,101) AS SECOND_PERSON_DOB, CONVERT(CHAR, B.DOM,101) AS DOM, CONVERT(CHAR, B.DOL,101) AS DOL,
B.AMENDMENT_IND, B.MARRIAGE_BC, B.EVENT_TYPE,
--B.PLACE_OF_EVENT,
(CASE B.PLACE_OF_EVENT WHEN '061' THEN '01' WHEN '61' THEN '01' WHEN '062' THEN '19' WHEN '62' THEN '19' WHEN '063' THEN '19' WHEN '63' THEN '19' ELSE B.PLACE_OF_EVENT END) AS PLACE_OF_EVENT,
B.CERT_IMAGE_ID, CONVERT(CHAR, B.REG_DT,101) AS REG_DT,
A.ACTION_TYPE, A.PROCESS_STATUS_FLG, A.IMAGE_LOCATION, B.LST_MOD_USERID, CONVERT(CHAR, B.LST_MOD_DT,101) AS LST_MOD_DT
FROM DBO.CAMR_DOCUMENT_CONTROL A
INNER JOIN DBO.CAMR_DOCUMENT_INDEX B
--LEFT OUTER JOIN DBO.CAMR_DOCUMENT_INDEX B
ON A.SFN = B.SFN
WHERE A.SFN = @SFN
AND A.DOC_SEQ_NUM = B.DOC_SEQ_NUM
AND A.DOC_SEQ_NUM = @DOC_SEQ_NUM
END
ELSE IF LEN(@BATCH_NAME) <> 12 AND LEN(@SFN) = 13
BEGIN
SELECT A.SFN, A.DOC_SEQ_NUM, B.LRN, A.BATCH_NAME, B.FIRST_PERSON_LNAME, B.FIRST_PERSON_FNAME, B.FIRST_PERSON_MNAME,
CONVERT(CHAR, B.FIRST_PERSON_DOB,101) AS FIRST_PERSON_DOB, B.SECOND_PERSON_LNAME, B.SECOND_PERSON_FNAME, B.SECOND_PERSON_MNAME,
CONVERT(CHAR, B.SECOND_PERSON_DOB,101) AS SECOND_PERSON_DOB, CONVERT(CHAR, B.DOM,101) AS DOM, CONVERT(CHAR, B.DOL,101) AS DOL,
B.AMENDMENT_IND, B.MARRIAGE_BC, B.EVENT_TYPE,
--B.PLACE_OF_EVENT,
(CASE B.PLACE_OF_EVENT WHEN '061' THEN '01' WHEN '61' THEN '01' WHEN '062' THEN '19' WHEN '62' THEN '19' WHEN '063' THEN '19' WHEN '63' THEN '19' ELSE B.PLACE_OF_EVENT END) AS PLACE_OF_EVENT,
B.CERT_IMAGE_ID, CONVERT(CHAR, B.REG_DT,101) AS REG_DT,
A.ACTION_TYPE, A.PROCESS_STATUS_FLG, A.IMAGE_LOCATION, B.LST_MOD_USERID, CONVERT(CHAR, B.LST_MOD_DT,101) AS LST_MOD_DT
FROM DBO.CAMR_DOCUMENT_CONTROL A, DBO.CAMR_DOCUMENT_INDEX B
WHERE A.SFN = B.SFN
AND A.SFN = @SFN
AND A.DOC_SEQ_NUM = B.DOC_SEQ_NUM
AND A.DOC_SEQ_NUM = @DOC_SEQ_NUM
END
ELSE IF LEN(@BATCH_NAME) = 12 AND LEN(@SFN) <> 13
BEGIN
SELECT A.SFN, A.DOC_SEQ_NUM, B.LRN, A.BATCH_NAME, B.FIRST_PERSON_LNAME, B.FIRST_PERSON_FNAME, B.FIRST_PERSON_MNAME,
CONVERT(CHAR, B.FIRST_PERSON_DOB,101) AS FIRST_PERSON_DOB, B.SECOND_PERSON_LNAME, B.SECOND_PERSON_FNAME, B.SECOND_PERSON_MNAME,
CONVERT(CHAR, B.SECOND_PERSON_DOB,101) AS SECOND_PERSON_DOB, CONVERT(CHAR, B.DOM,101) AS DOM, CONVERT(CHAR, B.DOL,101) AS DOL,
B.AMENDMENT_IND, B.MARRIAGE_BC, B.EVENT_TYPE,
--B.PLACE_OF_EVENT,
(CASE B.PLACE_OF_EVENT WHEN '061' THEN '01' WHEN '61' THEN '01' WHEN '062' THEN '19' WHEN '62' THEN '19' WHEN '063' THEN '19' WHEN '63' THEN '19' ELSE B.PLACE_OF_EVENT END) AS PLACE_OF_EVENT,
B.CERT_IMAGE_ID, CONVERT(CHAR, B.REG_DT,101) AS REG_DT,
A.ACTION_TYPE, A.PROCESS_STATUS_FLG, A.IMAGE_LOCATION, B.LST_MOD_USERID, CONVERT(CHAR, B.LST_MOD_DT,101) AS LST_MOD_DT
FROM DBO.CAMR_DOCUMENT_CONTROL A, DBO.CAMR_DOCUMENT_INDEX B
WHERE A.BATCH_NAME = @BATCH_NAME
AND A.SFN = B.SFN
AND A.DOC_SEQ_NUM = B.DOC_SEQ_NUM
--AND A.DOC_SEQ_NUM = @DOC_SEQ_NUM
END
ELSE
BEGIN
SET @ERR_CODE = 50350
SET @ERR_MSG = 'Insufficient key search. Cannot retrieve marriage information.'
END
SET NOCOUNT OFF
RETURN
Member 12076824
4-Dec-15 14:24pm
View
Thanks for response.
For ex: If I have some record with number 1234567890 that exists in database 4 times, once it was saved as original which gave it doc_seq_num as 1. Later record was amended 3 time now new doc_seq_num will be 4.
Now when I call stored procedure on button click, it should load the data from the database table. The record loaded would be the one with doc_seq_num= 4, not other 3.
Member 12076824
20-Nov-15 13:56pm
View
Thanks I should have used else instead, as I have button needs to be enabled and image to be cleared.
Member 12076824
19-Nov-15 17:57pm
View
Thanks Sinisa, this was helpful.
Member 12076824
18-Nov-15 12:00pm
View
Thanks George, problem was with error-provider. I had to use separate error providers for !m..success and testedyear > current year.
Member 12076824
17-Nov-15 18:49pm
View
Thanks for reply Goerge.
It woks fine with other parts except for checking year over 2015, it accepts all the years till 9999.
Debugger shows year is not correct, but it doesn't give error message I added as:
if (!m.Success || testedYear > CurrentYear)
{
//MessageBox.Show("Please check SFN format");
errorProvider1.SetError(txtsfn, "Please check SFN format");
txtsfn.Focus();
}
Thanks
Member 12076824
16-Nov-15 22:48pm
View
I am sorry George, I asked question, but some one pointed out I am asking same question again, so I deleted that.
I added question, please have a look.
http://www.codeproject.com/Questions/1056517/Regex-expression-to-validate-textbox
Member 12076824
16-Nov-15 18:12pm
View
Hi Goerge,
Sorry to bother you again.
I am trying to use same technique on click of a button, but I am facing issues with year greater than current year, Can you please have a look, if I missed something?
private static Regex exprNumber = new Regex(^(405|505)(?19[5-9][0-9]|[2-9][0-9]{3})[0-9]{6}$");
if (txtsfn.Text != "" && txtlrn.Text !="" && txtovrbn.Text != '' && txtovrts.Text != "" && txtfpfn.Text != "" && txtfpln.Text != "" && txtfpfn.Text.Length >= 2 && txtfpln.Text.Length >= 2 &&txtsfn.Text.Length == 13 && txtlrn.Text.Length == 13)
{
// m.Groups[year].Value will contain the year upon success
// and be empty if the match fails
Match m = exprNumber.Match(txtsfn.Text);
int testedYear = 0;
int.TryParse(m.Groups[year].Value, out testedYear);
int currentYear = DateTime.Now.Year;
if (!m.Success || testedYear > currentYear)
{
txtsfn.Focus(); // Set focus to the control that should be
}
}
Thanks.
Member 12076824
13-Nov-15 11:14am
View
Thanks for response Bill.
I am sorry my bad, I posted wrong code. I have GetFiles in foreach on a collection of directories mapped to fileInfo.
Basically my aim is just to have files from folder in comboBox1 to be populated in comboBox2( which are .tiff images), and after that it will be displayed in pictureBox.
Code looks fine, but I have question about
private Dictionary<string,> NameToDirInfo = new Dictionary<string,>();
it gives error as type expected, can you please help me with this?
I appreciate all your help.
Member 12076824
13-Nov-15 10:52am
View
Thanks for response, it gives error as " cannot convert type System.IO.DirectoryInfo to System.IO.FileInfo"
Any suggestions to amend this?
Member 12076824
12-Nov-15 17:10pm
View
Thanks Matt, it's working fine.
Member 12076824
12-Nov-15 17:08pm
View
("^(4|5)(?<year>19[5-9][0-9]|[2-9][0-9]{3})(0[1-9]|[1-5][0-9]|6[0-3]{2})[0-9]{6}$");
Thanks for response, for some reason in question <year> is missing.
Member 12076824
12-Nov-15 17:07pm
View
Thanks for response I am trying something like 4201563000001
Member 12076824
10-Nov-15 22:19pm
View
Thanks Bill I will look into that.
Member 12076824
10-Nov-15 22:18pm
View
Thanks for response, I am trying to list all the files for selected folder from the comboBox1 into ComboBox2. I am doing that manually for each selected index.
I am trying to have some kind of loop for that.
Member 12076824
10-Nov-15 22:12pm
View
Thank Goerge, I appreciate all your help.
Member 12076824
10-Nov-15 18:40pm
View
Hi Goerge,
I need help with this regex expression.
I am trying to use below expression.
("^(4|5)(?<year>19[5-9][0-9]|[2-9][0-9]{3})(0[1-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]|6[0-3]{2})[0-9]{6}$");
where textbox input starts with 4/5 followed by 4 digits for year and next 2 digits code 01 - 63. It works fine till 59 but gives error from 60 -63. Can you please have a look?
Thanks.
Member 12076824
10-Nov-15 11:44am
View
Thanks for the response, I will try this.
Member 12076824
10-Nov-15 11:29am
View
Thanks for response. That would be good option, but in my case multiple user should be able to work at the same time. So If user 1 starts working on batch1 that will be locked and other user will not be able to select same batch.
Member 12076824
10-Nov-15 11:26am
View
Thanks for all your help.
Member 12076824
9-Nov-15 18:26pm
View
I am trying to lock selected item when user1 selects the item, so that user2 cannot select the same item that's being worked on.
Thanks.
Member 12076824
9-Nov-15 17:06pm
View
Hi George,
Thanks for all your help. I was wondering is there way to restrict year to current year in regular expression and need not make changes to code for next year?
Member 12076824
9-Nov-15 15:31pm
View
Thanks for all your help, your code works fine for me. As per requirement I cannot use regex. I was left with keypress or leave(either of one specifically leave if possible). I have question for last part, I was wondering If I want to start UID from 000001 as if it can't be 000000. Can you please help me with last part?
Member 12076824
7-Nov-15 14:04pm
View
Thanks Geoge, I tested this worked fine.
Member 12076824
7-Nov-15 14:01pm
View
thanks I will check that.
Member 12076824
6-Nov-15 20:13pm
View
Is there any way to make sure it's validated till current year and at the same time compatible with next year and so on?
Member 12076824
6-Nov-15 20:11pm
View
Thanks for response I will try this.
Member 12076824
6-Nov-15 16:36pm
View
Code works fine for me, Thanks.
Member 12076824
6-Nov-15 16:26pm
View
I agree I tried the leave part as you mentioned it works fine to verify length of textbox, but won't be of much help in my case. I will work with keypress event.
Thanks
Member 12076824
6-Nov-15 15:15pm
View
I was also trying to implement same as user enters input and leaves the textbox, as if event is fired at textbox1_leave to verify user input with required format, can you please help me with that?
Member 12076824
6-Nov-15 15:04pm
View
Thanks for response, I am not expert with regex and had been trying to avoid using regex. It gets somewhat complicated in my case.
Member 12076824
6-Nov-15 11:15am
View
Thanks for response, that's something I was looking for.
I will check this out, and ask you if I have any questions.
Member 12076824
5-Nov-15 22:04pm
View
Thanks I missed that part. As per the requirement I had to opt for validation unfortunately.
Member 12076824
5-Nov-15 22:02pm
View
Thanks for reply, I edited that part before posting
Member 12076824
5-Nov-15 21:16pm
View
Thanks for reply, I am trying to use key press event here, as user enter 123 next 4 digits needs to be year ranging 1950-2015 and 6 digits.
I am trying to use array and divide that into parts but that was not working.
Member 12076824
5-Nov-15 18:38pm
View
Can you please give more example or syntax for this?
I will really appreciate it.
Thanks.
Member 12076824
5-Nov-15 18:01pm
View
Thanks for reply and suggestions.
I have same for update and that's working well in terms of having type or text before or after.
other changes didn't insert record as required.
Member 12076824
5-Nov-15 14:42pm
View
Thanks, this is working fine
Member 12076824
5-Nov-15 14:42pm
View
I was using wrong syntax, that's working fine now. Thanks
Member 12076824
29-Oct-15 18:43pm
View
I was using regex for some of the simple text fields for alphabets and numbers only, so just tried to utilize same for this part. Thanks for the suggestion I will try this out.
Member 12076824
29-Oct-15 18:42pm
View
Thanks for the suggestion I will try this.
Show More