15,900,725 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 newbie1992 (Top 26 by date)
newbie1992
1-Nov-18 2:37am
View
hi, i already check my code
i don't think there is any problem with my variable
i forgot to include it in this question cause it was in different line of code
here is the sample code
_pathLoc = "C:\\bookbar\\Book Borrowed Record\\Form " + formNumber + "\\" + formName ;
if (!Directory.Exists(_pathLoc)) {
// create path location if the path string doesn't exist
Directory.CreateDirectory(_pathLoc);
}
_imagePath = _pathLoc + "\\" +studentName + ".jpeg";
newbie1992
11-Sep-18 20:30pm
View
thanks!
newbie1992
7-Nov-17 21:53pm
View
thanks dave, i finally solve this problem.. thank you for ur advice
newbie1992
7-Nov-17 20:56pm
View
ok noted sir.
so in this case
is this mean that i should just let my thread retrieve the result of database
after done that process the i continue with my UI Stuff?
newbie1992
4-Sep-17 20:26pm
View
have everyone
I am very sorry that I am late in return a feedback cause I just came back from holiday
I would like to say thank you for all of the comments and answers
sorry for make an unclear question.
Will research on the suggestion given below :) thanks..
newbie1992
1-Sep-17 1:57am
View
Nope.. not resizebut i try to drill a 'hole' on the panel
The hole is in rectangle size..
It was like a card.. i draw a rectangle on it..
The i cut the rectangle..
I will get a card with a hole in the middle of the card
newbie1992
1-Sep-17 0:29am
View
Hello sir
Nope.. i m not croping an image..
I try to crop my panel..so that there is an empty space in the middle of the panel
newbie1992
24-Aug-17 18:57pm
View
Ok sir.. thanks for the advice
newbie1992
24-Aug-17 9:34am
View
i create this dll file
so that my c# will focus on the User Interface only
and the dll file will act as the engine for this program
is this a bad idea sir?
newbie1992
24-Aug-17 4:01am
View
in this case, is there any to store the data i got from the query?
my idea is try to push all of the element i got from the querry to a list of char
then slowly pass the string to c#.
is this a good practice? or is there any better recommendation?
newbie1992
24-Aug-17 3:59am
View
ok sir.. noted with thanks..
btw. sir.. actually i just found what is the problem of my code..
i was doing dll file with c++
it is use to retrieve data from database and return the value back to c#
this is my code:
from c++
__declspec(dllexport) char* retrieveData(char* sqlStatement, int noOfstatement) {
mysql_query(mysqlCon, sqlStatement);
mysqlResult = mysql_store_result(mysqlCon);
if (!(mysqlResult == NULL)) {
while ((mysqlRows = mysql_fetch_row(mysqlResult))) {
printf("%s\t%s\n", mysqlRows[0], mysqlRows[1]);
}
mysql_free_result(mysqlResult);
}
mysql_close(mysqlCon);
}
in c#
[DllImport("C:\\Users\\user\\Desktop\\bookbarConnector\\Debug\\bookbarConnector.dll")]
public static extern intptr retrieveData([MarshalAs(UnmanagedType.LPStr)]string sqlStatement, int noOfstatement);
openConnection();
retrieveData(Marshal.PtrToStingAnsi("select name, ic from studentdatabase where name LIKE 'j%'"), 2);
from the code above i only able to print out one row of data
but after i change the return type of data to void
it finally give 4 rows of data
newbie1992
23-Aug-17 20:16pm
View
ok sir,
thank you :D
newbie1992
22-Aug-17 4:48am
View
thank you sir.
btw what does convention use for?
something like stdcall, fastcall and etc..
newbie1992
22-Aug-17 1:20am
View
Deleted
Dude.. this is the 1st time i got this error message..
May be the detail i given was not clear enough
But can u show some respect to other user ??
newbie1992
13-Jan-17 2:58am
View
hi peter,
nope i don't make this mistake
this is the sample of my code :
<title>My first PHP page
<?php
echo "
Hello World!
";
?>
newbie1992
1-Jun-16 8:09am
View
i have just update my question with the source code i have done
i don't think i have added the picturebox1 into picturebox2
i add both of it into a layer ( panel)
newbie1992
1-Jun-16 7:37am
View
thank you sir for your help
but in this case i add my picturebox in a form
for an example
the size of picturebox1 was 50 , 50
and the location was 0 , 0
the size of picturebox2 was same as picturebox1
and the location was 40 , 40
in this case the picturebox was overlay on picturebox2
i have try the method suggest by u sir but i still does not work
the 'transparent' part of the picturebox1 still doesn't show the image of picturebox2,
but it show the color of the original form
*sorry for my broken english
newbie1992
24-May-16 23:44pm
View
i see.. sorry i was new in here
still got a lot off thing i need to learn..
thanks.. :)
newbie1992
24-May-16 23:41pm
View
i don't really get what u mean sir?
do u mean that it is better for me to add difference handler for each button?
newbie1992
24-May-16 7:52am
View
ok bro.. :)
newbie1992
24-May-16 5:09am
View
sorry bro.. ur answer should be rated as 5*
and btw.. thanks a lot..
newbie1992
22-May-16 2:31am
View
thanks dude... u help me a lot in this.. :D
newbie1992
22-May-16 2:29am
View
Deleted
thanks dude
i got the image.. but the size of my image was actually 900 x 600 px
after i load the picture.. the size bcome bigger?
newbie1992
18-May-16 8:57am
View
thank you
newbie1992
12-May-16 8:10am
View
hello bro. thanks for your help!
just done publish my project..
what i actually need to do is set prerequisites
am i right?
newbie1992
12-May-16 7:30am
View
hello
is that mean i need to change Imports MySql.Data.MySqlClient to Imports System.Data.SqlClient?
Show More