15,888,579 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 jamesmc1535 (Top 135 by date)
jamesmc1535
14-Mar-17 8:18am
View
well most of the articles i found also indicated that its controlled by windows, :) TY
jamesmc1535
14-Mar-17 8:18am
View
sorry for the wrong tag :) and thanks will take a look at the refrences you gave me
jamesmc1535
14-Mar-17 6:55am
View
thanks sorry for the late reply i got it working after a while :0 thanks for the help much appreciated
jamesmc1535
14-Mar-17 6:55am
View
thanks sorry for the late reply i got it working after a while :0 thanks for the help much appreciated
jamesmc1535
1-Jul-16 3:38am
View
thanks for the help , :)
jamesmc1535
29-Jun-16 11:07am
View
thanks, i sortoff fixed it, the datagrid updates into the database now , without problems, but i cant delete a row in the datagrid ( as i have no collum as primary key , but when i set a collum to primary i get that null error
jamesmc1535
29-Jun-16 10:29am
View
sda.Update(dt);
jamesmc1535
29-Jun-16 10:25am
View
sda.Update(dt);
jamesmc1535
29-Jun-16 10:25am
View
sda.Update(dt); <
jamesmc1535
29-Jun-16 10:23am
View
thanks ill try that quickly
jamesmc1535
29-Jun-16 10:17am
View
but where? XD , starting it over again as i dont see the null value,
jamesmc1535
29-Jun-16 10:16am
View
very nice explanation , i have no idea where i went wrong , doing it over again :) thanks alot
jamesmc1535
9-May-16 3:38am
View
okay makes sense ? but where do i change it? within the cod? and use the
Navigation.InsertPageBefore cmd?
jamesmc1535
5-May-16 9:03am
View
what more information must i provide? basicly as the problem isnt with the code coz the changes take effect when running thru an emulator, but when i run thru a real device it doesnt show the changes,wether im just renaming the buttons, it doesnt take effect on the real device, only on the emulator
jamesmc1535
5-May-16 9:03am
View
whaat part of the code? as the problem isnt with the code coz the changes take effect when running thru an emulator, but when i run thru a real device it doesnt show the changes
jamesmc1535
25-Apr-16 5:01am
View
thanks alot :)
jamesmc1535
25-Apr-16 3:19am
View
the dates are that because the login form is a open source project, its got a page afterwards the login with text " main app goes here. so i want to basicly just replace that "window" with my buttonlogger app
jamesmc1535
25-Apr-16 3:18am
View
xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="LoginNavigation.LoginPage" Title="Login">
theres mine that i currently have.
jamesmc1535
25-Apr-16 3:16am
View
do i need to change the schema of both of them to the same thing?
jamesmc1535
25-Apr-16 3:14am
View
thanks , i will try this quickly :)
jamesmc1535
11-Apr-16 6:45am
View
thanks it was exactly what i was looking for :)
jamesmc1535
11-Apr-16 6:25am
View
thanks :) really appreciate it, will have a look at that quickly :)
jamesmc1535
11-Apr-16 4:05am
View
very good example, sorry for not being able to be more precise,as im not fully certain on what precisly needs to be done, basicly for now id like to create an app that shows all the current processes/exe"s thats running, but the main idea is like for instance when playing a game , it must show the exe of the game and the runtime of the game running , example: so if you open chrome.exe it shows in the application chrome.exe : 1 hour
jamesmc1535
29-Mar-16 10:49am
View
il get a device tomorow to test it on, thanks for all youre help i really apreciate it :)
jamesmc1535
29-Mar-16 9:28am
View
i dont know, the emulator does have a gps setting as well as location services, and lattitude and stuff like that
jamesmc1535
29-Mar-16 8:31am
View
thanks ill look into it , im using an emulator and not an actual android device? could that be the problem?
jamesmc1535
29-Mar-16 8:28am
View
yes , i have it switched it on
jamesmc1535
22-Mar-16 4:53am
View
nvm thanks for the help , fixed it , had to just sign in my xamarin acc
jamesmc1535
22-Mar-16 4:51am
View
okay thanks :) , like do a recode? or is there an option/
jamesmc1535
22-Mar-16 4:36am
View
nope not completly?
jamesmc1535
29-Feb-16 5:39am
View
i fixed it now but now i get this message Error parsing XML:unbound prefix(APT0000)
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromXDelta="0" android:toXDelta="100%p"(get the error here)
anddroid:duration="500"/>
jamesmc1535
29-Feb-16 4:45am
View
XD !!! thanks !! XD aaah feel stupid now
jamesmc1535
28-Jan-16 5:12am
View
sorry , i havent done that code yet , because i dont know what methods to use , :)
jamesmc1535
30-Nov-15 4:25am
View
XD !!!! sorry thanks for pointing it out ... now i feel stupid :(
jamesmc1535
25-Nov-15 9:56am
View
thanks for all the help really appreciate it , got it sorted out ,i had the liniar on top as well it just didnt add it to the message , i closed the program and started over, my error was lack of xml knowledge, XD , like for instance i did not add
jamesmc1535
25-Nov-15 2:30am
View
https://www.youtube.com/watch?v=tf2O_t-ayJ8 < this is the tutorial i was following and i did everything the same..
jamesmc1535
24-Nov-15 7:09am
View
i changed it to on all the roots? but i got an error now saying , "not well informed"
jamesmc1535
24-Nov-15 7:02am
View
i will change it quickly , this is from a tutorial i was following to get used to the xamarin layout ect ect
jamesmc1535
24-Nov-15 6:39am
View
im not sure i understand what youre explaining to me XD .
jamesmc1535
18-Nov-15 4:17am
View
sorry about that i tagged it with c# because i dont know what else i shouldve tagged it with , but i got it sorted , thanks anyways
jamesmc1535
5-Nov-15 5:18am
View
just another question , android studio? is it for c# or java? bcoz so far all tutorials ive seen of c# leads to xamarin for some odd reason??
jamesmc1535
3-Nov-15 4:29am
View
thanks alot :)
jamesmc1535
26-Oct-15 8:23am
View
lol it wont be for comMercial use - im just doing it for myself , it wont be a full on browser, instead ill just redirect to googles address :) its just a fun project that i want to play with XD
jamesmc1535
26-Oct-15 8:21am
View
oh okay now i understand lol
jamesmc1535
26-Oct-15 6:10am
View
thanks alot :)
jamesmc1535
26-Oct-15 4:44am
View
thanks for the help :) - im confused now, why did it get a downvote :x ??
jamesmc1535
22-Oct-15 9:19am
View
okay ill try it like that , i want to make like a email thing that sends to my email address when my pc gets switched on, i have the email sending working but its with a button click - not auto click ,
jamesmc1535
20-Oct-15 7:03am
View
dam xamarin is expensive !! 0_0
jamesmc1535
20-Oct-15 6:54am
View
alright :) do u use the xamarin studio , or can u also just use the xamarin plugin for visual studios?
jamesmc1535
20-Oct-15 6:25am
View
thanks , im going to look into those now :)
another small question , do i have to use xamarin? or what andriod sdk would u prefer?
jamesmc1535
15-Oct-15 8:28am
View
thanx :) worked exactly as i wanted to
jamesmc1535
8-Oct-15 9:00am
View
thanks sorry for the few detail , but i dont know how to type the problem XD
jamesmc1535
8-Oct-15 5:21am
View
thanks :)
jamesmc1535
6-Oct-15 3:33am
View
okay , thanks, uhm where would this be ? "Programs and Features > Visual Studio 2015 > Change)" ??
jamesmc1535
5-Oct-15 7:44am
View
its for a point of sale system , so atm its for my "staff" table , so it generates a report showing all available staff - names-email ect ect
so basicly its for like a cash up? so end of the day you generate a report showing the days sales
jamesmc1535
1-Oct-15 8:28am
View
thanks alot :)
jamesmc1535
1-Oct-15 4:32am
View
okay i wil try that quickly , and this will also work on the filter? toshow enabled or disabled users
jamesmc1535
28-Sep-15 2:53am
View
i did , asked them told them my problem but i havent gotten a reply yet
jamesmc1535
7-Sep-15 3:41am
View
oh okay thanks, because for one of my future projects i want too try something like that out , so before im investing time into it i wanted to first understand the possibilities, bluetooth would be a problem id say because you might not always be in range, so ima try it with sms ;)
jamesmc1535
31-Aug-15 8:25am
View
never mind fixed it , > listBox1.DataSource = empList;> was accidently removed
jamesmc1535
31-Aug-15 8:23am
View
0 at the moment but i have an add option , when i add to the database it still does the same
jamesmc1535
31-Aug-15 5:08am
View
how would i do it using a timer? added a timer. on events i added >
listbox1.indexchanged >
with the listbox1.refresh();
?
jamesmc1535
13-Aug-15 9:30am
View
i have one more question? want to know if its possible to add like the .net framework 4 instalation in with my program
?
jamesmc1535
13-Aug-15 9:04am
View
thanks man its working now
jamesmc1535
13-Aug-15 8:41am
View
thanks for your effort, but those to tutorials show how to install it using vs 2010 which still has the template for setup installer, im using 2015 which doesnt have that template
jamesmc1535
13-Aug-15 8:28am
View
thanks man , because at the moment getting the progam to install is harder than the actual program was :o // thanks alot for youre help
jamesmc1535
13-Aug-15 8:20am
View
yes i want to create a setup for my program , so i can istall it on other computers
jamesmc1535
13-Aug-15 8:16am
View
im using 2015 and ive read multiple times that visual studios doesnt support it no more
jamesmc1535
13-Aug-15 6:13am
View
alright makes sense , but to what is it refering to as already installed,? coz this is the 1st instalation i did
jamesmc1535
6-Aug-15 7:01am
View
oh thanks man now it makes more sense :) because i wondered what that was so now u cleared that up :)
jamesmc1535
6-Aug-15 6:44am
View
yes its working now thanks
jamesmc1535
6-Aug-15 6:40am
View
just another small follow up question>when i click delete it deletes but i have to close the form and reopen it again for the listbox to update is there a way to make it able to auto update so when i click remove its removed from the listbox instantly?
jamesmc1535
6-Aug-15 6:36am
View
nevermind fixed it it worked i changed it 2 that but forgot to change
cmd.Parameters.AddWithValue("@id", listBox1.SelectedItem.ToString());
to
cmd.Parameters.AddWithValue("@name", listBox1.SelectedItem.ToString());
jamesmc1535
6-Aug-15 6:35am
View
Must declare the scalar variable "@name"
lol XD
jamesmc1535
6-Aug-15 6:29am
View
okay my code looks like this now >
SqlConnection con = new SqlConnection("Data Source=JAMES-PC\\SQLEXPRESS;Initial Catalog=staff;Integrated Security=True");
con.Open();
string sql = @"DELETE FROM staff1 where Id=@id;";
SqlCommand cmd = new SqlCommand(sql, con);
cmd.Parameters.AddWithValue("@id", listBox1.SelectedItem.ToString());
cmd.ExecuteNonQuery();
con.Close();<pre>
but i still get this error >
Conversion failed when converting the nvarchar value 'michsafj' to data type int.
jamesmc1535
6-Aug-15 6:22am
View
i hate sql :D uhm im goin to tell you how i made my table /
started query > create database staff1
use staff1
>create table name(
id primary key identity < is that hat you were refering to ?
jamesmc1535
6-Aug-15 6:14am
View
okay my table names are ass follows
name / surname / homead / location / position / cellnum / email listbox uses (name)
they all are varchar(50)
jamesmc1535
6-Aug-15 5:26am
View
Conversion failed when converting the nvarchar value 'james' to data type int. get a error
jamesmc1535
6-Aug-15 5:24am
View
thanks ill do that quickly
jamesmc1535
6-Aug-15 5:22am
View
Deleted
did that,ran the program
jamesmc1535
6-Aug-15 5:21am
View
did that,ran the program , got error ? must declare a scalar variable @name
jamesmc1535
6-Aug-15 5:00am
View
my friend helped me out with the code and he said i should add that part,so no i didnt insert that part i jus followed advice? / is it needed? how would i know if its needed?
jamesmc1535
5-Aug-15 6:42am
View
its working, thanks alot man i apreciate it alot
jamesmc1535
5-Aug-15 6:02am
View
thanks didnt notice i did it there, sorry if im asking stupid questions, but i might ask 1 more :) i remove the second part but i stil do get this>
The type arguments for method 'DataRowExtensions.Field<t>(DataRow, string)' cannot be inferred from the usage. Try specifying the type arguments explicity
code>var empList = Ds.Tables[0].AsEnumerable().Select(dataRow => dataRow.Field("username")).ToList();
comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
comboBox1.DataSource = empList;
jamesmc1535
5-Aug-15 5:48am
View
my code >DataSet Ds = new DataSet();
string strConnectionString = "Data Source=JAMES-PC\\SQLEXPRESS;Initial Catalog=login1;Integrated Security=True";
SqlConnection objconnection = new SqlConnection(strConnectionString);
using (SqlCommand cmd = new SqlCommand("SELECT [username] FROM [user1]",
objconnection))
{
using (SqlDataAdapter adapter = new SqlDataAdapter(cmd))
{
adapter.Fill(Ds);
}
}
var empList = Ds.Tables[0].AsEnumerable().Select(dataRow => dataRow.Field("username")).ToList();
dataRow.Field<int>("username")).ToList();
comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
comboBox1.DataSource = empList;
comboBox1.SelectedIndex = 0;
my errors>The name 'dataRow' does not exist in the current context
The name 'ToList' does not exist in the current context
The type arguments for method
'DataRowExtensions.Field<t>(DataRow, string)'
cannot be inferred from the usage. Try specifying the type
arguments explicitly.
jamesmc1535
5-Aug-15 4:48am
View
i entered it as u said but my datarow says does not exist , shud i create it or am i missing a refrence?
jamesmc1535
5-Aug-15 4:18am
View
lol XD this sqls doesnt like me, struggle alot with it -_- my mind just doesnt want to learn thanks il go do a quick check :)
jamesmc1535
5-Aug-15 3:47am
View
thanks for the advice i will check quickly , when i run it and i get te eror i have the options,, details and continue,and quit but when i quit it doesnt show the line thats faulty, if i say continue the combobox is still emty XD (oviously) but the details shows this
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidCastException: Specified cast is not valid.
at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
at login_form.add_user.<>c.<add_user_load>b__2_0(DataRow dataRow) in C:\Users\james\New folder\POS\pos\login form\add user.cs:line 53
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at login_form.add_user.add_user_Load(Object sender, EventArgs e) in C:\Users\james\New folder\POS\pos\login form\add user.cs:line 51
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.81.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
login form
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/james/New%20folder/POS/pos/login%20form/bin/Debug/login%20form.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.81.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.81.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.81.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.81.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.81.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.81.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.6.81.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.6.81.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/S
jamesmc1535
5-Aug-15 3:37am
View
i dont know visual studios starts perfectly , its when i run the program and open that form (add user) that i get that error
jamesmc1535
4-Aug-15 6:23am
View
could it be that im using sql server 2012
jamesmc1535
4-Aug-15 5:56am
View
i entered everything as u did and i changed all values > i get this error System.ArgumentException: Invalid value for key 'integrated security'.
jamesmc1535
4-Aug-15 5:36am
View
so at this line >Library=DBMSSOCN;Initial Catalog=empdb;User ID=myusername;Password=mypwd;";
i should enter /Library=DBMSSOCN;Initial Catalog=login1;User ID=JAMES-PC\\SQLEXPRESS;Password=mypwd;"; dont have a password
jamesmc1535
4-Aug-15 5:01am
View
thanks
jamesmc1535
4-Aug-15 4:43am
View
thanks
jamesmc1535
4-Aug-15 4:43am
View
i have another follow up question on this forms ect ect ect, theres a menu where u can edit n forms framework< rightclick properties if i recall perfectly but its not working
jamesmc1535
4-Aug-15 4:43am
View
ive seen the rating system but didnt know what 5 ed meant lol thanks btw i have another follow up question on this forms ect ect ect, theres a menu where u can edit n forms framework< rightclick properties if i recall perfectly but its not working
jamesmc1535
4-Aug-15 4:20am
View
i have a quiestion , on all my stuff that u replied u said 5ed. im curious
whats that mean?
jamesmc1535
4-Aug-15 4:13am
View
yup bitmaps the right one so its workin now
jamesmc1535
4-Aug-15 4:12am
View
thanks man lol
jamesmc1535
4-Aug-15 4:08am
View
theres my full code
string barcode = textBox1.Text;
Bitmap bitmap = new Bitmap(barcode.Length * 40, 150);
using (Graphics graphics = Graphics.FromImage(bitmap))
{
Font oFont = new System.Drawing.Font("IDAutomationHC39M", 20);
PointF point = new PointF(2f, 2f);
SolidBrush black = new SolidBrush(Color.Black);
SolidBrush white = new SolidBrush(Color.White);
graphics.FillRectangle(white, 0, 0, bitmap.Width, bitmap.Height);
graphics.DrawString("*" + barcode + "*", oFont, black, point);
}
using (MemoryStream ms = new MemoryStream())
{
barcode.Save(ms, ImageFormat.Png);
pictureBox1.Image = bitmap;
pictureBox1.Height = bitmap.Height;
pictureBox1.Width = bitmap.Width;
jamesmc1535
4-Aug-15 4:06am
View
like on products at a store, those stripy stuff\
jamesmc1535
4-Aug-15 2:42am
View
thanks alot
jamesmc1535
3-Aug-15 11:21am
View
no , as a matter of fact my program i made in framework 3.0 which isnt supported, so ima just change it to 4.5 then it will work,
jamesmc1535
3-Aug-15 11:04am
View
i might lack basic understanding -_- , but if u read clearly you could see that i asked how do i _enable_ it ,
jamesmc1535
3-Aug-15 11:04am
View
i know as you can see i asked how do i enable it , cos i cant find system.core under add > refrence
jamesmc1535
3-Aug-15 10:58am
View
Deleted
i might lack basic understanding -_- , but if u read clearly you could see that i asked how do i _enable_ it ,
jamesmc1535
3-Aug-15 10:53am
View
Deleted
i know as you can see i asked how do i enable it , cos i cant find system.core under add > refrence
jamesmc1535
3-Aug-15 10:48am
View
System.Core.dll < cant find it
refrence>add refrence>assemblies>framewor> its not there
jamesmc1535
3-Aug-15 10:31am
View
thanks
jamesmc1535
3-Aug-15 8:59am
View
thanks
jamesmc1535
3-Aug-15 5:48am
View
the name library does not exist in the current context, using System.Linq; < i dont have that and when i type it it doesnt work , shud i add it as a refrence?
jamesmc1535
3-Aug-15 5:42am
View
thanx but i have 2 follow up questions
!1!- Library = DBMSSOCN; Initial Catalog = staff; User ID = myusername; Password = mypwd; "; - i get a hell lot of errors there
!2!-empcode what do i replace it with coz empdb i figured i replace with my database name
jamesmc1535
3-Aug-15 5:31am
View
yeah im doing research on it bt i have trouble understanding it,so im using this way to progress further in my program, until i fully understand the parametirized
jamesmc1535
3-Aug-15 4:52am
View
thanks i did some research on the sql injection , this program im doin is just a test so sql injection aint a big threat at the moment but that@ params stuff is confusing me
jamesmc1535
3-Aug-15 4:41am
View
the problem was with my connection string
jamesmc1535
3-Aug-15 4:35am
View
THanx , no need to post it fixed it, see i copied the conection string from a previous connection and forgot to change the catalog= to staff XD
jamesmc1535
31-Jul-15 8:08am
View
hey bud i just used the updated ,cmd.Parameters.AddWithValue(@username, textBox1.Text);
cmd.Parameters.AddWithValue(@password, textBox2.Text); but i get eror on username and password - does not exist
jamesmc1535
31-Jul-15 7:52am
View
thanks for the advice, im stil reading up on parameterized .
jamesmc1535
31-Jul-15 7:50am
View
JEEZ lotta help thanks man
something as simple as that :| and it works
jamesmc1535
27-Jul-15 6:23am
View
check youtube , there is alot of login forms tutorials
jamesmc1535
24-Jul-15 4:26am
View
i tried Application.Close(); lol close enuff i guess
jamesmc1535
24-Jul-15 4:21am
View
Application.Exit(); found the one i was looking for , the thing with this.close(); it doesnt close the application it closes the form
jamesmc1535
24-Jul-15 4:21am
View
thanks buddy , Application.Exit(); this was the one im looking for xD i remember application- lol -
jamesmc1535
23-Jul-15 8:46am
View
i stated sqls 2day so im still new @ this. uhm i checked the sql injection - and query parameteriation. thanks alot . its very helpfull \M/ and confusing theres an example on that website of c# but im struggling 2 understand the layout ,if you can and have time , would you maybe try 2 quickly explain it?
jamesmc1535
23-Jul-15 8:26am
View
okay it works (
\\ ) and the @ but i get another syntax error -
SqlCommand cmd = new SqlCommand("from user1 where username = '" + textBox1.Text + "' and password = '" + textBox2.Text + "'", cn); on the from .any fixes? or advice
jamesmc1535
23-Jul-15 8:22am
View
lol XD visual studios is against me and you because its the 2nd error me and you have in common
jamesmc1535
17-Jul-15 6:06am
View
sorry uhm i used that code it works perfect but ive seen now that it diesnt close the 1st form, how do i make it close the form when i click the button?
jamesmc1535
17-Jul-15 5:53am
View
thanx man \m/ another question , do u perhaps know how i can make the printer selective/ so how to select active printer
jamesmc1535
17-Jul-15 5:04am
View
thanks man . ill keep that in mind. i did change the name though but i changed it back,dont ask me why XD
jamesmc1535
17-Jul-15 5:02am
View
aah thanks man
jamesmc1535
16-Jul-15 6:49am
View
Deleted
now it doesnt re open the login form -_- ugh ima noob
jamesmc1535
16-Jul-15 6:45am
View
sorry "if (MessageBox.Show("Are You Sure To Exit ?", "Exit", MessageBoxButtons.YesNo) == DialogResult.Yes)
{" but its working now i left the "if" out
jamesmc1535
16-Jul-15 6:36am
View
lol sorry for the string of question , uhm i added a message box "are you sure /yes no" if i click yes it closes and opens the login form , but when i click no it also closes and opens login
MessageBox.Show("Are you sure", "Logout/switch user", MessageBoxButtons.YesNo, MessageBoxIcon.Question); theres the code how do i add the no to function
jamesmc1535
16-Jul-15 6:20am
View
tnx man \m/ very helpfull
jamesmc1535
16-Jul-15 5:56am
View
okay uhm il try that code now, see cos in the 2nd form ill be having a switch user button which re opens the login form
Show More