I want to display a month calender in which only saturdays can be clicked on and highlighted and also how can i acquire all the saturdays in a month? Thanks VisionTec
visiontec
Posts
-
calender help -
How can i call class files in webmatrix?Hey there Ive been using Visual studio to program my projects now im left only with WEBMATRIX! so can anyone tell me how i can use my class(.cs) files in my aspx files? sorry for the newbie question! VisionTec
-
How to add bookmarks?Hi there I have a WebApp sort of like an Address book which shows the contacts of a person from the database. How can i create bookmarks dynamically on each alphabet(A,B,C,D.....,Z) when i retreve the contats?? VisionTec
-
How can i get the ID3 info on MP3sHow can i get all the relavant info from an MP3 file using C#? like the ID3 tag and the other MPEG info? And also how can i edit it? VisionTec
-
problem with visual styleshi there my application crashes when i use Application.EnableVisualStyles() the app runs fine but as soon as i exit a dialog form the app crashes. what might be the problem? VisionTec
-
how can i arrange data alphabetically?How can i arrange data in an xml file alphabetically?
<?xml version="1.0" ?>
<name>>Matt Daimon</name>
<name>Kate Winsilet</name>
<name>Martha Stewarts</name>
<name>Will Smith</name>
<name>Britiny Spears</name>
<name>Jenifer Lopez</name>
<name>Jenifer Aniston</name>
</Names>Plz any sort of help will be gr8!
-
change webservice address at runtime?hi there i made a webservice and then i added a web reference of it to my project Now is it possible to change JUST the webservice's ADDRESS at runtime?
this.Url = "http://localhost/testing.asmx";
I want to change the address of my WS in
the reference.cs file at runtimeAnd if it is, then can someone plz tell me how? some code might be nice! VisionTec
-
problems in running app at win startupHi there I am having problems with loading my app at windows startup. When i load my app by clicking on it, it works fine but when i load it on windows startup, by adding a registry key in HKLM\Software\Current Machine\Microsoft\Windows\Current Version\Run it gives errors, the errors are of my files that i load when my app starts. i have an xml file that i load when my app starts that xml file has the location of my database file. for now i store my db file where my app's executable is. The code for my class :
using System;
using System.Xml;
using System.Xml.XPath;namespace Scheduler
{
public class SettingsXml
{
XmlDocument doc = new XmlDocument();public SettingsXml() { doc.Load("scheduler.xml"); // this means that this file // is where the app's .exe is } public string DBPath() { string xstr = "/Scheduler/Configurations/DbPath"; XmlNode xnode = doc.SelectSingleNode(xstr); return xnode.InnerText; }
}
}when the app loads at win startup it looks for my "scheduler.xml" file in "c:\scheduler.xml" rather then the place i have told it to! I fixed the "scheduler.xml" file's location problem by doing this:
doc.Load(System.Windows.Forms.Application.StartupPath + "/scheduler.xml");
It worked. But still in my xml file the path of my db file is "scheduler.mdb" now what do i do for this? cause when i distribute my app it has to have some default place to place my db file. What is the problem here? VisionTec
-
DataTable problem!Hi there I have a problem in using a data table object created from a dataset object. I have a form that has the following controls: 2 textboxs : txtTodayEvents , txtTodayDescr 1 listbox : lbToday 1 label : lblToday The database i am using has the following fields: ID EventName Description EventDate This is the code that i am using to get my data table working:
private void TodaysEvents()
{
DataSet dsAllEvents = new DataSet("Events");
dsAllEvents.ReadXml("EventsDB.xml");
// i use an acess DB but this is to show
// that i got the dataset filled.string date = DateTime.Now.ToShortDateString();
int todEve = dsAllEvents.Tables["Events"].Select("EventDate Like '*" + date + "*'").Length; //works gr8 uptill hereif(todEve>=1)
{
DataTable TodTable = new DataTable("TE");
TodTable.Columns.Add("ID",System.Type.GetType("System.String"));
TodTable.Columns.Add("EventName",System.Type.GetType("System.String"));
TodTable.Columns.Add("Description");
TodTable.Columns.Add("EventDate",System.Type.GetType("System.String"));TodTable.Rows.Add(dsAllEvents.Tables\["Events"\].Select("EventDate Like '\*" + date + "\*'")); lbToday.DataSource = TodTable; lbToday.DisplayMember = "EventDate"; lbToday.Visible = true; txtTodayEvent.DataBindings.Add("Text",TodTable,"EventName"); txtTodayEvent.Visible = true; txtTodayDescr.DataBindings.Add("Text",TodTable,"Description"); txtTodayDescr.Visible = true;
}
else
{
lblToday.Visible = true;
}
}when i run this code it runs but i get nothing in my controls Can anyone plz tell me what i am doing wrong? VisionTec
-
how to use an icon in multiple placesHi there I have an icon that i use as: my application's icon my notifyicon's icon and my main form's icon its a 22kb icon. now everything works fine but the size of my app increases three times! (66kb) when it should only have increased 22kb how can i fix this problem or is this something normal? VisionTec
-
opening a child form from a dialogHi there Thanks for the help but i actually want the child form to load when the user wants it to. so i have added another button to the Dialog form. i have updated the code on the discussions board and also uploaded the source code to my website: http://www.geocities.com/talhatec/downloads/WindowsApplication1.cab[^] the code is only 14K plz help me once again! VisionTec ( TEC )
-
opening a child form from a dialogHi there I want to open a child form from a dialog form (.ShowDialog) and after the child form shows i want to close the dialog form. In the Dialog form there are 2 buttons: 1) btnclose which closes the dialog form 2) btnOpenChild which opens a child form and then closes itself (the dialog form) What should i do to get my desired result? I have included the codes to all the forms so that it may become easier to understand what i want to do. I am a total newbie, so plz do bare with me! Any help will be gr8! Thanks in Advance VisionTec ****************************** Form1 ( Main MDI Parent Form ) ******************************
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;namespace WindowsApplication1
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btnChild;
private System.Windows.Forms.Button btnDialog;
private System.ComponentModel.Container components = null;public Form1() { InitializeComponent(); } protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code private void InitializeComponent() { this.btnChild = new System.Windows.Forms.Button(); this.btnDialog = new System.Windows.Forms.Button(); this.SuspendLayout(); // // btnChild // this.btnChild.Location = new System.Drawing.Point(72, 112); this.btnChild.Name = "btnChild"; this.btnChild.TabIndex = 1; this.btnChild.Text = "open child"; this.btnChild.Click += new System.EventHandler(this.btnChild\_Click); // // btnDialog // this.btnDialog.Location = new System.Drawing.Point(208, 112); this.btnDialog.Name = "btnDialog"; this.btnDialog.TabIndex = 2; this.btnDialog.Text = "open dialog"; this.btnDialog.Click += new System.EventHandler(this.btnDialog\_Click); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(408, 413); this.Controls.AddRange(new System.Windows.Forms.Control\[\] { this.btnDialog, this.btnChild}); this.IsMdiContainer = true; this.Name = "Form1"; this.Text = "Form1"; this.ResumeLayout(false); } #endregion \[STAThread\] st
-
how to restrict appearance of child formsHi there How can i restrict the appearance of child forms? i only want 1 instance of a particular child form how do i do that? VisionTec
-
Tab Pages NavigationHi there In my mdi app i have a child form which has a tabcontrol on it. there r 2 pages in that tabcontrol Now how can i load the child form to show the start page that i want? VisionTec
-
Best Practice: Internet Connection?Hi there I have the same problem as yours but u have at least made a function to get yr work done. I couldnt even do that ! can u plz pass a copy of that function to me? Thanks VisionTec
-
close button on control box of formHi there Can anyone tell me how i can change the action of the close button on the control box of the form. i want to hide the form rather than to close it when the close button is pressed. VisionTec
-
problem with XmlDocumentHi there I am having problems using the XmlDocument class when editing an xml file. This is what my xml file looks like : Code Project visiontec somefakepwd gr8 website. c# fourms and more. This is the way i am using XmlDocument : private bool SaveXml( string WebsiteName, string UserId, string Pwd, string Description ) { XmlDocument doc = new XmlDocument(); try { doc.Load("vtinfokeeper.xml"); } catch(Exception) { return false; } XmlElement newWebPwd = doc.CreateElement("WebPwd"); XmlElement newWebsite = doc.CreateElement("website"); newWebsite.InnerText = WebsiteName; newWebPwd.AppendChild(newWebsite); XmlElement newUID = doc.CreateElement("uid"); newUID.InnerText = UserId; newWebPwd.AppendChild(newUID); XmlElement newPwd = doc.CreateElement("pwd"); newPwd.InnerText = Pwd; newWebPwd.AppendChild(newPwd); XmlElement newDescr = doc.CreateElement("description"); newDescr.InnerText = Description; newWebPwd.AppendChild(newDescr); doc.DocumentElement.AppendChild(newWebPwd); XmlTextWriter tr = new XmlTextWriter("vtinfokeeper.xml",null); tr.Formatting = Formatting.Indented; try { doc.WriteContentTo(tr); } catch(Exception) { return false; } tr.Close(); return true; } Now when i run the above code i get this result : Code Project visiontec vtlives gr8 website. c# fourms and more. somwwebsite somewuid somwpwd somedescr Whereas i wish to accomplish the result below : Code Project visiontec vtlives gr8 website. c# fourms and more. somwwebsite somewuid somwpwd somedescr What am i doing wrong? Can anyone plz point out the correct way that i should use the XmlDocument class to get my desired result. And as u can
-
minimize to tray?The Show() Hide() methods work fine if i use buttons or menus. But i want to use the minimize box that the form has. Can anyone plz help? VisionTec
-
minimize to tray?Hi there i have an mdi app that has a notifyicon. i want my app to minimize to the tray when it is minimized but when i minimize the app it minimizes to the bottom of my desktop! i have set the property ShowInTaskbar = false of the main form Can anyone help me?? VisionTec
-
Recording from moden using TAPI?Hi there I need to know if it is possible to record from the modem using TAPI in C#? I am making a project that will record conversations that are going on on the same line as the modem. Can anyone help me? VisionTec