15,991,072 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 .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 Stylus STYLUS (Top 58 by date)
Stylus STYLUS
27-Mar-24 15:06pm
View
Sorry, winforms
Stylus STYLUS
4-Mar-24 16:20pm
View
I don't have data in datagrid
Here
@foreach(var item in Model.listClients)
{
@item.id @item.redni_broj @item.naziv @item.procenat @item.fiksna_vrednost @item.oznaka
Edit
Delete
}
Stylus STYLUS
23-Jan-24 1:31am
View
Data reader
var rd = cmd.ExecuteReader();
Stylus STYLUS
8-Dec-23 14:12pm
View
Solved, need to cretate manualy foldet for creating backup. Thank you all
Stylus STYLUS
8-Dec-23 9:47am
View
No, I have my own app. Work on multiple places. But don't send file to ftp. App and database are same format and setup
Stylus STYLUS
2-Nov-23 7:32am
View
Feel free to do so. I have time and I will treat you the same as you treat me. A JERK. THANK YOU
Stylus STYLUS
2-Nov-23 7:31am
View
That is not solution. Thank you
Stylus STYLUS
2-Nov-23 6:52am
View
It works. DEAL. Anyone who posts, I will answer
1) This is not your google
2) This is not your Chat GPT
Thank you
Stylus STYLUS
2-Nov-23 6:45am
View
There are only some smart people and philosophers here, including you. You just talk and argue and I never got a single answer or solution. Fine writes string Working = rd.GetString("R1") Reads only textual data, I need to convert to numbers varchar or decimal. I don't understand what needs to be explained so much, short, clear and simple. If you don't know, you shouldn't have answered anything
Stylus STYLUS
2-Nov-23 5:01am
View
Thank you
Stylus STYLUS
31-Oct-23 4:37am
View
Example?
Stylus STYLUS
31-Oct-23 4:36am
View
I modified the code with my data, it reads my labels but does not read the query, code no errors just not read query
Stylus STYLUS
30-Oct-23 8:02am
View
I try to solve that :-)
Stylus STYLUS
30-Oct-23 7:37am
View
I check now. Table hae 3 records
Stylus STYLUS
27-Oct-23 5:01am
View
Of course
https://www.google.com/search?q=Cloud+hosted+database+read+data+to+list+view+xamarin+C%23&sca_esv=577106327&sxsrf=AM9HkKnvIjVKm26CNyQnwSpKkTF73afX-w%3A1698397137986&source=hp&ei=0Xs7Zd7GOPj87_UPlfGB-AE&iflsig=AO6bgOgAAAAAZTuJ4a2AIxlX4lpwIlQC-9BdARqnA8Io&ved=0ahUKEwie89-w7pWCAxV4_rsIHZV4AB8Q4dUDCAk&uact=5&oq=Cloud+hosted+database+read+data+to+list+view+xamarin+C%23&gs_lp=Egdnd3Mtd2l6IjdDbG91ZCBob3N0ZWQgZGF0YWJhc2UgcmVhZCBkYXRhIHRvIGxpc3QgdmlldyB4YW1hcmluIEMjSKsDULABWLABcAF4AJABAJgBtAGgAbQBqgEDMC4xuAEDyAEA-AEC-AEBqAIKwgIHECMY6gIYJw&sclient=gws-wiz
This is solution?
All question, I post answer: YOU HAVE ON GOOGLE AND POST LINK FROM SEARCH.
OKAY???
ALL QUESTION SMART GUY
Stylus STYLUS
27-Oct-23 4:36am
View
I'm looking for someone to guide me, that's why I was looking for examples for you to guide me. And not to be smart here and give me some lectures. You are not in a position to lecture me, nor will you write my code for me. I wrote and created everything in my life, neither you wrote to me, nor some idiot like you. I was just looking for a XAMAR example application with a CLOUD base. That's all, not that someone is lecturing me here. If you don't have an example or something clever to say, please don't be boring. Thank you
Stylus STYLUS
27-Oct-23 4:16am
View
Nobody is mine, a slave, nor am I looking for it. I was culturally looking for an example of a connection for a mobile application. The answer is nowhere near perfect. I was looking for a XAMARINE connection example, not a simple widows forms connection. If you think you're smart, stop philosophizing, offer an example, not just be smart. On this page, no matter what someone asks, you think first and argue with people because you are bored in life. Unlike you, some people do something and live from it. If you don't have a specific answer (some example) to offer, you don't need to respond, comment or anything else, and not only when you don't like something, you delete the question. Thank you
Stylus STYLUS
27-Oct-23 3:33am
View
XAMARIN, I have app with standard sql conection. Need for mobile. NOT GOOGLE SEARCH. Need example
Thank you
Stylus STYLUS
22-Oct-23 10:35am
View
row_num Naziv J.M. Izlaz
1 SIS CEVAP
1 AJVAR Kilogram
2 SREDNJI CEVAP
2 BIBER Kilogram
3 VELIKI CEVAP
Stylus STYLUS
22-Oct-23 10:35am
View
That is not solution
Stylus STYLUS
12-Sep-23 4:52am
View
I don't undestand conection parameters. Need update existing local db and replace with cloud db
Inetad this
SQLiteConnection con;
public SQLiteConnection GetConnectionWithCreateDatabase()
{
string fileName = "sampleDatabase.db3";
string documentPath = System.Environment.GetFolderPath
(System.Environment.SpecialFolder.Personal);
string path = Path.Combine(documentPath, fileName);
con = new SQLiteConnection(path);
con.CreateTable<employee>();
return con;
}
need to be
Data Source=94.251.1.1,1433;Initial Catalog="BCC";User ID=admin;Password=admin
Where to insert that paramteres?
Stylus STYLUS
8-Sep-23 5:37am
View
I am new in mobile development
Need to put new string in app
I know how to do in visual studio c# Windows Forms
Mobile development don't now
I wan't to learn how to change conn string in xamarin
Existing work, how to replace existing sting for new?
Show me
Stylus STYLUS
8-Sep-23 4:51am
View
Instead local database need to replace cloud database
This is data
Data Source=94.251.1.1,1433;Initial Catalog="BCC";User ID=admin;Password=admin
Stylus STYLUS
8-Sep-23 4:08am
View
Data are fake. Just for example
Stylus STYLUS
7-Sep-23 8:26am
View
private void SaveEmployee(object sender, EventArgs e)
{
if (saveBtn.Text == "Potvrdi")
{
Employee employee = new Employee();
employee.Name = name.Text;
employee.Address = address.Text;
employee.PhoneNumber = phoneNumber.Text;
employee.Email = email.Text;
employee.Password = password.Text;
bool res = DependencyService.Get<isqlite>().SaveEmployee(employee);
if (res)
{
Navigation.PopAsync();
}
else
{
DisplayAlert("Message", "Data Failed To Save", "Ok");
}
}
else
{
// update employee
employeeDetails.Name = name.Text;
employeeDetails.Address = address.Text;
employeeDetails.PhoneNumber = phoneNumber.Text;
employeeDetails.Email = email.Text;
bool res = DependencyService.Get<isqlite>().UpdateEmployee(employeeDetails);
if (res)
{
Navigation.PopAsync();
}
else
{
DisplayAlert("Message", "Data Failed To Update", "Ok");
}
}
}
Stylus STYLUS
7-Aug-23 10:37am
View
Yes, it is possible. I solve to another place. Thank you
Stylus STYLUS
7-Aug-23 10:36am
View
Yes, it is possible. I solve to another place. Thank you
Stylus STYLUS
7-Aug-23 7:15am
View
DEAR SIR, I WANT TO PUT MULTIPLE QUERY IN ONE TABLE.
EACH QUERY ONE COLUMN
ALL NEED TO BE I ONE TABLE
WHAT IS PROBLEM?
Stylus STYLUS
7-Aug-23 7:13am
View
Are you kidding me?
Stylus STYLUS
7-Aug-23 6:55am
View
(select name from table1) as Name, (date from table2) as Date, (select name, sum(qty) as QTY from table3 group by name ) as QTY, (select name from table3) as NameY
Result new table
column1 (Name), Column2(Date), Column3(QTY), Column4(NameY)
Stylus STYLUS
7-Aug-23 6:55am
View
(select name from table1) as Name, (date from table2) as Date, (select name, sum(qty) as QTY from table3 group by name ) as QTY, (select name from table3) as NameY
Result new table
column1 (Name), Column2(Date), Column3(QTY), Column4(NameY)
Stylus STYLUS
7-Aug-23 6:44am
View
Sir, I need an example of how to add more columns to one table, but the result of each column should be the result of a query
What are you not summarizing?
1 query one column
I need a table with 36 columns
I need an example of how one column can be the result of one query
Why?
Because when I have two queries, they are two columns
Stylus STYLUS
7-Aug-23 6:36am
View
select (query1 union query6 union query7) as column1,
(query2 union query9 union query10) as column2,
(query3) as column3,
(query4) as column4,
(query5) as column5
to one table
Stylus STYLUS
7-Aug-23 6:36am
View
Are you just fooling around and screwing people on this site?
I need an example where each query is one column
What is the problem?
If you don't know, don't answer anything, don't just think
Everything I need is well written
Thank you
Stylus STYLUS
7-Aug-23 6:20am
View
select (query1 union query6 union query7) as column1,
(query2 union query9 union query10) as column2,
(query3) as column3,
(query4) as column4,
(query5) as column5
to table
need example
Stylus STYLUS
28-Jul-23 3:29am
View
Msg 8114, Level 16, State 5, Line 1
Error converting data type varchar to numeric.
Stylus STYLUS
5-Jul-23 9:05am
View
All need to be in one table
--query 1
select t.naziv, SUM(convert(float,t.kolicina)) as kolicina,t.CIJENA, SUM(convert(float,t.UKUPNO))as 'UKUPNO'
from
(select roba as naziv, Format(sum(kolicina),'#,0.00') as kolicina, Format((mp_cijena) ,'#,0.00') as 'CIJENA', Format(sum(iznos_sa_pdv) ,'#,0.00') as 'UKUPNO' from dbo.mp_racun_roba
where roba IN(select naziv from roba_usluge where podgrupa_artikala = 'Hrana') and id_fakture IN(SELECT id FROM dbo.mp_racun_lista WHERE datum = '2023-05-18')
group by roba, mp_cijena
union all
select roba as naziv,Format(sum(kolicina),'#,0.00') as kolicina,Format((mp_cijena) ,'#,0.00') as 'CIJENA', Format(sum(iznos_sa_pdv) ,'#,0.00') as 'UKUPNO' from dbo.mp_faktura_roba
where roba IN(select naziv from roba_usluge where podgrupa_artikala = 'Hrana') and id_fakture IN(SELECT id FROM dbo.mp_faktura_lista WHERE datum = '2023-05-18')
group by roba, mp_cijena
) t
group by t.naziv, t.CIJENA
--query 2
SELECT * FROM DBO.normativi_roba WHERE id_fakture IN (SELECT id FROM DBO.normativi_lista WHERE naziv='BUREK')
Stylus STYLUS
17-May-23 7:26am
View
string folderPath = "C:\\PDFs\\";
if (!Directory.Exists(folderPath))
{
Directory.CreateDirectory(folderPath);
}
using (FileStream stream = new FileStream(folderPath + "Putni nalog PN3.pdf", FileMode.Create))
{
iTextSharp.text.Font calibriTitle = new iTextSharp.text.Font(bfCalibri, 12);
iTextSharp.text.Font calibriSubTitle = new iTextSharp.text.Font(bfCalibri, 10);
iTextSharp.text.Font calibriPN1 = new iTextSharp.text.Font(bfCalibri, 18);
Document pdfDoc = new Document(PageSize.A4.Rotate(), 10f, 10f, 10f, 0f);
//Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 10f, 0f);
PdfWriter writer = PdfWriter.GetInstance(pdfDoc, stream);
pdfDoc.Open();
//pdfDoc.Add(new ListItem(korisnik_programa, calibriTitle));
// pdfDoc.Add(new ListItem(adresa, calibriSubTitle));
pdfDoc.Add(new ListItem(mesto, calibriSubTitle));
// pdfDoc.Add(new ListItem("JIB:" + " " + jib2, calibriSubTitle));
// pdfDoc.Add(new ListItem("PIB:" + " " + pib2, calibriSubTitle));
// pdfDoc.Add(new ListItem("Žiro-racun:" + " " + ziro_racun2, calibriSubTitle));
//pdfDoc.Add(new ListItem("E-mail:" + " " + e_mail, calibriSubTitle));
pdfDoc.Add(table);
pdfDoc.Add(new ListItem(" "));
pdfDoc.Add(new ListItem(" "));
Stylus STYLUS
17-May-23 7:26am
View
Cant add complete code
Stylus STYLUS
17-May-23 7:24am
View
Me i Have complete code, need simple solution in one row to rotate table
Complete code
//Exporting to PDF
string folderPath = "C:\\PDFs\\";
if (!Directory.Exists(folderPath))
{
Directory.CreateDirectory(folderPath);
}
using (FileStream stream = new FileStream(folderPath + "Putni nalog PN3.pdf", FileMode.Create))
{
iTextSharp.text.Font calibriTitle = new iTextSharp.text.Font(bfCalibri, 12);
iTextSharp.text.Font calibriSubTitle = new iTextSharp.text.Font(bfCalibri, 10);
iTextSharp.text.Font calibriPN1 = new iTextSharp.text.Font(bfCalibri, 18);
Document pdfDoc = new Document(PageSize.A4.Rotate(), 10f, 10f, 10f, 0f);
//Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 10f, 0f);
PdfWriter writer = PdfWriter.GetInstance(pdfDoc, stream);
pdfDoc.Open();
//pdfDoc.Add(new ListItem(korisnik_programa, calibriTitle));
// pdfDoc.Add(new ListItem(adresa, calibriSubTitle));
pdfDoc.Add(new ListItem(mesto, calibriSubTitle));
// pdfDoc.Add(new ListItem("JIB:" + " " + jib2, calibriSubTitle));
// pdfDoc.Add(new ListItem("PIB:" + " " + pib2, calibriSubTitle));
// pdfDoc.Add(new ListItem("Žiro-racun:" + " " + ziro_racun2, calibriSubTitle));
//pdfDoc.Add(new ListItem("E-mail:" + " " + e_mail, calibriSubTitle));
pdfDoc.Add(table);
pdfDoc.Add(new ListItem(" "));
pdfDoc.Add(new ListItem(" "));
//pdfDoc.Add(pdfTable);
// pdfDoc.Add(pdfTable2);
//pdfDoc.Add(pdvTable); ////tabela donja mesto i tip vozaca
PdfContentByte cb = writer.DirectContent;
PdfContentByte cb1 = writer.DirectContent;
//cb.SetColorStroke(new BaseColor(41, 128, 185));// boja linija
//iTextSharp.text.Rectangle fakturisao = new iTextSharp.text.Rectangle(pdfDoc.PageSize.Width - 140f, 120f, pdfDoc.PageSize.Width - 520f, 50f);
iTextSharp.text.Rectangle PN1 = new iTextSharp.text.Rectangle(pdfDoc.PageSize.Width - 50f, 594f, pdfDoc.PageSize.Width - 98f, 50f);
//iTextSharp.text.Rectangle glavnivozac1 = new iTextSharp.text.Rectangle(340f, 550f, 160f, 50f, 270);
iTextSharp.text.Rectangle glavnivozac1 = new iTextSharp.text.Rectangle(pdfDoc.PageSize.Width - 140f, 332f, pdfDoc.PageSize.Width - 401f, 50f); //1 vozac
iTextSharp.text.Rectangle glavnivozac2 = new iTextSharp.text.Rectangle(pdfDoc.PageSize.Width - 140f, 302f, pdfDoc.PageSize.Width - 401f, 50f); //2 vozac
iTextSharp.text.Rectangle glavnivozac3 = new iTextSharp.text.Rectangle(pdfDoc.PageSize.Width - 140f, 272f, pdfDoc.PageSize.Width - 401f, 50f); //3 vozac
iTextSharp.text.Rectangle pomocnivozac1 = new iTextSharp.text.Rectangle(pdfDoc.PageSize.Width - 140f, 332f, pdfDoc.PageSize.Width - 210f, 50f); //1 pomocni vozac
iTextSharp.text.Rectangle pomocnivozac2 = new iTextSharp.text.Rectangle(pdfDoc.PageSize.Width - 140f, 302f, pdfDoc.PageSize.Width - 210f, 50f); //2 pomocni vozac
iTextSharp.text.Rectangle pomocnivozac3 = new iTextSharp.text.Rectangle(pdfDoc.PageSize.Width - 140f, 272f, pdfDoc.PageSize.Width - 210f, 50f); //3 pomocni vozac
iTextSharp.text.Rectangle relacija = new iTextSharp.text.Rectangle(pdfDoc.PageSize.Width - 140f, 226f, pdfDoc.PageSize.Width - 401f, 50f); //relacija
iTextSharp.text.Rectangle serija = new iTextSharp.text.Rectangle(pdfDoc.PageSize.Width - 140f, 460f, pdfDoc.PageSize.Width - 401f, 50f); //serija
iTextSharp.text.Rectangle mjesto = new iTextSharp.text.Rectangle(pdfDoc.PageSize.Width - 140f, 509f, pdfDoc.PageSize.Width - 401f, 50f); //mjesto
Stylus STYLUS
17-May-23 7:18am
View
Rotate pdf table
Set location for table
Stylus STYLUS
18-Jan-23 2:33am
View
With this method replace empty places with some another
I need to remove just first char which is empty
' RN 001 2023' AND NEED TO BE 'RN 001 2023'
Stylus STYLUS
15-Dec-22 9:14am
View
Solved. You solve. Thank you
Stylus STYLUS
15-Dec-22 9:13am
View
That is solution. Thank you
Stylus STYLUS
15-Dec-22 9:09am
View
const string DATE_FORMAT = DateTime.Now.ToString('yyyy');
const string strCon2 = "Data Source=.\\SQLEXPRESS;Initial Catalog=BSS "+DATE_FORMAT+";Integrated Security=True";
error CS0133: The expression being assigned to 'Program.DATE_FORMAT' must be constant
Stylus STYLUS
15-Dec-22 9:07am
View
This is my conecction string
const string strCon2 = "Data Source=.\\SQLEXPRESS;Initial Catalog=BSS "+year+";Integrated Security=True";
Defined year
private readonly string year = DateTime.Now.Year.ToString();
This part of con string "+year+"; is problem
Error CS0236 A field initializer cannot reference the non-static field, method, or property 'Program.year'
Stylus STYLUS
15-Dec-22 8:52am
View
Deleted
private readonly string _year = DateTime.Now.Year.ToString();
const string strCon2 = "Data Source=.\\SQLEXPRESS;Initial Catalog=BSS "+_year+";Integrated Security=True";
Error CS0236 A field initializer cannot reference the non-static field, method, or property 'Program._year'
Stylus STYLUS
15-Dec-22 8:34am
View
Same error
Stylus STYLUS
15-Dec-22 8:34am
View
c#
Stylus STYLUS
15-Dec-22 7:51am
View
Example?
Stylus STYLUS
30-Oct-18 6:55am
View
In this code datagrid have all vaules from table, not just from notificationLabel.Text
Stylus STYLUS
30-Oct-18 5:27am
View
Thank you
Stylus STYLUS
30-Oct-18 5:17am
View
My dear friend, thank you.
I need solutin for c#, not sql.
Like...
if (checkbox1.Checked && !checkbox2.Checked)
{
insert into sql...
}
else if (!checkbox1.Checked && checkbox2.Checked)
{
insert into sql...
}
Stylus STYLUS
9-Oct-18 1:35am
View
Thank you
Stylus STYLUS
24-May-18 1:32am
View
korisnikId = Convert.ToInt32(myCommand.ExecuteScalar());
This line is error
Stylus STYLUS
23-May-18 5:42am
View
I wrong I need help. Thank you
Stylus STYLUS
23-May-18 5:41am
View
Exception is number from command
Stylus STYLUS
23-May-18 5:07am
View
private static int korisnikId;
private static int korisnickaGrupa;
private string korisnickoIme;
I forgot this...I added on start code line
Show More