Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
I

Ibuprofen

@Ibuprofen
About
Posts
83
Topics
18
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Guidance regarding developing application for Win CE with VC++5
    I Ibuprofen

    question 2 I am not sure if its going to be the same in VC++, however in Visual Studio 2005, in C# it creates the code to track all those buttons, here is a copy of some of it out of one my appliations

        private void R1TimeSummaryViewDialog\_KeyDown(object sender, KeyEventArgs e)
        {
            if ((e.KeyCode == System.Windows.Forms.Keys.Up))
            {
                this.AutoScrollPosition = new System.Drawing.Point(0, ((0 - this.AutoScrollPosition.Y)
                                - 16));
                e.Handled = true;
            }
            if ((e.KeyCode == System.Windows.Forms.Keys.Down))
            {
                this.AutoScrollPosition = new System.Drawing.Point(0, ((0 - this.AutoScrollPosition.Y)
                                + 16));
                e.Handled = true;
            }
            if ((e.KeyCode == System.Windows.Forms.Keys.Up))
            {
                // Up
            }
            if ((e.KeyCode == System.Windows.Forms.Keys.Down))
            {
                // Down
            }
            if ((e.KeyCode == System.Windows.Forms.Keys.Left))
            {
                // Left
            }
            if ((e.KeyCode == System.Windows.Forms.Keys.Right))
            {
                // Right
            }
            if ((e.KeyCode == System.Windows.Forms.Keys.Enter))
            {
                // Enter
            }
    
        }
    

    Hope this helps.

    Computer Programmer Web/Mobile .NET

    Mobile c++ data-structures business help tutorial

  • Differences between .Net Framework and .Net Compact Framework ? [Solved]
    I Ibuprofen

    Damn, I was hoping this would be a bit like the SUBJECT of the title, not even what OP SAID, Can someone seriously though explain the differences in .NET CF and just .NET Framework, is it just that simple? I just don't get it, I am new to the mobile programming, and this has seriously recently fugged with me, my program requires .NET CF 2.0, on the pda .NET FRAMWORK 2.0 (blah blah long number) is loaded, however I CAN successfuly install .NET CF 2.0 on my windows mobile 5 pda. It then shows in Add / Remove Programs - however my Windows Mobile 6.0 PDA (even changed the platform so it would be a 6.0 app) No .NET CF shows up in the add / remove / programs - try to install NET CF 2.0 it says, there is a newer version already on it and to uninstall it - but like I said it doesnt show it in the add and remove, so I check the .NET FRAMWORK version of the PDA and its the same as the other one, however my app wont run on it, because I cant install the CF 2.0. Sorry if I ranted a bit, but I'd really love to get schooled on what the differences is in the two? Is CF just simply compact meaning its for a mobile/compact device? Gosh, makes me want to go back web programming.

    Computer Programmer Web/Mobile .NET

    .NET (Core and Framework) csharp dotnet algorithms performance help

  • [Message Deleted]
    I Ibuprofen

    [Message Deleted]

    Mobile

  • Error in buliding installer?
    I Ibuprofen

    using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration.Install; using Microsoft.Win32; using System.Reflection; using System.IO; using System.Diagnostics; using System.Windows.Forms; namespace WindowsControlLibrary1 { [RunInstaller(true)] public partial class CustomInstaller : Installer { public CustomInstaller() { InitializeComponent(); } protected override void OnAfterInstall(System.Collections.IDictionary savedState) { string programName = "\"" + CeAppMgrExe + "\""; string programArg = "\"" + IniFilePath + "\""; MessageBox.Show(programName + " " + programArg); Process.Start(programName, programArg); base.OnAfterInstall(savedState); } const string _ceAppMgRegistryPath = @"software\Microsoft\Windows\CurrentVersion\App Paths\CEAppMgr.exe"; const string _iniFileName = "PDARAM.ini"; const string _filePrefix = @"file:\"; string CeAppMgrExe { get { RegistryKey subKey = null; string exePath = null; try { subKey = Registry.LocalMachine.OpenSubKey(_ceAppMgRegistryPath); exePath = (string) subKey.GetValue(""); } finally { if (subKey != null) subKey.Close(); } return exePath; } } string IniFilePath { get { string installFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase); string iniFilePath = Path.Combine(installFolder, _iniFileName); if (iniFilePath.StartsWith(_filePrefix)) { int index = _filePrefix.Length; iniFilePath = iniFilePath.Substring(index); } return iniFilePath; } } } } Can anyonehelp me? I am buliding the Desktop installer, and it starts the install proccess, but tells me there is an error in my setup file? <b>This is my INI file</b> [CEAppManager] Version = 1.0 Componet = DeviceApplication1 [DeviceApplication1] Description =

    C# workspace database windows-admin help question

  • How to bulid a one click installer for a Mobile 5 Application
    I Ibuprofen

    using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration.Install; using Microsoft.Win32; using System.Reflection; using System.IO; using System.Diagnostics; using System.Windows.Forms; namespace WindowsControlLibrary1 { [RunInstaller(true)] public partial class CustomInstaller : Installer { public CustomInstaller() { InitializeComponent(); } protected override void OnAfterInstall(System.Collections.IDictionary savedState) { string programName = "\"" + CeAppMgrExe + "\""; string programArg = "\"" + IniFilePath + "\""; MessageBox.Show(programName + " " + programArg); Process.Start(programName, programArg); base.OnAfterInstall(savedState); } const string _ceAppMgRegistryPath = @"software\Microsoft\Windows\CurrentVersion\App Paths\CEAppMgr.exe"; const string _iniFileName = "PDARAM.ini"; const string _filePrefix = @"file:\"; string CeAppMgrExe { get { RegistryKey subKey = null; string exePath = null; try { subKey = Registry.LocalMachine.OpenSubKey(_ceAppMgRegistryPath); exePath = (string) subKey.GetValue(""); } finally { if (subKey != null) subKey.Close(); } return exePath; } } string IniFilePath { get { string installFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase); string iniFilePath = Path.Combine(installFolder, _iniFileName); if (iniFilePath.StartsWith(_filePrefix)) { int index = _filePrefix.Length; iniFilePath = iniFilePath.Substring(index); } return iniFilePath; } } } } Can anyonehelp me? I am buliding the Desktop installer, and it starts the install proccess, but tells me there is an error in my setup file? This is my INI file [CEAppManager] Version = 1.0 Componet = DeviceApplication1 [DeviceApplication1] Description = PDA RAM Data

    Mobile csharp database tutorial question

  • How to bulid a one click installer for a Mobile 5 Application
    I Ibuprofen

    Walk through of buliding a CAB project I did this, it works great, now anyone got an idea how to get .NET CF to install with it?

    Computer Programmer Web/Mobile .NET

    Mobile csharp database tutorial question

  • How to bulid a one click installer for a Mobile 5 Application
    I Ibuprofen

    Can anyone tell me how to bulid a one click installer, that will install, my 3 cab files (SQL stuff, and deploy my application to the PDA? So that we do not have to do it manualy. Thanks!

    Computer Programmer Web/Mobile .NET

    Mobile csharp database tutorial question

  • Version # Auto increment on every rebulid?
    I Ibuprofen

    no one?

    Computer Programmer Web/Mobile .NET

    Mobile csharp question announcement visual-studio

  • Version # Auto increment on every rebulid?
    I Ibuprofen

    I've created a Windows Mobile 5.0 Application, in Visual Studio 2005 with 5.0 SDK, I would love to put in an info button, that gave them the version of my application, however I do not want to have to update this manualy, how can I make it autoincrement a version number on every bulid? Paul

    Computer Programmer Web/Mobile .NET

    Mobile csharp question announcement visual-studio

  • Windows Mobile 5 / SQL Mobile Record Counts
    I Ibuprofen

    Well I know I didn't do it the correct way.. However it does work... private void R1RecCount() { R1Count.Visible = false; conn = new SqlCeConnection("Data Source = \\My Documents\\RAM.sdf"); conn.Open(); SqlCeCommand cmd = conn.CreateCommand(); cmd.CommandText = "SELECT * FROM R1Time"; SqlCeDataReader rdr = cmd.ExecuteReader(); while (rdr.Read()) { countr1 = countr1 + 1; if (countr1 >= 1) { //MessageBox.Show(rdr.GetValue(0).ToString()); //Eventually will ad button to this screen this.rAMDataSet.R1Time.AddR1TimeRow( rdr.GetValue(0).ToString(), rdr.GetValue(1).ToString(), rdr.GetValue(2).ToString(), rdr.GetValue(3).ToString(), rdr.GetValue(4).ToString(), rdr.GetValue(5).ToString(), rdr.GetValue(6).ToString(), rdr.GetValue(7).ToString()); } } R1c.Text = countr1.ToString(); R1c.Enabled = false; this.r1TimeTableAdapter.Fill(this.rAMDataSet.R1Time); conn.Close(); }

    Computer Programmer Web/Mobile .NET

    Mobile database help question

  • Check if activesync is connected ?
    I Ibuprofen

    I created a Mobile application (C#) for windows mobile 5, and also a custom downloader, I used OpenNetCF.ORG's desktop communication library to bulid the downloader, it has support for ActiveSync in it. Paul

    Mobile question

  • Windows Mobile 5 / SQL Mobile Record Counts
    I Ibuprofen

    private void R1RecCount() { if (RAMDataSetUtil.DesignerUtil.IsRunTime()) { R1Count.Visible = true; conn = new SqlCeConnection("Data Source = \\My Documents\\RAM.sdf"); conn.Open(); SqlCeCommand cmd = conn.CreateCommand(); cmd.CommandText = "SELECT COUNT ([StatusCode]) FROM R1Time"; SqlCeDataReader rdr = cmd.ExecuteReader(); while (rdr.Read()) { count = count + 1; if (count >= 1) { //MessageBox.Show(rdr.GetValue(0).ToString()); //Eventually will ad button to this screen this.rAMDataSet.R1Time.AddR1TimeRow( rdr.GetValue(0).ToString(), rdr.GetValue(1).ToString(), rdr.GetValue(2).ToString(), rdr.GetValue(3).ToString(), rdr.GetValue(4).ToString(), rdr.GetValue(5).ToString(), rdr.GetValue(6).ToString(), rdr.GetValue(7).ToString()); } } } this.r1TimeTableAdapter.Fill(this.rAMDataSet.R1Time); conn.Close(); } This doesn't seem to count? I also tried creating a new query in the Dataset, doing a count like SELECT COUNT(1) AS R1 FROM R1Time then calling it as the fill. Thanks for your help! Paul

    Mobile database help question

  • Too many literals in the string..
    I Ibuprofen

    Anyone that uses my application, has a security clearance, you have to have access to our network, to get to the application, if any of the people cause a SQL Injection attack. Well then, that will end with a nice prison sentence. I am reading the article, and I will always take whatever help I can get, I am not a trained programmer, the article is a bit above my head.

    ASP.NET security debugging help question

  • Too many literals in the string..
    I Ibuprofen

    I am on an Govt Secure server. That is not actually out on the web. I don't have to worry about a SQL Injection Attack. I am no skilled programmer, nor trained, this is the only way I know how to do what I am doing. :(

    ASP.NET security debugging help question

  • Too many literals in the string..
    I Ibuprofen

    Can you double check my syntax on this? I keep getting an error of too many literals in the string ScnQuestionNo and MeasID are number fields string strInsert ="Insert INTO DataElements (Checked, Requirement, RequirementTitle," + " MeasID,DeNr, Duplicate, LiveQuestionNo, ScnQuestionNo, DataElement, Form, QType," + " Format, [Default], SME, [User], SA, IASME, Security, [Table], FieldName," + " TQScenario, TQLive, Subtitle, DA) Values (" + Convert.ToInt16(ckChecked.Checked) + ",'" + Requirement.Text + "','" +RequirementTitle.Text+ "'," + MeasID.Text + ",'" + DeNr.Text + "'," + Convert.ToInt16(ckDuplicate.Checked) + ",'" + LiveQuestionNo.Text + "'," + ScnQuestionNo.Text + ",'" + DataElement.Text + "','" + Form.SelectedValue + "','" + QType.SelectedValue + "','" + Format.Text + "','" + Default.Text + "'," + Convert.ToInt16(ckSME.Checked) + "," + Convert.ToInt16(ckUser.Checked) + "," + Convert.ToInt16(ckSA.Checked) + "," + Convert.ToInt16(ckIASME.Checked) + "," + Convert.ToInt16(ckSecurity.Checked) + ",'" + TableName.SelectedValue + "','" + FieldName.Text + "'," + Convert.ToInt16(ckTQScenario.Checked) + "," + Convert.ToInt16(ckTQLive.Checked) + ",'" + Subtitle.Text + "'," + Convert.ToInt16(ckDA.Checked) + ")"; Here's my debug output: strInsert: "Insert INTO DataElements (Checked, Requirement, RequirementTitle, MeasID,DeNr, Duplicate, LiveQuestionNo, ScnQuestionNo, DataElement, Form, QType, Format, [Default], SME, [User], SA, IASME, Security, [Table], FieldName, TQScenario, TQLive, Subtitle, DA) Values (0,'Unk','Unk',,'DE 0.1.17',0,'',,'Last four digits of SSN','Demographics','N/A','char','',0,0,0,0,0,'Demographics','LastFour',0,0,'N/A',0)" Now I get "Line 1: Incorrect syntax near ','."

    ASP.NET security debugging help question

  • Webconfig + SQL Server 2003
    I Ibuprofen

    Sorry, I meant to type SQL Server 2000 and Visual Studio 2003. Thank you, that worked for me.

    ASP.NET csharp database sql-server visual-studio sysadmin

  • Webconfig + SQL Server 2003
    I Ibuprofen

    I tried using the Microsoft help, I am not really a decent programmer, the website we already have, is setup to function under an access database, we hired a SQL guy to bulid us the SQL tables we needed in SQL, trying to update the Webconfig to talk to the SQL server, I have failed at. Is what I have tried to get my website to talk to the sql Line 17: Line 18: Here is our old webconfig file talking to the access database: Can anyone tell me how to setup my webconfig file? So I can work on the SQL server? Using Visual Studio 2003, .NET 1.1

    ASP.NET csharp database sql-server visual-studio sysadmin

  • How to format textbox data into an email message [modified]
    I Ibuprofen

    Not sure, what the vb code is, but here it is in C#. private void SendEmail() { try { MailMessage newMail = new MailMessage(); newMail.From=Email.Text; newMail.To="email@email.com"; newMail.Cc="email@email.com;email2@email.com"; newMail.Subject="User Feedback"; newMail.Body=SubmitBy.Text+" filled out a Web User Feedback Support form.\r\n\r\n"+SubmitBy.Text + " wrote:\r\n"+Comments.Text; SmtpMail.SmtpServer="000.000.000.000"; SmtpMail.Send(newMail); } catch(Exception err) { string s = err.Message; } }

    ASP.NET help tutorial csharp com

  • Based on the item selected in dropdown appropriate date should get focus on calender
    I Ibuprofen

    Do your own work, or at least attempt to. Plus there is no way I can write the code, I dont know your variables. People here arent here to just do your job for you, they are here to offer help and assistance, and no one is going to help, with someome that is just saying "give me the code", there are way WAY better programmers on here than me, but none have responded, cause of just what I said. What dont you understand about what I said?

    ASP.NET csharp asp-net help

  • Use of unassigned local variable trying to pass a sql statment through a var.
    I Ibuprofen

    I rewrote the try, and also put in something to catch the Handle the Error. private void UpdateFeedback_Click(object sender, System.EventArgs e) { bool bNoError =true; OleDbConnection con = new OleDbConnection(strConnection2); string strSQL=""; DataSet ds = new DataSet(); CUsers user =new CUsers(); user=(CUsers)Session["SessionUser"]; switch(user.Role) { case "TL": //string strStatus=""; if(TicketStatus.SelectedValue=="Closed") { string strStatus="Closed"; TicketClosedBy.Text = strStatus; } else { TicketClosedBy.Text=""; } strSQL="UPDATE UserFeedback set [TLComment]='"+TLComment.Text+"', [TLwho]='"+TLwho.Text+"', [TicketStatus]='"+TicketStatus.SelectedValue+"', [TicketClosedBy]='"+TicketClosedBy.Text+"', [NeedAction]='"+NeedAction.SelectedValue+"' WHERE autoNum="+TicketNum.Text; break; case "CP": if(TicketStatus.SelectedValue=="Closed") { string strStatus="Closed"; TicketClosedBy.Text = strStatus; } strSQL="UPDATE UserFeedback set [CPComment]='"+CPComment.Text+"', [CPwho]='"+CPwho.Text+"', [TicketStatus]='"+TicketStatus.SelectedValue+"', [TicketClosedBy]='"+TicketClosedBy.Text+"' WHERE autoNum="+TicketNum.Text; break; case "ORA": if(TicketStatus.SelectedValue=="Closed") { string strStatus="Closed"; TicketClosedBy.Text = strStatus; } strSQL="UPDATE UserFeedback set [ORAComments]='"+ORAComments.Text+"', [ORAwho]='"+ORAwho.Text+"', [TicketStatus]='"+TicketStatus.SelectedValue+"', [TicketClosedBy]='"+TicketClosedBy.Text+"' WHERE autoNum="+TicketNum.Text; break; case "DMO": if(TicketStatus.SelectedValue=="Closed") { string strStatus="Closed"; TicketClosedBy.Text = strStatus; } strSQL="UPDATE UserFeedback set [DMComments]='"+DMComments.Text+"', [DMwho]='"+DMwho.Text+"', [TicketStatus]='"+TicketStatus.SelectedValue+"', [TicketClosedBy]='"+TicketClosedBy.Text+"' WHERE autoNum="+TicketNum.Text; break; case "User": if(TicketStatus.SelectedValue=="Closed") { string strStatus="Closed"; TicketClosedBy.Text = strStatus; } strSQL="UPDATE UserFeedback set [Comments]='"+Comments.Text+"', [TicketStatus]='"+TicketStatus.SelectedValue+"', [TicketClosedBy]='"+TicketClosedBy.Text+"' WHERE autoNum="+TicketNum.Text; break; } try { OleD

    ASP.NET database announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups