16,018,802 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 Visual Basic questions
View Javascript questions
View .NET 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 Krishnananthan Vijayaretnam (Top 11 by date)
Krishnananthan Vijayaretnam
2-Dec-19 8:22am
View
Thank you for your answer. I will try this and mark as answer if it works for my scenario.
Krishnananthan Vijayaretnam
8-Jul-16 6:27am
View
I've found the issue. Actually the issue was the dll file version is different. I've copied the dll from the working machine and replaced it to the other machine. Now, its working in both machines.
Thanks for you suggestion and time.
Krishnananthan Vijayaretnam
7-May-14 0:47am
View
I'll check this out. Thanks
Krishnananthan Vijayaretnam
7-May-14 0:00am
View
yes Point-Of-Sales system.
The requirement is automatically getting a backup or copy of a central server (Server PC) database and stores or restores it in the local machine (Point-Of-Sales machine). Then each and every transaction in the central database should be reflected in the local database of the POS machine. When the connection is lost to the server machine then the Client machine(Point-Of-Sales pc) will act as the server.
Krishnananthan Vijayaretnam
20-Mar-14 7:40am
View
Anudeep Jaiswal Thanks for your reply.
I've tried this code, but it doesn't work. Now I figured out all these codes will work in forms only. But here this button is in an usercontrol. Is it possible to show a save dialog in a user control?
Krishnananthan Vijayaretnam
26-Jun-13 3:21am
View
This is my code. I want to move the text. And its not working yet. What's my mistake? Is there any simple way rather than this?Need help.
namespace VDINE_POS_MARQUEE
{
public partial class Form1 : Form
{
static PosExplorer myExplorer;
static LineDisplay myDisplay;
static DeviceInfo device1;
private static readonly string displaySpace = " ";
private static readonly int displayLineWidth = 40;
private static readonly int displayLineShowableWidth = 20;
private static string line1String, line2String;
private static string line1StringDisplay, line2StringDisplay;
private static int line1DisplayStartIndex, line2DisplayStartIndex;
public Form1()
{
InitializeComponent();
// Instantiate the timer
timer2.Interval = 1000; //1000ms = 1sec
timer2.Tick += new EventHandler(timer2_Tick);
timer2.Start();
timer2.Enabled = true;
myExplorer = new PosExplorer(this);
device1 = myExplorer.GetDevice("LineDisplay", "POSIFLEX_LINEDISPLAY");
}
private void timer2_Tick(object sender, EventArgs e)
{
try
{
myDisplay = (LineDisplay)myExplorer.CreateInstance(device1);
myDisplay.Open();
myDisplay.Claim(1000);
myDisplay.DeviceEnabled = true;
line1StringDisplay = "Welcome To Tea Club ";
myDisplay.DisplayText(GetDisplayStringSplitByIndex(line1StringDisplay, 19));
////myDisplay.DisplayTextAt(1,1,GetDisplayStringSplitByIndex(line2StringDisplay, 0));
////GetDisplayStringSplitByIndex
if (Form1.line1String.Length > Form1.displayLineShowableWidth)
{
if ((Form1.line1String + Form1.displaySpace).Length < Form1.line1DisplayStartIndex + 1)
{
Form1.line1DisplayStartIndex = 0;
}
Form1.line1StringDisplay = Form1.GetDisplayStringSplitByIndex(Form1.line1String + Form1.displaySpace, Form1.line1DisplayStartIndex++);
}
else
{
Form1.line1StringDisplay = Form1.GetPaddedStringForDisplay(Form1.line1String);
}
if (Form1.line2String.Length > Form1.displayLineShowableWidth)
{
if ((Form1.line2String + Form1.displaySpace).Length < Form1.line2DisplayStartIndex + 1)
{
Form1.line2DisplayStartIndex = 0;
}
Form1.line2StringDisplay = Form1.GetDisplayStringSplitByIndex(Form1.line2String + Form1.displaySpace, Form1.line2DisplayStartIndex++);
}
else
{
Form1.line2StringDisplay = Form1.GetPaddedStringForDisplay(Form1.line2String);
}
myDisplay.Close();
}
catch
{
}
}
private static string GetDisplayStringSplitByIndex(string displayString, int index)
{
return Form1.GetPaddedStringForDisplay(displayString.Substring(index) + displayString.Substring(0, index));
}
private static string GetPaddedStringForDisplay(string displayString)
{
if (displayString.Length > Form1.displayLineWidth)
{
return displayString.Substring(0, Form1.displayLineWidth);
}
else
{
return displayString.PadRight(Form1.displayLineWidth);
}
}
}
}
Krishnananthan Vijayaretnam
17-Jun-13 7:40am
View
Yes. I know that. I also searched for the same only two weeks ago. And I found that one person search for that three years ago. I found that after a long search. If someone search for same in near future, this solution will be helpful to them without spending so much time on this. So, I just shared the solution. That's all.
Krishnananthan Vijayaretnam
13-Jun-13 23:31pm
View
Thanks. I've sort it out. This is how I achieved it. Instead of using the RepeaterItemClick, I've used the ItemCommand...
protected void FoodTypeLeftNavigationRepeater_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == WellKnownCommandNames.Edit.ToString())
{
this.selectedFoodTypeNameDisplayLabel.Text = string.Empty;
int foodTypeID = 0;
int.TryParse(e.CommandArgument.ToString(), out foodTypeID);
if (foodTypeID > -1)
{
this.FoodTypeID = foodTypeID;
this.FoodType = ((LinkButton)(e.CommandSource)).Text;
string foodTypeIndex = ((Label)e.Item.Controls[1]).Text;
int foodTypeIndexId = this.FoodTypeIndexID;
if (!string.IsNullOrEmpty(foodTypeIndex))
{
int.TryParse(foodTypeIndex, out foodTypeIndexId);
}
this.FoodTypeIndexID = foodTypeIndexId;
string foodMealType = ((Label)e.Item.Controls[3]).Text;
int foodMealTypeID = 1;
if (!string.IsNullOrEmpty(foodMealType))
{
int.TryParse(foodMealType, out foodMealTypeID);
}
this.FoodMealType = foodMealTypeID;
this.GetMultipleFoodData();
this.foodTypeLeftNavigationRepeater.DataSource = (List<foodtyperesponsedto>)this.FoodTypeList;
this.foodTypeLeftNavigationRepeater.DataBind();
}
}
}
Krishnananthan Vijayaretnam
10-Jun-13 23:41pm
View
I did it without doing any port conversion. I've used Microsoft.PointOfService library for that.
Anyway thanks for your time.
Krishnananthan Vijayaretnam
6-Jun-13 0:49am
View
I understood what he said. Drivers are installed properly. The pole display not showing under "PORTS (COM & LPT)" in Device Manager. It has been detected under "Human Interface Devices". If its showing under PORTS (COM & LPT), there is no problem. I have found that the USB Controller showing the pole display's controller(USB Composite Device)
I want to do a usb to com port mapping for the text box text display. That's all. My pole display model is PD *307U-AI. In most of the websites I referred advices to use an adapter. I have to do without an adapter.
Thanks
Krishnananthan Vijayaretnam
5-Jun-13 23:11pm
View
Initially I tried to do what you suggest now. But when I plugged the pole display it hasn't detect under "PORTS (COM & LPT)". It has been detected under "Human Interface Devices"
I have to pass whatever text typed inside the text box to the pole display.
http://www.merchantsoft.com/technote/Peripherals_and_Hardware/Pole_Displays/USB_Logic_Controls_POle_Displays_-_Win_7.htm
I followed the above link to configure the pole display. In this link they are suggest something called Virtual Com Port Driver. I've downloaded a driver from the below link,
http://www.ftdichip.com/Drivers/VCP.htm
I installed the driver, after installation it doesn't prompt for anything.
Can anyone suggest me the way to use the Virtual COM Port Driver?
Thanks
Show More