|
thanks for replay
yes i have full permission on domain and server.
you have no idea for slove this problem?
i am very confused .
Regards,
|
|
|
|
|
|
Hello Everyone,
I am using access db. In database there is 1 table having company and addres as columns.
I have retrieved company in combo box.. What I want is on the selection of company in combo box it should display appropriate address in label..
I have retrieve data in combo box through wizard.
Can anyone please help me in write code..
Thanks in advance..
Chetan
|
|
|
|
|
If your ComboBox is set up properly, the ValueMember property should be the Primary Key for that company. All you then need to do is to pass that as a parameter to a SQL Query to retrieve the address.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I strongly suggest you buy a book and read/work through a it. As soon as you state you achieved something using a wizard then we know you will probably not understand the answer. You need to get some understanding of programming and data manipulation, not just following the wizards.
Wizards are great for users they are disasters for developers, they allow you to create simplistic solutions with no real knowledge of how it is achieved.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
i have a crystal report program writen in c#, i want to convert numerics to words. i don't know how to do that.
can any one help
|
|
|
|
|
i want to creat a landscape report in my crystal report at desing time, i don't have idea how to start.
|
|
|
|
|
I'm not able to get the body of the mail.
Below is the code snippet:
MAPI.Session oSession = new MAPI.Session();
Object vEmpty = Missing.Value;
oSession.Logon("OutLook1", vEmpty, false, false, false, false, vEmpty);
MAPI.Folder oFolder = (MAPI.Folder)oSession.Inbox;
MAPI.Messages oMsgs = (MAPI.Messages)oFolder.Messages;
MAPI.MessageFilter oFilter = (MAPI.MessageFilter)oMsgs.Filter;
oFilter.Unread = true;
MAPI.Message newMessage = (MAPI.Message)oMsgs.GetFirst(oFilter);
while (newMessage != null)
{
string text = newMessage.Text.ToString();
//text is coming as blank.
newMessage.Unread = false;
newMessage.Update(true, true);
newMessage = (MAPI.Message)oMsgs.GetNext();
}
Thanks,
Nitesh
|
|
|
|
|
I googled for the better part of half an hour, and come up with nothing. Given a win 32 error code, how do I get the corresponding error message? FormatMessage() is what I would've used in C++. I'm assuming this can be done without P/Invoke voodoo.
--
Kein Mitleid Für Die Mehrheit
|
|
|
|
|
|
I already have the error code. I want to translate it into an error message, as stated.
--
Kein Mitleid Für Die Mehrheit
|
|
|
|
|
new Win32Exception(win32ErrorCode).Message
|
|
|
|
|
Hi,
you can use a little P/Invoke to access FormatMessage, this is the code I normally use:
using System.Runtime.InteropServices;
public static string GetSystemMessage(int errorCode) {
int capacity = 512;
int FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000;
StringBuilder sb = new StringBuilder(capacity);
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, IntPtr.Zero, errorCode, 0,
sb, sb.Capacity, IntPtr.Zero);
int i = sb.Length;
if (i>0 && sb[i - 1] == 10) i--;
if (i>0 && sb[i - 1] == 13) i--;
sb.Length = i;
return sb.ToString();
}
[DllImport("kernel32.dll")]
public static extern int FormatMessage(int dwFlags, IntPtr lpSource, int dwMessageId,
int dwLanguageId, StringBuilder lpBuffer, int nSize, IntPtr Arguments);
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Thanks.
I had that one nailed down, but I felt an urge not to use it. Every time I see P/Invoke-stuff, I feel a cold chill running down my spine.
--
Kein Mitleid Für Die Mehrheit
|
|
|
|
|
I don't know any alternative, some holes in .NET need to be filled with P/Invoking old stuff. I just keep those in a separate class of mine.
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
I AM NEW IN WINDOWS SERVICES. I AM CREATING A WINDOW SERVICE THAT USES A EXTERNAL CALL….. THAT CLASS WORK FINE IN WINDOW APPLICATION BUT WHEN I CALL THAT CLASS IN WINDOW SERVICE …….. SERVICE NOT WORKING…
MY SERVICE CAPTURES AN EVENT …. TO ATTACH THAT EVENT I AM USING DELEGATE
CAN ANY ONE HELP
|
|
|
|
|
Hi,
do you use an external assembly for your windows service. If yes, you need to register that assembly in the GAC so that the service can access it.
Regards
Sebastian
|
|
|
|
|
Hi,
Suppose i have an entity class which belongs to version table in the database having following properties for the fileds(columns)
#region Properties
private string _Program;
public string Program
{
get { return _Program; }
set { _Program = value; }
}
private string _AllowVersion;
public string AllowVersion
{
get { return _AllowVersion; }
set { _AllowVersion = value; }
}
#endregion
Suppose in a method i need to pass only one property so i will have to intitalize Entity class of version
which will have two properties but i need only one.
Do we have any way to tell version entity class that only load AllowVersion property only while initializing version entity and discard rest of the properties i.e my VersionEntity object must have only
one field.
I guess the only possible ways could be attributes or reflection. If possible please provide code snippet
to achieve this.
Is it possible to do this without performance cost??
Thanks In Advance
|
|
|
|
|
Hello Experts,
I am Creating Printer For PDF Writing Like: Windows XPS Document Writer,Journal Note Writer.
If you have any type of suggestion. Your most thanks.
Thanks
If you can think then I Can.
|
|
|
|
|
Your answer is here[^]
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
Help humanity, join the CodeProject grid computing team here
|
|
|
|
|
eg_Anubhava wrote: I am Creating Printer For PDF Writing
You probably need to start here[^] for details on the PDF data formats.
However, you can also check Google for one of the existing products.
|
|
|
|
|
i can write a file in the any drive of XP operating System but i can not on vista. plz see my code and suggest me how i can write on VISTA operating System.
Server = txtServerHost.Text.Trim();
User = txtUserName.Text.Trim();
Password = txtPassword.Text.Trim();
DBName = "db_outlook";
DataTable dt = new DataTable("Server Configuration");
dt.Columns.Add("Server");
dt.Columns.Add("User");
dt.Columns.Add("Password");
dt.Columns.Add("DBName");
dt.Rows.Add(Server, User, Password, DBName);
dt.WriteXml(Application.StartupPath + "\\ServerInformation.bin");
Thanks in advance
|
|
|
|
|
If you launch your program from the Program Files folder I don't think you're allowed to write to that directory in Vista.
|
|
|
|
|
thanks for ur reply. yes when i install the software it creates into program file. it creates in xp but not in VISTA.
have any permission system?
plz help me...
thanks
|
|
|
|
|
I think Microsofts policy in Vista and 2008 Server is that you shouldn't write to the Program Files folder (except at install time). Simply choose another folder to store that file (for instance another predefined folder found in Environment.SpecialFolder ). But as someone else wrote, do you really want to store a password in plain text like that?
|
|
|
|