Printing Green part of star also prints spaces over red star. Red and Green stars should print at same print, or you had to just move cursor instead printing space.
I tried it basicaally worked, but some of code had to rewrite.
Printing Green part of star also prints spaces over red star. Red and Green stars should print at same print, or you had to just move cursor instead printing space.
I tried it basicaally worked, but some of code had to rewrite.
I have developed shareware program where it is possible to draw form and reports, then print it out.
Small sample from it
I was copied some lines from my software, and hoping it is workable and understandable.
using System.Drawing;
using System.Drawing.Printing;
using System.IO;
using System.Windows.Forms;
namespace xxx
{
public void PRINTOUT()
{
PrintDialog pd = new PrintDialog();
pd.Document = new PrintDocument();
if (pd.ShowDialog() == DialogResult.OK)
{
pd.Document.PrintPage += new PrintPageEventHandler (PrintPage);
pd.Document.Print();
}
}
private void PrintPage(object sender, PrintPageEventArgs ev)
{
ev.Graphics.DrawString("* * Header * * ", Font, Brushes.Black, 100, 100); //Print header text, Font has been
//defined elsewhere (in form ?)
ev.HasMorePages=false; // Last Page (1 page)
}
}
Simple piece of code to make 5 second delay:
for (DateTime sec = DateTime.Now; DateTime.Now < sec+ new TimeSpan(0,0,5); )
Application.DoEvents();
Why don't you use database as normal way. When referensing file there are some limitation. This type of connection is primarily for debugging for visual studio.
Attach mdf file to engine using management studio and use instead following connection string:
Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=mybase;Data Source=.\sqlexpress
If this does not work check out executing username with:
WindowsIdentity.GetCurrent().Name;
Now you can add right for user.
Hello
I found following from my software
public class WsPictureBox : PictureBox
{
public WsPictureBox()
{
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
UpdateStyles();
}
}
After that it should be possible to change backgroudcolor to transparent. Use new wspicture component instead. I have tried to use transparent components with DBEXform but implemented designer did not work well. There wss problems with update. Code should also be translated to VB.Net.
WSpicture component is in Willmansoft.com library distribute with DBEXform.
Do you running c# program in windows service. The changin user of service should help. Other option is to use Sql authentication.
Juhaw
I have been developed shareware software name DBEXform to design forms and reports for different databases, with integrated Sql query builder. Basic functions in software are quite easy to use. Now it seems that potential larger users likes it, but they afraid to use is because lack of a local support. Last case is other side of world, so there is also time zone issue.
Now I am planning to seek local or worldwide distribution and support organisation. How can I start searching possible resellers? What kind of channels for smaller companies and how about companies that are specialized for shareware reselling?
Do you have tried this?
Assembly a = Assembly.LoadFrom(dllname);
:Jw
It's bad behavier to use many incrementation or decrementation with same variable in same statement. C standard does not support this.
Result depends on compiler, version and optimations on compiler. Order of incrementations could happpen in any order.
Try to use DataGridViewComboBoxColumn instead. You could find example from help about that method.
Use abstract class if you want to create new inherited classes. Interfaces are suitable to add abstract methods to existing class hierarchy.
What is the datatype? Try to use varchar instead of char type in database.
First notice in C# there is not posssible to alter any string. The string will be allways replaced. There could be possible to keep in safe old version of string.
I have used string.Compare or ComporeTo to compare strings. I think that equality function checks only that strings are really same instances.
PS
string.IsNullOrEmpty(oldpassword.Text) is very useful
You can create normal application and then modify application settings to create library from your project. I just made that with my form designer project.
I think that FileOpen and fclose are not compatible . Is there function pairs FileOpen-FileClose or fopen-fclose. I have at least once meet problem using wrong closing function in C. Databuffer may not be flushed in this case.
At least there is bug at begin of buildlist:
head is argument of the fuction, but value of it is losed at begin of function. I cant't find any sense about malloc functions. First malloc just produces memory leak and second one just deletes argument.
#
struct list_node* buildlist(struct list_node anode, struct list_node *head){
#
#
struct list_node *current=NULL;
#
current=malloc(sizeof(struct list_node));
#
head=malloc(sizeof(struct list_node));
#
#
current=head;
#
You should know how many items you have read and put it as parameter array_size.
You need some way to find instance of object. Application.OpenForms returns it by name (or number). You had to type cast it to correct type to call method.
(((Main)Application.OpenForms["Main"]).PublicMethodInMain(Args);
Add eventhander in constructor of child form like this, Eventhandler must be introduced as public. In example I will use form named Main as main form.
public Form2()
{
InitializeComponent();
button1.Click+=new EventHandler(((Main)Application.OpenForms["Main"]).button1_Click);
}
It's byte[] type. It should be in same format than in file.
You can take part of the string using substring.
string s="x10";
int i = int.Parse(s.Substring(1));
#
if (HourlyPayRate > HIGH) // not end of statement
#
Console.WriteLine ("The amount entered is to much");
#
#
else if (HourlyPayRate < LOW) //same
#
Console.WriteLine (The amount you entered is to small");
For example EAN13 (UPC in US) will use 30 different sequence to represent 10 numeric values.
At the berginning could you tell little bit more specific which code trying to encodce.
You can try to add to begin of the code:
#ifdef __cplusplus
extern "C"
#endif
You could create event CellMouseDoubleClick or ColumnHeaderMouseDoubleClick in property editor and event page
aspx is related to web forms I think.
Hope this helps
Try to deactivate controls before making controls invisible. It seems that hiding control that is active may jam sotfware in strange way.
#
Console.WriteLine("Your total is " + TotalCost.ToString("####0.00");
#
#
memcpy(¤tInput->input, lpBuffer, strlen(lpBuffer)+1);
#
I think that lpBuffer itself is a pointer. To access memory buffer remove & operator