15,900,254 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 soeun tony (Top 63 by date)
soeun tony
28-Oct-13 22:06pm
View
The issue not yet solved because the item code remove 0 and if i use ', the item code will display this sign ' in front of item code.
thanks
soeun tony
27-Oct-13 21:26pm
View
Hi Pheonyx,
As you said "it is advised to wrap quotes around them". I tried to input ' in front of item code and when export, it display '00000189361.
Thanks
TONY
soeun tony
22-Oct-13 23:45pm
View
Hi Ranjan,
Property FileName just get the name of selected file only. it doesn't get the path of selected file.
soeun tony
27-Sep-13 0:30am
View
hi sbrahma,
i pasted this code in my project, it display red under line below. it means that the code is error. here is the code error:
sbTop.Append("<html xmlns:o="\"urn:schemas-microsoft-com:office:office\"" xmlns:x="\"urn:schemas-microsoft-com:office:excel\"" hold=" /> sbTop.Append(" xmlns="\"http://www.w3.org/TR/REC-html40\""><head><meta http-equiv="Content-Type" content="\"text/html;" charset="windows-1252\"">");
sbTop.Append("<meta name="ProgId" content="Excel.Sheet"><meta name="Generator" content="\"Microsoft" excel="" mode="hold" /> string bottom = "</meta></meta></head></html>";
Thanks
soeun tony
6-Sep-13 21:44pm
View
Yeap, it is the one way but my client can't accept because they need to cut ' of the item and they take long time to do this.
Do you have other idea?
Thanks
soeun tony
4-Sep-13 23:52pm
View
i want to display logout page when the code is error in controller.
Thanks
soeun tony
7-Jul-13 11:14am
View
Deleted
Hi Maciej Los,
Here is my example:
Item customer Amount
P1 C1 10
P2 C1 10
P3 C1 10
P1 C2 10
P3 C2 10
P1 C3 10
P2 C3 10
Other Item and customer...........
In this ex:P1 has 3 customers, P2 has 2 customers,P3 has 2 customers.
If i select top 3=> The result need to display
Item Customer Amount
P1
C1 10
C2 10
C3 10
P2
C1 10
C3 10
P3
C1 10
C2 10
and other Item
Thanks
TONY
soeun tony
7-Jul-13 9:53am
View
Hi Maciej Los,
Sorry for not clear about my question. In fact,in table(tblmix_sales_header_details) has many item. So i can' t do like your way. if i did like ur way, it means that i have 4 items.
Thanks
TONY
soeun tony
26-Mar-13 23:25pm
View
Hi Raimis9,
Thanks for ur reply. The path of image already store in database ( I have other application and that application store path of image only). So it means that i don't build application by myself but i can create CR and insert to that application.
TONY
soeun tony
17-Feb-13 21:07pm
View
Hi Bandi-Ramesh,
I try to use fileupload1.filename and fileupload1.postedfile.filename already
but it returns me the file name only.
Thanks
soeun tony
29-Oct-12 2:10am
View
Hi Sergey,
I mean i want to call this store procedure in vb.net
Thanks
TONY
soeun tony
15-Aug-12 6:36am
View
Hi Santhosh
It works now
Thanks
soeun tony
9-Aug-12 22:13pm
View
Hi Joan,
Thanks for your good idea.i'll follow you next time.
soeun tony
8-Aug-12 22:00pm
View
Hi Kenneth,
Sorry that don't input my code. Here is my code:
Dim MyConnection As OleDb.OleDbConnection,DA As OleDb.OleDbDataAdapter
MyConnection = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Me.TextBox1.Text & ";Extended Properties='Excel 8.0;HDR=Yes;IMEX=1'")
DA = New System.Data.OleDb.OleDbDataAdapter("select * from [Detail$]", MyConnection)
DA.TableMappings.Add("Table", "Tbl1")
DtSet = New System.Data.DataSet
DA.Fill(DtSet)
Me.DataGridView1.DataSource = DtSet.Tables(0)
Note:
My MS Office is : 2007
Thanks
TONY
soeun tony
8-Aug-12 0:21am
View
Hi a4ashiq,
Your simple is very useful for me. Thank you so much for this posted.
TONY
soeun tony
8-Aug-12 0:12am
View
Hi Wes Aday,
i said about combo box.So it means that i already created a project. Have you ever dropped a combo box without created project?. We need to created Project First.Am i right? Here is my query to display customer group "select code,name from customergroup". My question is how can i get the group code when i select group name in combo box?
Thanks
TONY
soeun tony
7-Aug-12 5:05am
View
Hi aarti,
this way can be use when my datagrid already has columns.
but for my problem is that all value that display in datagridview will be shown when i click on Display Button.
It means that at design time my datagridview not yet set columns.
Thanks
TONY
soeun tony
3-Aug-12 22:13pm
View
Hi Kenneth,
It is an example that i made myself and the real information i got also like this.
Based on your link, it is in Visual Studio....but i want to do it in SQL Server.
Thanks
TONY
soeun tony
2-Aug-12 5:14am
View
Hi Kamalakanta Nayak
Can Row_Number() use without Over(Order by[field])?
Thanks
TONY
soeun tony
22-Jun-12 3:38am
View
Hi Sandeep,
You say about the local temporary database based on which client system.I don't understand about this.
You mean do we need to have 2 databases (One at server and one at client).
Thanks
TONY
soeun tony
22-Jun-12 2:22am
View
Hi Sandeep,
Let me sorry for unclear information.I have one Server at the Head Office and 3 Clients at shop.
At the Head Office is often no electronic and at the client side,they can use normally.When the Server at head office is no electronic mean that the connection also disconnect.When the client send data to server,it will display an error message about the connection.My question is that how do client still work even the server is disconnect?
Note: The client is using POS System.
TONY
soeun tony
14-Jun-12 5:45am
View
Hi Sandeep Mewara,
i follow your second link. but my report still the same.
Thanks
soeun tony
30-May-12 5:57am
View
Hi RDBurmon,
My project will do like this in future.
Thanks
TONY
soeun tony
21-May-12 23:45pm
View
Hi losmac
I have followed with your idea.For your 1 Option,it displays include child item and father item and it doesn't display an item that not child or father(in example is item J)). For your 2 Option,It displays only the father Item and doesn't display item (J).
Thanks
TONY
soeun tony
21-May-12 2:37am
View
Hi Losmac
Please go to this link then you will see the 2nd Solution.That solution is what i want to be.
http://www.codeproject.com/Answers/388358/Select-Statement-in-sql-server-2008-R2#answer2
Thanks
TONy
soeun tony
20-May-12 21:22pm
View
Hi Losmac,
Thanks
soeun tony
18-May-12 21:17pm
View
Hi all,
Here are my table structure.
table1(Code [int],itemcode[varchar(20)],itemname[varchar(50)],price [numeric(18,2)],qty[int],amount[numeric(18,2)])
table2(FatherCode[varchar(20)],ChildCode[varchar(20)],docdate[datetime])
Thanks
soeun tony
18-May-12 21:16pm
View
Hi all,
Here are my table structure.
table1(Code [int],itemcode[varchar(20)],itemname[varchar(50)],price [numeric(18,2)],qty[int],amount[numeric(18,2)])
table2(FatherCode[varchar(20)],ChildCode[varchar(20)],docdate[datetime])
Thanks
soeun tony
18-May-12 21:16pm
View
Deleted
Hi all,
Here are my table structure.
table1(Code [int],itemcode[varchar(20)],itemname[varchar(50)],price [numeric(18,2)],qty[int],amount[numeric(18,2)])
table2(FatherCode[varchar(20)],ChildCode[varchar(20)],docdate[datetime])
Thanks
TONY
soeun tony
24-Apr-12 5:24am
View
Hi Sandeep Mewara
-I use AxCrystalActiveXReportViewer control to display report.
-I add reference Crystal Report ActiveX Designer Design And Runtime Library 10.5
-I use Crystal Report Basic 2008 for SAP Business One Version 12.1.0.892
Does all of them match for each other?
Thanks
TONY
soeun tony
23-Apr-12 3:34am
View
Thanks for your reply.
Yes of course. i have import some DLL file in my project.
Thanks
TONY
soeun tony
18-Mar-12 9:22am
View
Thanks for your reply.
In this sample,they use range value between 1 to 100.but for my work,i don't care about the maximum value.i just care about minimum only.
Thanks
TONY
soeun tony
13-Mar-12 11:14am
View
Thanks for your reply.
Let me sorry that my question not clearly.
infact my question is i want to write the string in text to textfile.
So Please help me about this.
Thanks
TONY
soeun tony
10-Oct-11 11:34am
View
Thanks for your reply
Could you tell me the sample?
let me sorry for this but i really want to know about it.
Thanks
soeun tony
6-Oct-11 4:24am
View
thanks for your reply
i want write image file to file.infact i can write the path of image to file but for this way when i delete the image mean that i can't display that image anymore
Thanks
soeun tony
29-Sep-11 12:36pm
View
Thanks for your reply
in my shell script, i will let user to input user name.
example: user input new user name is "jonh"
so i want to compare the new user name "jonh" with old user in system.
Thanks
soeun tony
24-Sep-11 1:23am
View
Thanks for your reply
Could you tell mo how i can do about( changing the name of the image)?
Could you send me the link how to do that?
Thansk
soeun tony
18-Aug-11 21:49pm
View
No, This code is in button Save. i also use this code with saving data to MS SQL server and it still keep data long time.
Thanks
soeun tony
16-Aug-11 21:12pm
View
Thanks for your reply
I'll try to follow you
Thanks
soeun tony
16-Aug-11 21:09pm
View
Thanks for your reply
Now it is ok now
i use the same that you said above
Thanks
soeun tony
16-Aug-11 21:09pm
View
Thanks for your reply
Now it is ok
Thanks
soeun tony
16-Aug-11 1:03am
View
Thanks for your reply
Do you mean use Form_KeyDown Event?
I use keyDown Event but i don't see e.keyChar.
what property should i use?
Best Regards,
soeun tony
15-Aug-11 21:15pm
View
Thanks for ur reply
I'll follow your idea.
This is a good idea that i forget to do.
Thanks
soeun tony
9-Aug-11 2:38am
View
Thanks for your reply
i have link to your like http://www.codeproject.com/KB/cs/hard_disk_serialno.aspx
i also copy this code ManagementObjectSearcher searcher = new
ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive");
foreach(ManagementObject wmi_HD in searcher.Get())
{
HardDrive hd = new HardDrive();
hd.Model = wmi_HD["Model"].ToString();
hd.Type = wmi_HD["InterfaceType"].ToString();
hdCollection.Add(hd);
}
to my application and i changed it to VB.NET Format like this:
Dim searcher As New ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive")
For Each wmi_HD As ManagementObject In searcher.[Get]()
Dim hd As New HardDrive()
hd.Model = wmi_HD("Model").ToString()
hd.Type = wmi_HD("InterfaceType").ToString()
hdCollection.Add(hd)
Next
but it has problem coz of Dim hd As New HardDrive(). i already add referent and import System.Management. but it still error
Please help me
Best Regard,
soeun tony
5-Aug-11 22:00pm
View
Thanks for your reply
Could you tell me how i can make my table with the same character?
(customercode in customer table and customercode in purchase table have the same data type "nvarchar(10)")
Best Regards,
soeun tony
26-Jul-11 21:08pm
View
Thanks for your reply
I'll try to follow your idea
Thanks
soeun tony
26-Jul-11 1:01am
View
Thank for your reply
Yes, This is what i want. Now i can modify my table.
Thanks for your help
soeun tony
25-Jul-11 21:42pm
View
Thanks for your reply
This is what i want to know.
Thank you so much for your help
soeun tony
22-Jul-11 21:17pm
View
Thanks for your reply,
For this way, it is used for start or stop service. but my purpose, when the service stop, i want to display message to let user to know that "Server has been stopped". this is my purpose (Just want to display message to let user to know only).
Best Regards,
soeun tony
22-Jul-11 21:14pm
View
Thanks for your reply
Yes of course my code is no exceptions because i want to test to see the result.later i'll use exception. it is not difficult to use exception.
Thanks
soeun tony
22-Jul-11 21:13pm
View
Thanks for you reply
my user is Built-in User (Administrator).
Best Regards,
soeun tony
22-Jul-11 21:12pm
View
Thanks for your idea,
For that idea, it is very good and i'll follow with your idea.
but for example, the user is using my application than the sql server service is stop by itself. in that case, i want to show message to user that "Service of Server has problem" to let the user know that the server has problem than they'll go to service.msc to start it again.
Best Regards,
soeun tony
22-Jul-11 1:22am
View
Thanks for your reply
You say "DO NOT OPEN A CONNECTION TO THE DATABASE AND KEEP IT OPEN FOR THE LIFE OF YOUR APPLICATION!"
I don't understand what you refer.
Could you explain me more?
Best Regards,
soeun tony
14-Jul-11 1:54am
View
Thank for ur reply
Do you mean like this:
Dim obj(3) as student
redim preserve obj(3)
obj(0).SetID=1
obj(0).SetName="A"
obj(1).SetID=2
obj(1).SetName="B"
Please help me,I really want to know about this. Cos i'm the new for vb.net
Best Regards,
soeun tony
13-Jul-11 21:47pm
View
Thanks for ur reply
This is for code that i used at form load event
ReDim Preserve obj(2)
obj(0).SetID = 1
obj(0).SetName = "A"
obj(1).SetID = 2
obj(1).SetName = "B"
obj(2).SetID = 3
obj(2).SetName = "C"
The error like this:"Object reference not set to an instance of an object."
Best Regards,
soeun tony
20-Jun-11 22:22pm
View
Thanks for your replied
normally, after we created datasource.it will created one dataset.at that time, when my text box link to field of the table in dataset at form loaded Event, it will display: myTableAdapter.Fill(Me.myDataset.myTable) code automatically.When i open my form, i will see any value on my text box and i also can move next, move last, move first....But for my purpose, i don't want to use myTableAdapter.Fill(Me.myDataset.myTable) at form loaded Event.so if i dont use it, when i open my form. it also don't display any value on text box too.
My purpose is: I don't want to use myTableAdapter.Fill(Me.myDataset.myTable) at form loaded Event but i can move next, move last,move first.......
Best Regards,
soeun tony
23-May-11 22:53pm
View
Thanks for your reply
but field code in that table can't be null or ""
coz it will be used to other table.
Best Regards,
soeun tony
19-May-11 7:34am
View
Thanks for your reply.
if do like mean that in the datagrid can input only one time,i mean that normally for detail the user can input many time.Ex:detail table has ItemCode,ItemName, so the user can input 3 times of item in datagridview so SaleDetailCode also increase 3 automatically too. and when the user click on Save Button,The system will save Master Data and Detail(in GrideView 3 rows) to each table.
Best Regards,
soeun tony
8-May-11 21:49pm
View
Thanks for your reply.
if do like this. it means that we have 4 results(1 for datatable1 result,2 for datatable2 result,3 for datatable3 result,4 for datatable4 resutl). but i want to get only one result and that result will sum all columns of each datatable.
Best Regards,
soeun tony
5-Apr-11 11:37am
View
Thanks u so much for ur code.
This is what i need.
Best Regards
soeun tony
30-Mar-11 22:17pm
View
Thanks for ur reply
I use GridView to display
soeun tony
30-Mar-11 22:06pm
View
Thanks for ur advice
but in fact, in my datasource has 8 columns already and when i drop it on my Sale Form, it also show 8 text boxs too(Each text box link to each field in table). but i delete 1 text box(that text box link to empcode in my table) from my form. because of that i want it to get value from Log In form(when i log in, i have variable to get empcode).So when i Click Save on the Sale Form, i want the variable(variable that store empcode at log in time) to save to my table too.
Best Regards,
soeun tony
30-Mar-11 3:18am
View
Thanks for ur reply
This is what i want.
Show More